]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/security.c
CRED: Constify the kernel_cap_t arguments to the capset LSM hooks
[linux-2.6-omap-h63xx.git] / security / security.c
index dca37381e2a7122ecee1446b09da8e2fd138beee..81c956a12300d3767ac586bfe75751aea1c08b78 100644 (file)
@@ -145,16 +145,16 @@ int security_capget(struct task_struct *target,
        return security_ops->capget(target, effective, inheritable, permitted);
 }
 
-int security_capset_check(kernel_cap_t *effective,
-                         kernel_cap_t *inheritable,
-                         kernel_cap_t *permitted)
+int security_capset_check(const kernel_cap_t *effective,
+                         const kernel_cap_t *inheritable,
+                         const kernel_cap_t *permitted)
 {
        return security_ops->capset_check(effective, inheritable, permitted);
 }
 
-void security_capset_set(kernel_cap_t *effective,
-                        kernel_cap_t *inheritable,
-                        kernel_cap_t *permitted)
+void security_capset_set(const kernel_cap_t *effective,
+                        const kernel_cap_t *inheritable,
+                        const kernel_cap_t *permitted)
 {
        security_ops->capset_set(effective, inheritable, permitted);
 }