summaryrefslogtreecommitdiffstats
path: root/security/selinux/ss
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-20 09:09:36 +0200
committerEric W. Biederman <ebiederm@xmission.com>2012-09-21 12:13:22 +0200
commit581abc09c2205e05256d7f75410345d5392d5098 (patch)
treeaf6bbd233f6030fa51a7dcbf0754e83650e0b0ad /security/selinux/ss
parentuserns: Convert tomoyo to use kuid and kgid where appropriate (diff)
downloadlinux-581abc09c2205e05256d7f75410345d5392d5098.tar.xz
linux-581abc09c2205e05256d7f75410345d5392d5098.zip
userns: Convert selinux to use kuid and kgid where appropriate
Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: James Morris <james.l.morris@oracle.com> Cc: Eric Paris <eparis@parisplace.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'security/selinux/ss')
-rw-r--r--security/selinux/ss/services.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 4321b8fc8863..b4feecc3fe01 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -2440,7 +2440,7 @@ int security_set_bools(int len, int *values)
sym_name(&policydb, SYM_BOOLS, i),
!!values[i],
policydb.bool_val_to_struct[i]->state,
- audit_get_loginuid(current),
+ from_kuid(&init_user_ns, audit_get_loginuid(current)),
audit_get_sessionid(current));
}
if (values[i])