|
@@ -1668,6 +1668,8 @@ int security_capset(struct cred *new, const struct cred *old,
|
|
|
const kernel_cap_t *permitted);
|
|
|
int security_capable(const struct cred *cred, struct user_namespace *ns,
|
|
|
int cap);
|
|
|
+int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns,
|
|
|
+ int cap);
|
|
|
int security_real_capable(struct task_struct *tsk, struct user_namespace *ns,
|
|
|
int cap);
|
|
|
int security_real_capable_noaudit(struct task_struct *tsk,
|
|
@@ -1869,6 +1871,11 @@ static inline int security_capable(const struct cred *cred,
|
|
|
return cap_capable(cred, ns, cap, SECURITY_CAP_AUDIT);
|
|
|
}
|
|
|
|
|
|
+static inline int security_capable_noaudit(const struct cred *cred,
|
|
|
+ struct user_namespace *ns, int cap) {
|
|
|
+ return cap_capable(cred, ns, cap, SECURITY_CAP_NOAUDIT);
|
|
|
+}
|
|
|
+
|
|
|
static inline int security_real_capable(struct task_struct *tsk, struct user_namespace *ns, int cap)
|
|
|
{
|
|
|
int ret;
|