diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-08-03 17:13:23 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-08-03 17:13:23 +0000 |
commit | 306deb3ae64a7b3bda52edfb1a7f2a7e07bcaf64 (patch) | |
tree | 1abd51215e71878e79072bda55872ad61797243b /etc | |
parent | d1c0c6ac55e9d99774df06abe975b12fa1ee5b84 (diff) | |
download | FreeBSD-src-306deb3ae64a7b3bda52edfb1a7f2a7e07bcaf64.zip FreeBSD-src-306deb3ae64a7b3bda52edfb1a7f2a7e07bcaf64.tar.gz |
Prior to support for almost all ps activity via sysctl, ps used procfs,
and so special-casing was introduced to provide extra procfs privilege
to the kmem group. With the advent of non-setgid kmem ps, this code
is no longer required, and in fact, can is potentially harmful as it
allocates privilege to a gid that is increasingly less meaningful.
Knowledge of specific gid's in kernel is also generally bad precedent,
as the kernel security policy doesn't distinguish gid's specifically,
only uid 0.
This commit removes reference to kmem in procfs, both in terms of
access control decisions, and the applying of gid kmem to the
/proc/*/mem file, simplifying the associated code considerably.
Processes are still permitted to access the mem file based on
the debugging policy, so ps -e still works fine for normal
processes and use.
Reviewed by: tmm
Obtained from: TrustedBSD Project
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions