]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Audit: clean up all op= output to include string quoting
authorEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 18:31:37 +0000 (14:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Jun 2009 04:00:52 +0000 (00:00 -0400)
commit9d9609851003ebed15957f0f2ce18492739ee124
tree2c116865d2f239b5596b22a3a79eecc82f5e1299
parent35fe4d0b1b12286a81938e9c5fdfaf639ac0ce5b
Audit: clean up all op= output to include string quoting

A number of places in the audit system we send an op= followed by a string
that includes spaces.  Somehow this works but it's just wrong.  This patch
moves all of those that I could find to be quoted.

Example:

Change From: type=CONFIG_CHANGE msg=audit(1244666690.117:31): auid=0 ses=1
subj=unconfined_u:unconfined_r:auditctl_t:s0-s0:c0.c1023 op=remove rule
key="number2" list=4 res=0

Change To: type=CONFIG_CHANGE msg=audit(1244666690.117:31): auid=0 ses=1
subj=unconfined_u:unconfined_r:auditctl_t:s0-s0:c0.c1023 op="remove rule"
key="number2" list=4 res=0

Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/audit.h
kernel/audit.c
kernel/audit_tree.c
kernel/audit_watch.c
kernel/auditfilter.c
kernel/auditsc.c