diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2016-06-02 23:43:21 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2016-06-06 20:16:18 +1000 |
commit | 98f368e9e2630a3ce3e80fb10fb2e02038cf9578 (patch) | |
tree | ae14325043192683972bc25ca35c8b7ceb8b8241 /net/ipv4/tcp_vegas.h | |
parent | 2885c1e3e0c29e4a1915214ddc9673925f538299 (diff) | |
download | linux-98f368e9e2630a3ce3e80fb10fb2e02038cf9578.tar.bz2 |
kernel: Add noaudit variant of ns_capable()
When checking the current cred for a capability in a specific user
namespace, it isn't always desirable to have the LSMs audit the check.
This patch adds a noaudit variant of ns_capable() for when those
situations arise.
The common logic between ns_capable() and the new ns_capable_noaudit()
is moved into a single, shared function to keep duplicated code to a
minimum and ease maintainability.
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'net/ipv4/tcp_vegas.h')
0 files changed, 0 insertions, 0 deletions