Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2206
b: refs/heads/master
c: cd77b82
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed May 19, 2005
1 parent 085f6a2 commit b02f730
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7d1125817c9a46cc46f57db89d9c195e7af22f8
refs/heads/master: cd77b8212d5473b800ac865364981d334ff564ea
7 changes: 7 additions & 0 deletions trunk/security/selinux/avc.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ void avc_audit(u32 ssid, u32 tsid,
u16 tclass, u32 requested,
struct av_decision *avd, int result, struct avc_audit_data *a)
{
struct task_struct *tsk = current;
struct inode *inode = NULL;
u32 denied, audited;
struct audit_buffer *ab;
Expand All @@ -555,6 +556,12 @@ void avc_audit(u32 ssid, u32 tsid,
audit_log_format(ab, "avc: %s ", denied ? "denied" : "granted");
avc_dump_av(ab, tclass,audited);
audit_log_format(ab, " for ");
if (a && a->tsk)
tsk = a->tsk;
if (a->tsk && a->tsk->pid) {
audit_log_format(ab, " pid=%d comm=", tsk->pid);
audit_log_untrustedstring(ab, tsk->comm);
}
if (a) {
switch (a->type) {
case AVC_AUDIT_DATA_IPC:
Expand Down

0 comments on commit b02f730

Please sign in to comment.