diff options
author | David Howells <dhowells@redhat.com> | 2008-11-13 18:39:15 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-11-13 18:39:15 -0500 |
commit | 15a2460ed0af7538ca8e6c610fe607a2cd9da142 (patch) | |
tree | 3611bc03e9c30fe0d11454f6966e6b0ca7f1dbd0 /security/security.c | |
parent | 1cdcbec1a3372c0c49c59d292e708fd07b509f18 (diff) |
CRED: Constify the kernel_cap_t arguments to the capset LSM hooks
Constify the kernel_cap_t arguments to the capset LSM hooks.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/security/security.c b/security/security.c index dca37381e2a7..81c956a12300 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -145,16 +145,16 @@ int security_capget(struct task_struct *target, | |||
145 | return security_ops->capget(target, effective, inheritable, permitted); | 145 | return security_ops->capget(target, effective, inheritable, permitted); |
146 | } | 146 | } |
147 | 147 | ||
148 | int security_capset_check(kernel_cap_t *effective, | 148 | int security_capset_check(const kernel_cap_t *effective, |
149 | kernel_cap_t *inheritable, | 149 | const kernel_cap_t *inheritable, |
150 | kernel_cap_t *permitted) | 150 | const kernel_cap_t *permitted) |
151 | { | 151 | { |
152 | return security_ops->capset_check(effective, inheritable, permitted); | 152 | return security_ops->capset_check(effective, inheritable, permitted); |
153 | } | 153 | } |
154 | 154 | ||
155 | void security_capset_set(kernel_cap_t *effective, | 155 | void security_capset_set(const kernel_cap_t *effective, |
156 | kernel_cap_t *inheritable, | 156 | const kernel_cap_t *inheritable, |
157 | kernel_cap_t *permitted) | 157 | const kernel_cap_t *permitted) |
158 | { | 158 | { |
159 | security_ops->capset_set(effective, inheritable, permitted); | 159 | security_ops->capset_set(effective, inheritable, permitted); |
160 | } | 160 | } |