Skip to content

Commit

Permalink
Fix oops due to thinko in avc_audit()
Browse files Browse the repository at this point in the history
When I added the logging of pid= and comm= back to avc_audit() I 
screwed it up. Put it back how it should be.

Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
David Woodhouse committed May 21, 2005
1 parent 326e9c8 commit 7b5d781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/avc.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ void avc_audit(u32 ssid, u32 tsid,
audit_log_format(ab, " for ");
if (a && a->tsk)
tsk = a->tsk;
if (a->tsk && a->tsk->pid) {
if (tsk && tsk->pid) {
audit_log_format(ab, " pid=%d comm=", tsk->pid);
audit_log_untrustedstring(ab, tsk->comm);
}
Expand Down

0 comments on commit 7b5d781

Please sign in to comment.