opnsense-src/bin
Olivier Certner 09290c3a0c
cred: Hide internal flag CRED_FLAG_CAPMODE
This flag is used in field 'cr_flags', which is never directly visible
outside the kernel.  That field is however exported through 'struct
kinfo_proc' objects (field 'ki_cr_flags'), either from the kernel via
sysctls or from libkvm, and is supposed to contain exported flags
prefixed with KI_CRF_ (currently, KI_CRF_CAPABILITY_MODE and
KI_CRF_GRP_OVERFLOW, this second one being a purely userland one
signaling overflow of 'ki_groups').

Make sure that KI_CRF_CAPABILITY_MODE is the flag actually exported and
tested by userland programs, and hide the internal CRED_FLAG_CAPMODE.
As both flags are currently defined to the same value, this doesn't
change the KBI, but of course does change the KPI.  A code search via
GitHub and Google fortunately doesn't reveal any outside uses for
CRED_FLAG_CAPMODE.

While here, move assignment of 'ki_uid' to a more logical place in
kvm_proclist(), and definition of XU_NGROUPS as well in 'sys/ucred.h'
(no functional/interface changes intended).

Reviewed by:    mhorne
Approved by:    markj (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D46909
2024-12-16 15:42:29 +01:00
..
cat cat: report copy_file_range() errors with the read filename 2024-12-13 22:32:54 -06:00
chflags Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
chio Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
chmod Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
cp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
cpuset Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
csh csh: Remove hardlink /.cshrc 2024-05-29 09:56:58 +02:00
date date: Documentation nits. 2024-09-10 14:29:14 +02:00
dd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
df Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
domainname Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
echo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ed Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
expr Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
freebsd-version Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
getfacl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
hostname tests: Switch bin/hostname/hostname_test to execenv=jail 2024-10-31 17:44:49 +00:00
kenv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
kill Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
ln faccessat(2): Honor AT_SYMLINK_NOFOLLOW 2024-08-11 17:49:06 +02:00
ls ls: Make -, apply to -s as well as -l. 2024-07-24 22:07:06 +02:00
mkdir Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
mv mv: Add test cases for command-line options. 2024-11-19 10:29:15 +01:00
nproc Update Makefile.depend files 2024-10-14 10:26:17 -07:00
pax pax: Clear arcn in each read function. 2024-07-24 22:07:06 +02:00
pkill Update Makefile.depend files 2024-10-14 10:26:17 -07:00
ps cred: Hide internal flag CRED_FLAG_CAPMODE 2024-12-16 15:42:29 +01:00
pwait Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pwd Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
realpath Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rm Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rmail Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
rmdir manuals: Fix "unusual .Xr" warnings with a script 2024-10-15 17:18:14 -03:00
setfacl Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
sh sh.1: update history + spdx + linter error 2024-11-29 14:38:35 -07:00
sleep Update Makefile.depend files 2024-10-14 10:26:17 -07:00
stty Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
sync Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
test test(1): quote closing bracket in error message 2024-07-29 14:08:33 -06:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
timeout timeout(1): Update STANDARDS section 2024-09-24 18:42:18 +02:00
uuidgen Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00