| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
%{ |
| 3 |
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") |
| 4 |
#if __GNUC__ >= 15 |
| 5 |
_Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"") |
| 6 |
#endif |
| 7 |
#include <stddef.h> |
| 8 |
#include "conf-parser.h" |
| 9 |
#include "nspawn-settings.h" |
| 10 |
%} |
| 11 |
struct ConfigPerfItem; |
| 12 |
%null_strings |
| 13 |
%language=ANSI-C |
| 14 |
%define slot-name section_and_lvalue |
| 15 |
%define hash-function-name nspawn_gperf_hash |
| 16 |
%define lookup-function-name nspawn_gperf_lookup |
| 17 |
%readonly-tables |
| 18 |
%omit-struct-type |
| 19 |
%struct-type |
| 20 |
%includes |
| 21 |
%% |
| 22 |
Exec.Boot, config_parse_boot, 0, 0 |
| 23 |
Exec.Ephemeral, config_parse_tristate, 0, offsetof(Settings, ephemeral) |
| 24 |
Exec.ProcessTwo, config_parse_pid2, 0, 0 |
| 25 |
Exec.Parameters, config_parse_strv, 0, offsetof(Settings, parameters) |
| 26 |
Exec.Environment, config_parse_strv, 0, offsetof(Settings, environment) |
| 27 |
Exec.User, config_parse_string, CONFIG_PARSE_STRING_SAFE, offsetof(Settings, user) |
| 28 |
Exec.Capability, config_parse_capability, 0, offsetof(Settings, capability) |
| 29 |
Exec.AmbientCapability, config_parse_capability, 0, offsetof(Settings, ambient_capability) |
| 30 |
Exec.DropCapability, config_parse_capability, 0, offsetof(Settings, drop_capability) |
| 31 |
Exec.KillSignal, config_parse_signal, 0, offsetof(Settings, kill_signal) |
| 32 |
Exec.Personality, config_parse_personality, 0, offsetof(Settings, personality) |
| 33 |
Exec.MachineID, config_parse_id128, 0, offsetof(Settings, machine_id) |
| 34 |
Exec.WorkingDirectory, config_parse_path, 0, offsetof(Settings, working_directory) |
| 35 |
Exec.PivotRoot, config_parse_pivot_root, 0, 0 |
| 36 |
Exec.PrivateUsers, config_parse_private_users, 0, 0 |
| 37 |
Exec.PrivateUsersDelegate, config_parse_unsigned, 0, offsetof(Settings, delegate_container_ranges) |
| 38 |
Exec.NotifyReady, config_parse_tristate, 0, offsetof(Settings, notify_ready) |
| 39 |
Exec.SystemCallFilter, config_parse_syscall_filter, 0, 0 |
| 40 |
Exec.LimitCPU, config_parse_rlimit, RLIMIT_CPU, offsetof(Settings, rlimit) |
| 41 |
Exec.LimitFSIZE, config_parse_rlimit, RLIMIT_FSIZE, offsetof(Settings, rlimit) |
| 42 |
Exec.LimitDATA, config_parse_rlimit, RLIMIT_DATA, offsetof(Settings, rlimit) |
| 43 |
Exec.LimitSTACK, config_parse_rlimit, RLIMIT_STACK, offsetof(Settings, rlimit) |
| 44 |
Exec.LimitCORE, config_parse_rlimit, RLIMIT_CORE, offsetof(Settings, rlimit) |
| 45 |
Exec.LimitRSS, config_parse_rlimit, RLIMIT_RSS, offsetof(Settings, rlimit) |
| 46 |
Exec.LimitNOFILE, config_parse_rlimit, RLIMIT_NOFILE, offsetof(Settings, rlimit) |
| 47 |
Exec.LimitAS, config_parse_rlimit, RLIMIT_AS, offsetof(Settings, rlimit) |
| 48 |
Exec.LimitNPROC, config_parse_rlimit, RLIMIT_NPROC, offsetof(Settings, rlimit) |
| 49 |
Exec.LimitMEMLOCK, config_parse_rlimit, RLIMIT_MEMLOCK, offsetof(Settings, rlimit) |
| 50 |
Exec.LimitLOCKS, config_parse_rlimit, RLIMIT_LOCKS, offsetof(Settings, rlimit) |
| 51 |
Exec.LimitSIGPENDING, config_parse_rlimit, RLIMIT_SIGPENDING, offsetof(Settings, rlimit) |
| 52 |
Exec.LimitMSGQUEUE, config_parse_rlimit, RLIMIT_MSGQUEUE, offsetof(Settings, rlimit) |
| 53 |
Exec.LimitNICE, config_parse_rlimit, RLIMIT_NICE, offsetof(Settings, rlimit) |
| 54 |
Exec.LimitRTPRIO, config_parse_rlimit, RLIMIT_RTPRIO, offsetof(Settings, rlimit) |
| 55 |
Exec.LimitRTTIME, config_parse_rlimit, RLIMIT_RTTIME, offsetof(Settings, rlimit) |
| 56 |
Exec.Hostname, config_parse_hostname, 0, offsetof(Settings, hostname) |
| 57 |
Exec.NoNewPrivileges, config_parse_tristate, 0, offsetof(Settings, no_new_privileges) |
| 58 |
Exec.OOMScoreAdjust, config_parse_oom_score_adjust, 0, 0 |
| 59 |
Exec.CPUAffinity, config_parse_cpu_set, 0, offsetof(Settings, cpu_set) |
| 60 |
Exec.ResolvConf, config_parse_resolv_conf, 0, offsetof(Settings, resolv_conf) |
| 61 |
Exec.LinkJournal, config_parse_link_journal, 0, 0 |
| 62 |
Exec.Timezone, config_parse_timezone_mode, 0, offsetof(Settings, timezone) |
| 63 |
Exec.SuppressSync, config_parse_tristate, 0, offsetof(Settings, suppress_sync) |
| 64 |
Exec.RestrictAddressFamilies, config_parse_restrict_address_families, 0, 0 |
| 65 |
Files.ReadOnly, config_parse_tristate, 0, offsetof(Settings, read_only) |
| 66 |
Files.Volatile, config_parse_volatile_mode, 0, offsetof(Settings, volatile_mode) |
| 67 |
Files.Bind, config_parse_bind, 0, 0 |
| 68 |
Files.BindReadOnly, config_parse_bind, 1, 0 |
| 69 |
Files.TemporaryFileSystem, config_parse_tmpfs, 0, 0 |
| 70 |
Files.Inaccessible, config_parse_inaccessible, 0, 0 |
| 71 |
Files.Overlay, config_parse_overlay, 0, 0 |
| 72 |
Files.OverlayReadOnly, config_parse_overlay, 1, 0 |
| 73 |
Files.PrivateUsersChown, config_parse_userns_chown, 0, offsetof(Settings, userns_ownership) |
| 74 |
Files.PrivateUsersOwnership, config_parse_userns_ownership, 0, offsetof(Settings, userns_ownership) |
| 75 |
Files.BindUser, config_parse_bind_user, 0, offsetof(Settings, bind_user) |
| 76 |
Files.BindUserShell, config_parse_bind_user_shell, 0, 0 |
| 77 |
Network.Private, config_parse_tristate, 0, offsetof(Settings, private_network) |
| 78 |
Network.NamespacePath, config_parse_path, 0, offsetof(Settings, network_namespace_path) |
| 79 |
Network.Interface, config_parse_network_iface_pair, 0, offsetof(Settings, network_interfaces) |
| 80 |
Network.MACVLAN, config_parse_macvlan_iface_pair, 0, offsetof(Settings, network_macvlan) |
| 81 |
Network.IPVLAN, config_parse_ipvlan_iface_pair, 0, offsetof(Settings, network_ipvlan) |
| 82 |
Network.VirtualEthernet, config_parse_tristate, 0, offsetof(Settings, network_veth) |
| 83 |
Network.VirtualEthernetExtra, config_parse_veth_extra, 0, 0 |
| 84 |
Network.Bridge, config_parse_ifname, 0, offsetof(Settings, network_bridge) |
| 85 |
Network.Zone, config_parse_network_zone, 0, 0 |
| 86 |
Network.Port, config_parse_expose_port, 0, 0 |