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/selinux | |
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/selinux')
-rw-r--r-- | security/selinux/hooks.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index df9986940e9c..9f6da154cc82 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1790,8 +1790,9 @@ static int selinux_capget(struct task_struct *target, kernel_cap_t *effective, | |||
1790 | return secondary_ops->capget(target, effective, inheritable, permitted); | 1790 | return secondary_ops->capget(target, effective, inheritable, permitted); |
1791 | } | 1791 | } |
1792 | 1792 | ||
1793 | static int selinux_capset_check(kernel_cap_t *effective, | 1793 | static int selinux_capset_check(const kernel_cap_t *effective, |
1794 | kernel_cap_t *inheritable, kernel_cap_t *permitted) | 1794 | const kernel_cap_t *inheritable, |
1795 | const kernel_cap_t *permitted) | ||
1795 | { | 1796 | { |
1796 | int error; | 1797 | int error; |
1797 | 1798 | ||
@@ -1802,8 +1803,9 @@ static int selinux_capset_check(kernel_cap_t *effective, | |||
1802 | return task_has_perm(current, current, PROCESS__SETCAP); | 1803 | return task_has_perm(current, current, PROCESS__SETCAP); |
1803 | } | 1804 | } |
1804 | 1805 | ||
1805 | static void selinux_capset_set(kernel_cap_t *effective, | 1806 | static void selinux_capset_set(const kernel_cap_t *effective, |
1806 | kernel_cap_t *inheritable, kernel_cap_t *permitted) | 1807 | const kernel_cap_t *inheritable, |
1808 | const kernel_cap_t *permitted) | ||
1807 | { | 1809 | { |
1808 | secondary_ops->capset_set(effective, inheritable, permitted); | 1810 | secondary_ops->capset_set(effective, inheritable, permitted); |
1809 | } | 1811 | } |