diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/security/security.c b/security/security.c index 953fc3ea18a9..a618e22df5c6 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -689,16 +689,12 @@ int security_capset(struct cred *new, const struct cred *old, | |||
689 | effective, inheritable, permitted); | 689 | effective, inheritable, permitted); |
690 | } | 690 | } |
691 | 691 | ||
692 | int security_capable(const struct cred *cred, struct user_namespace *ns, | 692 | int security_capable(const struct cred *cred, |
693 | int cap) | 693 | struct user_namespace *ns, |
694 | int cap, | ||
695 | unsigned int opts) | ||
694 | { | 696 | { |
695 | return call_int_hook(capable, 0, cred, ns, cap, SECURITY_CAP_AUDIT); | 697 | return call_int_hook(capable, 0, cred, ns, cap, opts); |
696 | } | ||
697 | |||
698 | int security_capable_noaudit(const struct cred *cred, struct user_namespace *ns, | ||
699 | int cap) | ||
700 | { | ||
701 | return call_int_hook(capable, 0, cred, ns, cap, SECURITY_CAP_NOAUDIT); | ||
702 | } | 698 | } |
703 | 699 | ||
704 | int security_quotactl(int cmds, int type, int id, struct super_block *sb) | 700 | int security_quotactl(int cmds, int type, int id, struct super_block *sb) |