diff options
author | Darrel Goeddel <dgoeddel@trustedcs.com> | 2006-05-24 16:38:25 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-06-20 11:25:26 +0200 |
commit | 8ba8e0fbe6321961f6ba04e2fd7215b37d935c83 (patch) | |
tree | 040b02209b21a06fc0c45cafce599773c905ef75 /security | |
parent | [PATCH] deprecate AUDIT_POSSBILE (diff) | |
download | linux-8ba8e0fbe6321961f6ba04e2fd7215b37d935c83.tar.xz linux-8ba8e0fbe6321961f6ba04e2fd7215b37d935c83.zip |
[PATCH] fix se_sen audit filter
Fix a broken comparison that causes the process clearance to be checked for
both se_clr and se_sen audit filters.
Signed-off-by: Darrel Goeddel <dgoeddel@trustedcs.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/ss/services.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index c284dbb8b8c0..e9548bc049e1 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -1980,7 +1980,7 @@ int selinux_audit_rule_match(u32 ctxid, u32 field, u32 op, break; case AUDIT_SE_SEN: case AUDIT_SE_CLR: - level = (op == AUDIT_SE_SEN ? + level = (field == AUDIT_SE_SEN ? &ctxt->range.level[0] : &ctxt->range.level[1]); switch (op) { case AUDIT_EQUAL: |