Skip to content

Commit

Permalink
HBSD: explicitly initialize unprivileged_read_msgbuf to a known value
Browse files Browse the repository at this point in the history
In this case it documents much more, what's the desired effect.

MFC-to: 12-STABLE
Signed-off-by: Oliver Pinter <[email protected]>
(cherry picked from commit 064098bffa182fdd8695fda27570c432d913b248)
Signed-off-by: Oliver Pinter <[email protected]>
(cherry picked from commit 679a084)
Signed-off-by: Oliver Pinter <[email protected]>
  • Loading branch information
opntr committed Nov 4, 2018
1 parent fec14b2 commit c37a9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/kern/kern_priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ SYSCTL_INT(_security_bsd, OID_AUTO, unprivileged_mlock, CTLFLAG_RWTUN,
&unprivileged_mlock, 0, "Allow non-root users to call mlock(2)");

#ifdef PAX_HARDENING
static int unprivileged_read_msgbuf;
static int unprivileged_read_msgbuf = 0;
#else
static int unprivileged_read_msgbuf = 1;
#endif
Expand Down

0 comments on commit c37a9e3

Please sign in to comment.