|
@@ -1666,7 +1666,7 @@ int security_capset(struct cred *new, const struct cred *old,
|
|
|
const kernel_cap_t *effective,
|
|
|
const kernel_cap_t *inheritable,
|
|
|
const kernel_cap_t *permitted);
|
|
|
-int security_capable(struct user_namespace *ns, const struct cred *cred,
|
|
|
+int security_capable(const struct cred *cred, struct user_namespace *ns,
|
|
|
int cap);
|
|
|
int security_real_capable(struct task_struct *tsk, struct user_namespace *ns,
|
|
|
int cap);
|
|
@@ -1863,8 +1863,8 @@ static inline int security_capset(struct cred *new,
|
|
|
return cap_capset(new, old, effective, inheritable, permitted);
|
|
|
}
|
|
|
|
|
|
-static inline int security_capable(struct user_namespace *ns,
|
|
|
- const struct cred *cred, int cap)
|
|
|
+static inline int security_capable(const struct cred *cred,
|
|
|
+ struct user_namespace *ns, int cap)
|
|
|
{
|
|
|
return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT);
|
|
|
}
|