X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=security%2Fcapability.c;h=4f3ab476937f5561357d0c6bc1bb82644e58abb5;hb=8b8efb44033c7e86b3dc76f825c693ec92ae30e9;hp=09279a8d4a14cc57ac64ef94dc1daa087058e0ed;hpb=89eda06837094ce9f34fae269b8773fcfd70f046;p=net-next-2.6.git diff --git a/security/capability.c b/security/capability.c index 09279a8d4a1..4f3ab476937 100644 --- a/security/capability.c +++ b/security/capability.c @@ -319,6 +319,11 @@ static int cap_path_chown(struct path *path, uid_t uid, gid_t gid) { return 0; } + +static int cap_path_chroot(struct path *root) +{ + return 0; +} #endif static int cap_file_permission(struct file *file, int mask) @@ -990,6 +995,7 @@ void security_fixup_ops(struct security_operations *ops) set_to_cap_if_null(ops, path_truncate); set_to_cap_if_null(ops, path_chmod); set_to_cap_if_null(ops, path_chown); + set_to_cap_if_null(ops, path_chroot); #endif set_to_cap_if_null(ops, file_permission); set_to_cap_if_null(ops, file_alloc_security);