diff options
author | John Stultz <john.stultz@linaro.org> | 2013-03-14 13:26:14 -0700 |
---|---|---|
committer | Ruchi Kandoi <kandoiruchi@google.com> | 2015-02-03 18:35:00 -0800 |
commit | 111bba77bee2fc36120766664c28d7c3e04d21bc (patch) | |
tree | 274d4901c7b9ae353072d72a50be571451326cb9 /security | |
parent | 816a0d9b8a195b155f95124dc9e9a9754a971940 (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 800eeeb15606..5aaccb09eb81 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1976,7 +1976,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; |