IMA: use audit_log_untrusted_string rather than %s
authorEric Paris <eparis@redhat.com>
Tue, 20 Apr 2010 14:21:30 +0000 (10:21 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 20 Apr 2010 23:58:17 +0000 (09:58 +1000)
commit2f1506cd82e0725ba00c7146a9a9b47824a5edcf
treeac92c983ab10842e82e229c00b697566c6f20028
parent7233e3ee22b1506723411fe437bcf69f678e8cdd
IMA: use audit_log_untrusted_string rather than %s

Convert all of the places IMA calls audit_log_format with %s into
audit_log_untrusted_string().  This is going to cause them all to get
quoted, but it should make audit log injection harder.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/ima/ima_policy.c