diff options
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 | } |