Skip to content

Commit

Permalink
lsm: rename duplicate labels in LSM_AUDIT_DATA_TASK audit message type
Browse files Browse the repository at this point in the history
The LSM_AUDIT_DATA_TASK pid= and comm= labels are duplicates of those at the
start of this function with different values.  Rename them to their object
counterparts opid= and ocomm= to disambiguate.

Signed-off-by: Richard Guy Briggs <[email protected]>
[PM: minor merging needed due to differences in the tree]
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
rgbriggs authored and pcmoore committed May 29, 2015
1 parent 39a8804 commit 5c5bc97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/lsm_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void dump_common_audit_data(struct audit_buffer *ab,
if (tsk) {
pid_t pid = task_pid_nr(tsk);
if (pid) {
audit_log_format(ab, " pid=%d comm=", pid);
audit_log_format(ab, " opid=%d ocomm=", pid);
audit_log_untrustedstring(ab, tsk->comm);
}
}
Expand Down

0 comments on commit 5c5bc97

Please sign in to comment.