Remove two dublicated assignments.
CID: 9870 Found with: Coverity Prevent(tm) Confirmed by: rwatson MFC after: 1 week
This commit is contained in:
parent
4a955f14cf
commit
709ef347b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226143
@ -1636,9 +1636,6 @@ mls_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user