summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/sys/t_lwp_ctl.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-02-27 16:28:55 +0000
committerian <ian@FreeBSD.org>2015-02-27 16:28:55 +0000
commit1df855e5be4c0cf10b0fb0596b4ae2d9472e6347 (patch)
tree1e35077129368b74f9c4a64efbbbf17b0cd57cfd /contrib/netbsd-tests/lib/libc/sys/t_lwp_ctl.c
parent1354254e807c3e9c859cef50db3c7f5545b4c1d9 (diff)
downloadFreeBSD-src-1df855e5be4c0cf10b0fb0596b4ae2d9472e6347.zip
FreeBSD-src-1df855e5be4c0cf10b0fb0596b4ae2d9472e6347.tar.gz
Allow the kern.osrelease and kern.osreldate sysctl values to be set in a
jail's creation parameters. This allows the kernel version to be reliably spoofed within the jail whether examined directly with sysctl or indirectly with the uname -r and -K options. The values can only be set at jail creation time, to eliminate the need for any locking when accessing the values via sysctl. The overridden values are inherited by nested jails (unless the config for the nested jails also overrides the values). There is no sanity or range checking, other than disallowing an empty release string or a zero release date, by design. The system administrator is trusted to set sane values. Setting values that are newer than the actual running kernel will likely cause compatibility problems. Differential Revision: https://reviews.freebsd.org/D1948 Relnotes: yes
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/sys/t_lwp_ctl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud