1/*- 2 * Copyright (c) 2011 James Gritton. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: projects/jailconf/usr.sbin/jail/jailp.h 223351 2011-06-20 23:04:13Z jamie $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/types.h> 31#include <sys/jail.h> 32#include <sys/queue.h> 33#include <sys/time.h> 34 --- 47 unchanged lines hidden (view full) --- 82 IP_EXEC_POSTSTOP, /* Commands run outside jail after removing */ 83 IP_EXEC_PRESTART, /* Commands run outside jail before creating */ 84 IP_EXEC_PRESTOP, /* Commands run outside jail before removing */ 85 IP_EXEC_START, /* Commands run inside jail on creation */ 86 IP_EXEC_STOP, /* Commands run inside jail on removal */ 87 IP_EXEC_SYSTEM_JAIL_USER,/* Get jail_user from system passwd file */ 88 IP_EXEC_SYSTEM_USER, /* Run non-jailed commands as this user */ 89 IP_EXEC_TIMEOUT, /* Time to wait for a command to complete */ |
90#if defined(INET) || defined(INET6) |
91 IP_INTERFACE, /* Add IP addresses to this interface */ 92 IP_IP_HOSTNAME, /* Get jail IP address(es) from hostname */ |
93#endif |
94 IP_MOUNT, /* Mount points in fstab(5) form */ 95 IP_MOUNT_DEVFS, /* Mount /dev under prison root */ 96 IP_MOUNT_DEVFS_RULESET, /* Ruleset for the devfs mount */ 97 IP_MOUNT_FSTAB, /* A standard fstab(5) file */ 98 IP_STOP_TIMEOUT, /* Time to wait after sending SIGTERM */ 99 IP_VNET_INTERFACE, /* Assign interface(s) to vnet jail */ |
100#ifdef INET |
101 IP__IP4_IFADDR, /* Copy of ip4.addr with interface/netmask */ |
102#endif |
103#ifdef INET6 104 IP__IP6_IFADDR, /* Copy of ip6.addr with interface/prefixlen */ 105#endif 106 IP__MOUNT_FROM_FSTAB, /* Line from mount.fstab file */ 107 IP__OP, /* Placeholder for requested operation */ 108 KP_ALLOW_CHFLAGS, 109 KP_ALLOW_MOUNT, 110 KP_ALLOW_RAW_SOCKETS, 111 KP_ALLOW_SET_HOSTNAME, 112 KP_ALLOW_SOCKET_AF, 113 KP_ALLOW_SYSVIPC, 114 KP_ENFORCE_STATFS, 115 KP_HOST_HOSTNAME, |
116#ifdef INET |
117 KP_IP4_ADDR, |
118#endif |
119#ifdef INET6 120 KP_IP6_ADDR, 121#endif 122 KP_JID, 123 KP_NAME, 124 KP_PATH, 125 KP_PERSIST, 126 KP_SECURELEVEL, --- 105 unchanged lines hidden --- |