Add CTLFLAG_MPSAFE to the suser_enabled sysctl.
Pointed out by: mjg
This commit is contained in:
parent
05e1e482c7
commit
f488d5b797
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367820
@ -107,8 +107,8 @@ sysctl_kern_suser_enabled(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_security_bsd, OID_AUTO, suser_enabled, CTLTYPE_INT |
|
||||
CTLFLAG_RWTUN | CTLFLAG_PRISON, 0, 0, &sysctl_kern_suser_enabled, "I",
|
||||
"Processes with uid 0 have privilege");
|
||||
CTLFLAG_RWTUN | CTLFLAG_PRISON | CTLFLAG_MPSAFE, 0, 0,
|
||||
&sysctl_kern_suser_enabled, "I", "Processes with uid 0 have privilege");
|
||||
|
||||
static int unprivileged_mlock = 1;
|
||||
SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_mlock, CTLFLAG_RWTUN,
|
||||
|
Loading…
Reference in New Issue
Block a user