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
82f83a1cbe
commit
7d85b12d90
@ -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