diff mbox

selinux: binder: Fix COMMON_AUDIT_DATA_INIT compile issue

Message ID 1363293225-19926-1-git-send-email-john.stultz@linaro.org
State Superseded
Headers show

Commit Message

John Stultz March 14, 2013, 8:33 p.m. UTC
This is against the experimental/android-3.9 branch.

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.

Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 security/selinux/hooks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 26a060e..d55b46b 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1830,7 +1830,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;