aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2015-01-21 13:59:39 -0500
committerStephen Smalley <sds@tycho.nsa.gov>2015-01-21 14:06:24 -0500
commitb3df6b14db2cb6919081441789e86ca2efceccca (patch)
treebc71bd7e60bc9892247e5f1af4bd17755c4a72a8
parent872ecde0211c30e7ef8cdf13ee0600bbb43fed75 (diff)
downloadlinux-linaro-stable-b3df6b14db2cb6919081441789e86ca2efceccca.tar.gz
selinux: Remove obsolete selinux_audit_data initialization.
Commit 899838b25f063a94594b1df6e0100aea1ec57fac eliminated the need to initialize selinux_audit_data except in the slow path, when it is handled by slow_avc_audit(). That commit removed all other initializations of selinux_audit_data but this one remained since the binder security hooks are not yet upstream (posted them to linux-kernel today). Change-Id: I735e4500cde23275686cb3208068cbf8dd7bccd7 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
-rw-r--r--security/selinux/hooks.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index d5cba5989f63..63b7a331906a 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1907,12 +1907,10 @@ static int selinux_binder_transfer_file(struct task_struct *from, struct task_st
struct inode *inode = file->f_path.dentry->d_inode;
struct inode_security_struct *isec = inode->i_security;
struct common_audit_data ad;
- struct selinux_audit_data sad = {0,};
int rc;
ad.type = LSM_AUDIT_DATA_PATH;
ad.u.path = file->f_path;
- ad.selinux_audit_data = &sad;
if (sid != fsec->sid) {
rc = avc_has_perm(sid, fsec->sid,