Smack: File receive audit correction
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 31 Dec 2013 01:37:45 +0000 (17:37 -0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 31 Dec 2013 21:35:27 +0000 (13:35 -0800)
commit4482a44f6a3221cd0076eb6af65672a7e198d8da
tree5caa99f7179486a64399de14496fba56a88cb7e9
parent24ea1b6efcd8fc3b465fb74964e1a0cbe9979730
Smack: File receive audit correction

Eric Paris politely points out:

    Inside smack_file_receive() it seems like you are initting the audit
    field with LSM_AUDIT_DATA_TASK.  And then use
    smk_ad_setfield_u_fs_path().

    Seems like LSM_AUDIT_DATA_PATH would make more sense.  (and depending
    on how it's used fix a crash...)

He is correct. This puts things in order.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c