From a657646035c3208697b6505daa0236f311470e22 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Thu, 14 Mar 2013 13:26:14 -0700 Subject: [PATCH] selinux: binder: Fix COMMON_AUDIT_DATA_INIT compile issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Cc: Arve Hjønnevåg Cc: Android Kernel Team Signed-off-by: John Stultz --- security/selinux/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 3fce40d3396b..61ee72d35fd5 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -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; -- 2.34.1