LSM: remove the task field from common_audit_data
[deliverable/linux.git] / security / lsm_audit.c
index 90c129b0102f5cbe43129695bde3c3b924b84987..e796d2517653a262d8f37992558ed1218d17cbee 100644 (file)
@@ -213,12 +213,8 @@ static void dump_common_audit_data(struct audit_buffer *ab,
 {
        struct task_struct *tsk = current;
 
-       if (a->tsk)
-               tsk = a->tsk;
-       if (tsk && tsk->pid) {
-               audit_log_format(ab, " pid=%d comm=", tsk->pid);
-               audit_log_untrustedstring(ab, tsk->comm);
-       }
+       audit_log_format(ab, " pid=%d comm=", tsk->pid);
+       audit_log_untrustedstring(ab, tsk->comm);
 
        switch (a->type) {
        case LSM_AUDIT_DATA_NONE:
This page took 0.02632 seconds and 5 git commands to generate.