svn commit: r226143 - head/sys/security/mac_mls

Christian Brueffer brueffer at FreeBSD.org
Sat Oct 8 09:14:19 UTC 2011


Author: brueffer
Date: Sat Oct  8 09:14:18 2011
New Revision: 226143
URL: http://svn.freebsd.org/changeset/base/226143

Log:
  Remove two dublicated assignments.
  
  CID:		9870
  Found with:	Coverity Prevent(tm)
  Confirmed by:	rwatson
  MFC after:	1 week

Modified:
  head/sys/security/mac_mls/mac_mls.c

Modified: head/sys/security/mac_mls/mac_mls.c
==============================================================================
--- head/sys/security/mac_mls/mac_mls.c	Sat Oct  8 09:06:43 2011	(r226142)
+++ head/sys/security/mac_mls/mac_mls.c	Sat Oct  8 09:14:18 2011	(r226143)
@@ -1636,9 +1636,6 @@ mls_posixshm_check_open(struct ucred *cr
 	subj = SLOT(cred->cr_label);
 	obj = SLOT(shmlabel);
 
-	subj = SLOT(cred->cr_label);
-	obj = SLOT(shmlabel);
-
 	if (accmode & (VREAD | VEXEC | VSTAT_PERMS)) {
 		if (!mls_dominate_effective(subj, obj))
 			return (EACCES);


More information about the svn-src-head mailing list