Integrity: Pass commname via get_task_comm()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 24 Dec 2013 11:49:01 +0000 (20:49 +0900)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 7 Mar 2014 16:32:28 +0000 (11:32 -0500)
commit73a6b44a003ad5dd1af9a8d05f01589dce7cd47a
treecd1ef257eeae49811df0b79a39f0d9a6f0cd5e22
parentd984ea604943bbeedde4e9715984eb942a298383
Integrity: Pass commname via get_task_comm()

When we pass task->comm to audit_log_untrustedstring(), we need to pass it
via get_task_comm() because task->comm can be changed to contain untrusted
string by other threads after audit_log_untrustedstring() confirmed that
task->comm does not contain untrusted string.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/integrity_audit.c