Skip to content

Commit

Permalink
SELinux: remove auditdeny from selinux_audit_data
Browse files Browse the repository at this point in the history
It's just takin' up space.

Signed-off-by: Eric Paris <eparis@redhat.com>
  • Loading branch information
Eric Paris committed Apr 9, 2012
1 parent 50c205f commit 1d34929
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions security/selinux/include/avc.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ struct selinux_late_audit_data {
* We collect this at the beginning or during an selinux security operation
*/
struct selinux_audit_data {
/*
* auditdeny is a bit tricky and unintuitive. See the
* comments in avc.c for it's meaning and usage.
*/
u32 auditdeny;
struct selinux_late_audit_data *slad;
};

Expand Down Expand Up @@ -145,9 +140,7 @@ static inline int avc_audit(u32 ssid, u32 tsid,
struct common_audit_data *a, unsigned flags)
{
u32 audited, denied;
audited = avc_audit_required(requested, avd, result,
a ? a->selinux_audit_data->auditdeny : 0,
&denied);
audited = avc_audit_required(requested, avd, result, 0, &denied);
if (likely(!audited))
return 0;
return slow_avc_audit(ssid, tsid, tclass,
Expand Down

0 comments on commit 1d34929

Please sign in to comment.