]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/nspawn/nspawn-gperf.gperf
nspawn: add new --rlimit= switch, and always set resource limits explicitly for our...
[thirdparty/systemd.git] / src / nspawn / nspawn-gperf.gperf
CommitLineData
f757855e 1%{
4831981d
SL
2#if __GNUC__ >= 7
3_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
4#endif
f757855e
LP
5#include <stddef.h>
6#include "conf-parser.h"
f757855e 7#include "nspawn-settings.h"
7a8f6325 8#include "nspawn-expose-ports.h"
f757855e
LP
9%}
10struct ConfigPerfItem;
11%null_strings
12%language=ANSI-C
13%define slot-name section_and_lvalue
14%define hash-function-name nspawn_gperf_hash
15%define lookup-function-name nspawn_gperf_lookup
16%readonly-tables
17%omit-struct-type
18%struct-type
19%includes
20%%
bf428efb
LP
21Exec.Boot, config_parse_boot, 0, 0
22Exec.ProcessTwo, config_parse_pid2, 0, 0
23Exec.Parameters, config_parse_strv, 0, offsetof(Settings, parameters)
24Exec.Environment, config_parse_strv, 0, offsetof(Settings, environment)
25Exec.User, config_parse_string, 0, offsetof(Settings, user)
26Exec.Capability, config_parse_capability, 0, offsetof(Settings, capability)
27Exec.DropCapability, config_parse_capability, 0, offsetof(Settings, drop_capability)
28Exec.KillSignal, config_parse_signal, 0, offsetof(Settings, kill_signal)
29Exec.Personality, config_parse_personality, 0, offsetof(Settings, personality)
30Exec.MachineID, config_parse_id128, 0, offsetof(Settings, machine_id)
31Exec.WorkingDirectory, config_parse_path, 0, offsetof(Settings, working_directory)
32Exec.PivotRoot, config_parse_pivot_root, 0, 0
33Exec.PrivateUsers, config_parse_private_users, 0, 0
34Exec.NotifyReady, config_parse_bool, 0, offsetof(Settings, notify_ready)
35Exec.SystemCallFilter, config_parse_syscall_filter, 0, 0,
36Exec.LimitCPU, config_parse_rlimit, RLIMIT_CPU, offsetof(Settings, rlimit)
37Exec.LimitFSIZE, config_parse_rlimit, RLIMIT_FSIZE, offsetof(Settings, rlimit)
38Exec.LimitDATA, config_parse_rlimit, RLIMIT_DATA, offsetof(Settings, rlimit)
39Exec.LimitSTACK, config_parse_rlimit, RLIMIT_STACK, offsetof(Settings, rlimit)
40Exec.LimitCORE, config_parse_rlimit, RLIMIT_CORE, offsetof(Settings, rlimit)
41Exec.LimitRSS, config_parse_rlimit, RLIMIT_RSS, offsetof(Settings, rlimit)
42Exec.LimitNOFILE, config_parse_rlimit, RLIMIT_NOFILE, offsetof(Settings, rlimit)
43Exec.LimitAS, config_parse_rlimit, RLIMIT_AS, offsetof(Settings, rlimit)
44Exec.LimitNPROC, config_parse_rlimit, RLIMIT_NPROC, offsetof(Settings, rlimit)
45Exec.LimitMEMLOCK, config_parse_rlimit, RLIMIT_MEMLOCK, offsetof(Settings, rlimit)
46Exec.LimitLOCKS, config_parse_rlimit, RLIMIT_LOCKS, offsetof(Settings, rlimit)
47Exec.LimitSIGPENDING, config_parse_rlimit, RLIMIT_SIGPENDING, offsetof(Settings, rlimit)
48Exec.LimitMSGQUEUE, config_parse_rlimit, RLIMIT_MSGQUEUE, offsetof(Settings, rlimit)
49Exec.LimitNICE, config_parse_rlimit, RLIMIT_NICE, offsetof(Settings, rlimit)
50Exec.LimitRTPRIO, config_parse_rlimit, RLIMIT_RTPRIO, offsetof(Settings, rlimit)
51Exec.LimitRTTIME, config_parse_rlimit, RLIMIT_RTTIME, offsetof(Settings, rlimit)
52Files.ReadOnly, config_parse_tristate, 0, offsetof(Settings, read_only)
53Files.Volatile, config_parse_volatile_mode, 0, offsetof(Settings, volatile_mode)
54Files.Bind, config_parse_bind, 0, 0
55Files.BindReadOnly, config_parse_bind, 1, 0
56Files.TemporaryFileSystem, config_parse_tmpfs, 0, 0
57Files.Overlay, config_parse_overlay, 0, 0
58Files.OverlayReadOnly, config_parse_overlay, 1, 0
59Files.PrivateUsersChown, config_parse_tristate, 0, offsetof(Settings, userns_chown)
60Network.Private, config_parse_tristate, 0, offsetof(Settings, private_network)
61Network.Interface, config_parse_strv, 0, offsetof(Settings, network_interfaces)
62Network.MACVLAN, config_parse_strv, 0, offsetof(Settings, network_macvlan)
63Network.IPVLAN, config_parse_strv, 0, offsetof(Settings, network_ipvlan)
64Network.VirtualEthernet, config_parse_tristate, 0, offsetof(Settings, network_veth)
65Network.VirtualEthernetExtra, config_parse_veth_extra, 0, 0
66Network.Bridge, config_parse_ifname, 0, offsetof(Settings, network_bridge)
67Network.Zone, config_parse_network_zone, 0, 0
68Network.Port, config_parse_expose_port, 0, 0