Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63573
b: refs/heads/master
c: e6e0871
h: refs/heads/master
i:
  63571: 72709fe
v: v3
  • Loading branch information
Paul Moore authored and James Morris committed Aug 2, 2007
1 parent 90523c6 commit adab435
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 088999e98b8caecd31adc3b62223a228555c5ab7
refs/heads/master: e6e0871cce2ae04f5790543ad2f4ec36b23260ba
4 changes: 3 additions & 1 deletion trunk/net/netlabel/netlabel_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ struct audit_buffer *netlbl_audit_start_common(int type,
if (audit_info->secid != 0 &&
security_secid_to_secctx(audit_info->secid,
&secctx,
&secctx_len) == 0)
&secctx_len) == 0) {
audit_log_format(audit_buf, " subj=%s", secctx);
security_release_secctx(secctx, secctx_len);
}

return audit_buf;
}
5 changes: 3 additions & 2 deletions trunk/net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2195,9 +2195,10 @@ void xfrm_audit_log(uid_t auid, u32 sid, int type, int result,
}

if (sid != 0 &&
security_secid_to_secctx(sid, &secctx, &secctx_len) == 0)
security_secid_to_secctx(sid, &secctx, &secctx_len) == 0) {
audit_log_format(audit_buf, " subj=%s", secctx);
else
security_release_secctx(secctx, secctx_len);
} else
audit_log_task_context(audit_buf);

if (xp) {
Expand Down

0 comments on commit adab435

Please sign in to comment.