Import this patch to address user concerns.
PR: 27615 Submitted by: Andria Thomas <andria@tovaris.com> Approved by: Me. MFC after: 7 days
This commit is contained in:
parent
9d234f99f7
commit
13a14b9aa9
@ -491,7 +491,7 @@ int mode;
|
||||
int error = 0, unit = 0, tmp;
|
||||
|
||||
#if (BSD >= 199306) && defined(_KERNEL)
|
||||
if ((securelevel >= 2) && (mode & FWRITE))
|
||||
if ((securelevel >= 3) && (mode & FWRITE))
|
||||
return EPERM;
|
||||
#endif
|
||||
#ifdef _KERNEL
|
||||
|
@ -431,7 +431,7 @@ int mode;
|
||||
u_32_t i, j;
|
||||
|
||||
#if (BSD >= 199306) && defined(_KERNEL)
|
||||
if ((securelevel >= 2) && (mode & FWRITE))
|
||||
if ((securelevel >= 3) && (mode & FWRITE))
|
||||
return EPERM;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user