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>
This commit is contained in:

committed by
James Morris

parent
1cdcbec1a3
commit
15a2460ed0
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user