Home
last modified time | relevance | path

Searched refs:jail (Results 1 – 25 of 134) sorted by relevance

123456

/freebsd-14.2/lib/libjail/
H A DMakefile3 LIB= jail
6 SRCS= jail.c jail_getid.c
7 INCS= jail.h
9 MAN= jail.3
11 MLINKS+=jail.3 jail_getid.3
12 MLINKS+=jail.3 jail_getname.3
13 MLINKS+=jail.3 jail_getv.3
14 MLINKS+=jail.3 jail_setv.3
15 MLINKS+=jail.3 jailparam.3
16 MLINKS+=jail.3 jailparam_all.3
[all …]
/freebsd-14.2/usr.sbin/jail/tests/
H A Djail_basic_test.sh46 atf_check -s exit:0 -o ignore jail -r basejail
47 jail -c name=basejail persist ip4.addr=192.0.1.1
58 jail -r basejail
95 jail -r nestedjail
96 jail -r basejail
97 jail -r basejail_nochild
110 jail -f $(atf_get_srcdir)/commands.jail.conf -qc basejail
113 jail -f $(atf_get_srcdir)/commands.jail.conf -qr basejail
115 jail -f $(atf_get_srcdir)/commands.jail.conf -qc basejail
117 jail -f $(atf_get_srcdir)/commands.jail.conf -qr `jls -j basejail jid`
[all …]
/freebsd-14.2/share/examples/jails/
H A DREADME20 Sample 1: jail.conf(5)
23 $ cat jail.xxx.conf >> /etc/jail.conf
24 $ vi /etc/jail.conf
29 $ service jail start
39 $ service jail start
41 Sample 3: Per-jail jail.conf(5)
44 $ cp jail.xxx.conf /etc/
45 $ vi /etc/jail.xxx.conf
50 $ service jail start
61 # NB: Assumes neither /etc/jail.conf nor /etc/jail.xxx.conf exist
[all …]
/freebsd-14.2/tools/test/stress2/misc/
H A Dldt2.sh46 jail=/var/tmp/jail2 # Change this
48 mount | grep $jail | grep -q devfs && umount $jail/dev
51 chflags -R 0 $jail
52 rm -rf $jail
53 mkdir -p $jail
59 mount -t devfs devfs $jail/dev
61 cp /etc/fstab /etc/hosts /etc/resolv.conf $jail/etc
62 cp /boot/kernel/kernel $jail/boot/kernel
65 Before changing to the jail you may need these files:
70 and place these in for examle $jail/root
[all …]
H A Djail.sh36 sed '1,/^EOF/d' < $odir/$0 > jail.c
37 mycc -o jail -Wall jail.c
38 rm -f jail.c
40 /tmp/jail
41 rm -f /tmp/jail
51 struct jail j;
62 if (jail(&j) == -1)
H A Dchroot.sh53 mkdir -p $mntpoint/root/dir $mntpoint/jail $mntpoint/dev
54 mount -t nullfs $mntpoint/root $mntpoint/jail
58 chroot $mntpoint/jail ./chroot &
64 umount $mntpoint/jail
/freebsd-14.2/contrib/kyua/os/freebsd/
H A Dexecenv_jail.cpp43 static utils::jail jail = utils::jail(); variable
51 jail.create( in init()
52 jail.make_name(_test_program.absolute_path(), _test_case_name), in init()
61 jail.remove( in cleanup()
62 jail.make_name(_test_program.absolute_path(), _test_case_name) in cleanup()
70 jail.exec( in exec()
71 jail.make_name(_test_program.absolute_path(), _test_case_name), in exec()
/freebsd-14.2/share/examples/flua/
H A Dlibjail.lua31 jail = require("jail")
40 for jparams in jail.list() do
49 jid, err = jail.setparams(name, {persist = "true"}, jail.CREATE)
56 allparams = jail.allparams()
59 jid, res = jail.getparams(name, allparams)
69 for jparams in jail.list() do
81 jid, err = jail.setparams(name, {persist = "false"}, jail.UPDATE)
89 for jparams in jail.list({"persist"}) do
/freebsd-14.2/tests/sys/net/if_ovpn/
H A Dutils.subr45 for jail in `cat ovpn_jails.lst | sort -u`
47 cat ovpn_${jail}.log| sed s/^/\[${jail}\]\ /
55 jail=$1
58 echo ${jail} >> ovpn_jails.lst
62 echo "Start" >> ovpn_${jail}.log
63 echo "=====" >> ovpn_${jail}.log
65 echo "$cfg" > ovpn_${jail}.ovpn
67 echo "Jail $jail:"
69 cat ovpn_${jail}.ovpn
71 jexec $jail sh -c "cd ${dir} &&
[all …]
/freebsd-14.2/usr.sbin/jail/
H A DMakefile4 PROG= jail
5 MAN= jail.8 jail.conf.5
6 SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h
8 LIBADD= jail kvm util
10 PACKAGE=jail
/freebsd-14.2/bin/pkill/tests/
H A Dpgrep-j_test.sh23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \
26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \
57 jail -c path=/ name=${base}_2_1 ip4.addr=127.0.0.1 \
60 jail -c path=/ name=${base}_2_2 ip4.addr=127.0.0.1 \
79 jail -c path=/ name=${base}_3_2 ip4.addr=127.0.0.1 \
95 jail -c path=/ name=${base}_4_1 ip4.addr=127.0.0.1 \
98 jail -c path=/ name=${base}_4_2 ip4.addr=127.0.0.1 \
H A Dpkill-j_test.sh23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \
26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \
60 jail -c path=/ name=${base}_2_1 ip4.addr=127.0.0.1 \
63 jail -c path=/ name=${base}_2_2 ip4.addr=127.0.0.1 \
83 jail -c path=/ name=${base}_3_2 ip4.addr=127.0.0.1 \
100 jail -c path=/ name=${base}_4_1 ip4.addr=127.0.0.1 \
103 jail -c path=/ name=${base}_4_2 ip4.addr=127.0.0.1 \
/freebsd-14.2/libexec/rc/rc.d/
H A Dzfs21 if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then
37 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then
57 if [ `$SYSCTL_N security.jail.mount_allowed` -eq 1 ]; then
70 if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then
/freebsd-14.2/bin/freebsd-version/
H A Dfreebsd-version.sh.in90 for i in $jail; do
122 jail="$jail $OPTARG"
125 jail="$OPTARG"
/freebsd-14.2/lib/flua/libjail/
H A DMakefile2 SHLIB_NAME= jail.so
11 LIBADD+= jail
13 MAN= jail.3lua
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_jail/
H A Dzfs_jail_001_pos.ksh55 jail -r -f $JAIL_CONF $JAIL
64 log_must jail -c -f $JAIL_CONF $JAIL
71 log_must zfs jail $JAIL $TESTPOOL
/freebsd-14.2/usr.sbin/periodic/etc/weekly/
H A D340.noid23 if [ $(sysctl -n security.jail.jailed) = 0 ]; then
26 load_rc_config jail
31 for param in $(jail -f "$jail_conf" -e "$sep" 2>/dev/null)
/freebsd-14.2/sbin/route/tests/
H A Dbasic.sh36 atf_set require.progs jail jq
81 atf_set require.progs jail jq
125 atf_set require.progs jail jq
153 atf_set require.progs jail jq
/freebsd-14.2/usr.sbin/service/
H A Dservice.sh87 if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
89 if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then
120 if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then
122 if [ `/sbin/sysctl -n security.jail.vnet` -ne 1 ]; then
/freebsd-14.2/contrib/kyua/os/freebsd/utils/
H A Djail.cpp106 jail::parse_params_string(const std::string& str) in parse_params_string()
146 jail::make_name(const fs::path& program, in make_name()
173 jail::create(const std::string& jail_name, in create()
236 jail::exec(const std::string& jail_name, in exec()
280 jail::remove(const std::string& jail_name) in remove()
/freebsd-14.2/sbin/bectl/tests/
H A Dbectl_test.sh416 atf_set "require.progs" jail
454 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b 1234
458 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o jid=233637 default
464 jail default /rescue/rescue ls -1
466 jail -Uo path=${root} default /rescue/rescue ls -1
471 atf_check bectl -r ${zpool}/ROOT jail -bo path=${root} default
476 atf_check bectl -r ${zpool}/ROOT jail -b default
480 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b default
481 atf_check -o empty -s exit:0 bectl -r ${zpool}/ROOT jail -b -o name=bectl_test target
489 atf_check bectl -r ${zpool}/ROOT jail -b -o path=${root} -u path default
[all …]
/freebsd-14.2/release/packages/
H A DMakefile.package90 jail-debug_DESCR= Debugging Symbols
91 jail-development_DESCR=Development Files
92 jail-profile_DESCR= Profiling Libraries
93 jail-lib32_DESCR= 32-bit Libraries
94 jail-lib32-debug_DESCR=32-bit Debugging Symbols
95 jail-lib32-development_DESCR=32-bit Development Files
96 jail-lib32-profile_DESCR=32-bit Profiling Libraries
/freebsd-14.2/usr.sbin/jexec/
H A DMakefile4 LIBADD= jail util
6 PACKAGE=jail
/freebsd-14.2/tests/sys/common/
H A Dvnet.subr1 # VNET/jail utility functions
35 # We may be running in a jail already, unable to load modules.
89 jail -c name=${jailname} persist vnet ${vnet_interfaces}
121 jail -r ${jailname}
/freebsd-14.2/usr.sbin/syslogd/tests/
H A Dsyslogd_test.sh25 local jail
28 jail="jexec $2"
31 $jail syslogd \
307 atf_check jail -c name=syslogd_noinet persist
319 jail -r syslogd_noinet

123456