selinux: binder: Fix COMMON_AUDIT_DATA_INIT compile issue
authorJohn Stultz <john.stultz@linaro.org>
Thu, 14 Mar 2013 20:26:14 +0000 (13:26 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 22:51:59 +0000 (15:51 -0700)
The COMMON_AUDIT_DATA_INIT macros have been removed, and are
now replaced with open coded ad.type initialization.

Thus, this patch updates the selinux_binder_transfer_file function
so it builds.

Change-Id: Ide41069a87638e294899768d09302f4013794e4c
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
security/selinux/hooks.c

index 3fce40d3396beedb5f1b0f0b3c970bedeb92e50e..61ee72d35fd59f06ecad5c80ddd66d3de5288f2e 100644 (file)
@@ -1862,7 +1862,7 @@ static int selinux_binder_transfer_file(struct task_struct *from, struct task_st
        struct selinux_audit_data sad = {0,};
        int rc;
 
-       COMMON_AUDIT_DATA_INIT(&ad, PATH);
+       ad.type = LSM_AUDIT_DATA_PATH;
        ad.u.path = file->f_path;
        ad.selinux_audit_data = &sad;