diff options
author | Eric Paris <eparis@redhat.com> | 2013-05-23 18:26:00 (GMT) |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-11-05 16:08:17 (GMT) |
commit | 21b85c31d23f2047d47e1f74bfa5caa8b75c1c77 (patch) | |
tree | 08ac436415d71faeb2d4d89d7d549bf70ad1261c /kernel/audit.c | |
parent | d040e5af380554c23ffe0a034ae5f3e53da93a1d (diff) | |
download | linux-fsl-qoriq-21b85c31d23f2047d47e1f74bfa5caa8b75c1c77.tar.xz |
audit: audit feature to set loginuid immutable
This adds a new 'audit_feature' bit which allows userspace to set it
such that the loginuid is absolutely immutable, even if you have
CAP_AUDIT_CONTROL.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index fbfa3a7..f3f36f5 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -144,8 +144,9 @@ static struct audit_features af = {.vers = AUDIT_FEATURE_VERSION, .features = 0, .lock = 0,}; -static char *audit_feature_names[1] = { +static char *audit_feature_names[2] = { "only_unset_loginuid", + "loginuid_immutable", }; |