diff options
author | John Stultz <john.stultz@linaro.org> | 2013-03-14 13:26:14 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-03-19 13:10:20 -0700 |
commit | 4546f6a22254571cac0dd332d8240fdaf771a52c (patch) | |
tree | 6494c7ee129bcc8e2035c28928fcd16d9e4e740e /security | |
parent | 2122c01d0e9a5124a64f6d0c223ea8b926ec1d8a (diff) |
selinux: binder: Fix COMMON_AUDIT_DATA_INIT compile issue
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>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 228d9577a3f..aefbe1ca8f5 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1947,7 +1947,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; |