Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60ad7612 authored by Stephen Smalley's avatar Stephen Smalley Committed by Ruchi Kandoi
Browse files

selinux: Remove obsolete selinux_audit_data initialization.



Commit 899838b2 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: default avatarStephen Smalley <sds@tycho.nsa.gov>
parent ea8ccc92
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1964,12 +1964,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,