LSM: Add security_path_chroot().
[linux-2.6.git] / security / capability.c
index 09279a8..4f3ab47 100644 (file)
@@ -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);