aboutsummaryrefslogtreecommitdiffstats
path: root/security/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/capability.c')
-rw-r--r--security/capability.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/capability.c b/security/capability.c
index 09279a8d4a14..4f3ab476937f 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)
319{ 319{
320 return 0; 320 return 0;
321} 321}
322
323static int cap_path_chroot(struct path *root)
324{
325 return 0;
326}
322#endif 327#endif
323 328
324static int cap_file_permission(struct file *file, int mask) 329static int cap_file_permission(struct file *file, int mask)
@@ -990,6 +995,7 @@ void security_fixup_ops(struct security_operations *ops)
990 set_to_cap_if_null(ops, path_truncate); 995 set_to_cap_if_null(ops, path_truncate);
991 set_to_cap_if_null(ops, path_chmod); 996 set_to_cap_if_null(ops, path_chmod);
992 set_to_cap_if_null(ops, path_chown); 997 set_to_cap_if_null(ops, path_chown);
998 set_to_cap_if_null(ops, path_chroot);
993#endif 999#endif
994 set_to_cap_if_null(ops, file_permission); 1000 set_to_cap_if_null(ops, file_permission);
995 set_to_cap_if_null(ops, file_alloc_security); 1001 set_to_cap_if_null(ops, file_alloc_security);