]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Put jail(2) under COMPAT_FREEBSD11. It has been the "old" way of creating
authorJamie Gritton <jamie@FreeBSD.org>
Thu, 16 Aug 2018 18:40:16 +0000 (18:40 +0000)
committerJamie Gritton <jamie@FreeBSD.org>
Thu, 16 Aug 2018 18:40:16 +0000 (18:40 +0000)
commit284001a222ae071c063920aa1c1b6477f168002d
tree10ee709c397d09f7bbe58bae03f7543dbe01998b
parenta8e44f4da0e8b8892688d88a8faea5abfff2219e
Put jail(2) under COMPAT_FREEBSD11.  It has been the "old" way of creating
jails since FreeBSD 7.

Along with the system call, put the various security.jail.allow_foo and
security.jail.foo_allowed sysctls partly under COMPAT_FREEBSD11 (or
BURN_BRIDGES).  These sysctls had two disparate uses: on the system side,
they were global permissions for jails created via jail(2) which lacked
fine-grained permission controls; inside a jail, they're read-only
descriptions of what the current jail is allowed to do.  The first use
is obsolete along with jail(2), but keep them for the second-read-only use.

Differential Revision: D14791
23 files changed:
lib/libc/gen/getvfsbyname.3
lib/libc/sys/jail.2
share/man/man9/VFS_SET.9
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/freebsd32/freebsd32_proto.h
sys/compat/freebsd32/freebsd32_syscall.h
sys/compat/freebsd32/freebsd32_syscalls.c
sys/compat/freebsd32/freebsd32_sysent.c
sys/compat/freebsd32/freebsd32_systrace_args.c
sys/compat/freebsd32/syscalls.master
sys/fs/nandfs/nandfs_vnops.c
sys/kern/init_sysent.c
sys/kern/kern_jail.c
sys/kern/syscalls.c
sys/kern/syscalls.master
sys/kern/systrace_args.c
sys/sys/jail.h
sys/sys/syscall.h
sys/sys/syscall.mk
sys/sys/syscallsubr.h
sys/sys/sysproto.h
sys/ufs/ufs/ufs_vnops.c