Files
freebsd/bin
Kyle Evans c839c15661 kern: add a security knob to disable unprivileged access to kenv
We sometimes store sensitive things in the kenv that get zapped, but we
really shouldn't rely on that zapping to actually happen.  Most
unprivileged processes don't really need to read from the kernel
environment in the first place, so add a knob that allows it to be
disabled.

Note that we consider jailed root to be unprivileged from this
perspective; they have their own meta/env concepts and we should
encourage users to take advantage of those for passing information to
jails.

Relnotes:	yes (The capability to disable unpriv access exists)
"Hey we should do something about that":	dch
Reviewed by:	imp, ziaee, zlei (all slightly previous version)
Differential Revision:	https://reviews.freebsd.org/D57697

(cherry picked from commit 4fd518fcb2)
2026-08-06 17:52:29 -05:00
..
2026-08-02 22:00:36 +02:00
2025-11-19 11:57:39 +01:00
2023-08-16 11:55:20 -06:00
2023-08-16 11:55:20 -06:00
2024-02-08 14:02:33 +08:00
2026-07-23 18:59:13 +09:00
2026-08-03 11:32:14 +00:00
2023-08-16 11:55:03 -06:00