]> git.proxmox.com Git - systemd.git/blob - src/core/load-fragment-gperf.gperf.in
81a5971339adff5a237efb665c9b46c3c491dcf6
[systemd.git] / src / core / load-fragment-gperf.gperf.in
1 {# SPDX-License-Identifier: LGPL-2.1-or-later #}
2
3 {%- macro EXEC_CONTEXT_CONFIG_ITEMS(type) -%}
4 {# Define the context options only once #}
5 {{type}}.WorkingDirectory, config_parse_working_directory, 0, offsetof({{type}}, exec_context)
6 {{type}}.RootDirectory, config_parse_unit_path_printf, true, offsetof({{type}}, exec_context.root_directory)
7 {{type}}.RootImage, config_parse_unit_path_printf, true, offsetof({{type}}, exec_context.root_image)
8 {{type}}.RootImageOptions, config_parse_root_image_options, 0, offsetof({{type}}, exec_context)
9 {{type}}.RootHash, config_parse_exec_root_hash, 0, offsetof({{type}}, exec_context)
10 {{type}}.RootHashSignature, config_parse_exec_root_hash_sig, 0, offsetof({{type}}, exec_context)
11 {{type}}.RootVerity, config_parse_unit_path_printf, true, offsetof({{type}}, exec_context.root_verity)
12 {{type}}.ExtensionDirectories, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.extension_directories)
13 {{type}}.ExtensionImages, config_parse_extension_images, 0, offsetof({{type}}, exec_context)
14 {{type}}.MountImages, config_parse_mount_images, 0, offsetof({{type}}, exec_context)
15 {{type}}.User, config_parse_user_group_compat, 0, offsetof({{type}}, exec_context.user)
16 {{type}}.Group, config_parse_user_group_compat, 0, offsetof({{type}}, exec_context.group)
17 {{type}}.SupplementaryGroups, config_parse_user_group_strv_compat, 0, offsetof({{type}}, exec_context.supplementary_groups)
18 {{type}}.Nice, config_parse_exec_nice, 0, offsetof({{type}}, exec_context)
19 {{type}}.OOMScoreAdjust, config_parse_exec_oom_score_adjust, 0, offsetof({{type}}, exec_context)
20 {{type}}.CoredumpFilter, config_parse_exec_coredump_filter, 0, offsetof({{type}}, exec_context)
21 {{type}}.IOSchedulingClass, config_parse_exec_io_class, 0, offsetof({{type}}, exec_context)
22 {{type}}.IOSchedulingPriority, config_parse_exec_io_priority, 0, offsetof({{type}}, exec_context)
23 {{type}}.CPUSchedulingPolicy, config_parse_exec_cpu_sched_policy, 0, offsetof({{type}}, exec_context)
24 {{type}}.CPUSchedulingPriority, config_parse_exec_cpu_sched_prio, 0, offsetof({{type}}, exec_context)
25 {{type}}.CPUSchedulingResetOnFork, config_parse_bool, 0, offsetof({{type}}, exec_context.cpu_sched_reset_on_fork)
26 {{type}}.CPUAffinity, config_parse_exec_cpu_affinity, 0, offsetof({{type}}, exec_context)
27 {{type}}.NUMAPolicy, config_parse_numa_policy, 0, offsetof({{type}}, exec_context.numa_policy.type)
28 {{type}}.NUMAMask, config_parse_numa_mask, 0, offsetof({{type}}, exec_context.numa_policy)
29 {{type}}.UMask, config_parse_mode, 0, offsetof({{type}}, exec_context.umask)
30 {{type}}.Environment, config_parse_environ, 0, offsetof({{type}}, exec_context.environment)
31 {{type}}.EnvironmentFile, config_parse_unit_env_file, 0, offsetof({{type}}, exec_context.environment_files)
32 {{type}}.PassEnvironment, config_parse_pass_environ, 0, offsetof({{type}}, exec_context.pass_environment)
33 {{type}}.UnsetEnvironment, config_parse_unset_environ, 0, offsetof({{type}}, exec_context.unset_environment)
34 {{type}}.DynamicUser, config_parse_bool, true, offsetof({{type}}, exec_context.dynamic_user)
35 {{type}}.RemoveIPC, config_parse_bool, 0, offsetof({{type}}, exec_context.remove_ipc)
36 {{type}}.StandardInput, config_parse_exec_input, 0, offsetof({{type}}, exec_context)
37 {{type}}.StandardOutput, config_parse_exec_output, 0, offsetof({{type}}, exec_context)
38 {{type}}.StandardError, config_parse_exec_output, 0, offsetof({{type}}, exec_context)
39 {{type}}.StandardInputText, config_parse_exec_input_text, 0, offsetof({{type}}, exec_context)
40 {{type}}.StandardInputData, config_parse_exec_input_data, 0, offsetof({{type}}, exec_context)
41 {{type}}.TTYPath, config_parse_unit_path_printf, 0, offsetof({{type}}, exec_context.tty_path)
42 {{type}}.TTYReset, config_parse_bool, 0, offsetof({{type}}, exec_context.tty_reset)
43 {{type}}.TTYVHangup, config_parse_bool, 0, offsetof({{type}}, exec_context.tty_vhangup)
44 {{type}}.TTYVTDisallocate, config_parse_bool, 0, offsetof({{type}}, exec_context.tty_vt_disallocate)
45 {{type}}.TTYRows, config_parse_tty_size, 0, offsetof({{type}}, exec_context.tty_rows)
46 {{type}}.TTYColumns, config_parse_tty_size, 0, offsetof({{type}}, exec_context.tty_cols)
47 {{type}}.SyslogIdentifier, config_parse_unit_string_printf, 0, offsetof({{type}}, exec_context.syslog_identifier)
48 {{type}}.SyslogFacility, config_parse_log_facility, 0, offsetof({{type}}, exec_context.syslog_priority)
49 {{type}}.SyslogLevel, config_parse_log_level, 0, offsetof({{type}}, exec_context.syslog_priority)
50 {{type}}.SyslogLevelPrefix, config_parse_bool, 0, offsetof({{type}}, exec_context.syslog_level_prefix)
51 {{type}}.LogLevelMax, config_parse_log_level, 0, offsetof({{type}}, exec_context.log_level_max)
52 {{type}}.LogRateLimitIntervalSec, config_parse_sec, 0, offsetof({{type}}, exec_context.log_ratelimit_interval_usec)
53 {{type}}.LogRateLimitBurst, config_parse_unsigned, 0, offsetof({{type}}, exec_context.log_ratelimit_burst)
54 {{type}}.LogExtraFields, config_parse_log_extra_fields, 0, offsetof({{type}}, exec_context)
55 {{type}}.Capabilities, config_parse_warn_compat, DISABLED_LEGACY, offsetof({{type}}, exec_context)
56 {{type}}.SecureBits, config_parse_exec_secure_bits, 0, offsetof({{type}}, exec_context.secure_bits)
57 {{type}}.CapabilityBoundingSet, config_parse_capability_set, 0, offsetof({{type}}, exec_context.capability_bounding_set)
58 {{type}}.AmbientCapabilities, config_parse_capability_set, 0, offsetof({{type}}, exec_context.capability_ambient_set)
59 {{type}}.TimerSlackNSec, config_parse_nsec, 0, offsetof({{type}}, exec_context.timer_slack_nsec)
60 {{type}}.NoNewPrivileges, config_parse_bool, 0, offsetof({{type}}, exec_context.no_new_privileges)
61 {{type}}.KeyringMode, config_parse_exec_keyring_mode, 0, offsetof({{type}}, exec_context.keyring_mode)
62 {{type}}.ProtectProc, config_parse_protect_proc, 0, offsetof({{type}}, exec_context.protect_proc)
63 {{type}}.ProcSubset, config_parse_proc_subset, 0, offsetof({{type}}, exec_context.proc_subset)
64 {% if HAVE_SECCOMP %}
65 {{type}}.SystemCallFilter, config_parse_syscall_filter, 0, offsetof({{type}}, exec_context)
66 {{type}}.SystemCallArchitectures, config_parse_syscall_archs, 0, offsetof({{type}}, exec_context.syscall_archs)
67 {{type}}.SystemCallErrorNumber, config_parse_syscall_errno, 0, offsetof({{type}}, exec_context)
68 {{type}}.SystemCallLog, config_parse_syscall_log, 0, offsetof({{type}}, exec_context)
69 {{type}}.MemoryDenyWriteExecute, config_parse_bool, 0, offsetof({{type}}, exec_context.memory_deny_write_execute)
70 {{type}}.RestrictNamespaces, config_parse_restrict_namespaces, 0, offsetof({{type}}, exec_context)
71 {{type}}.RestrictRealtime, config_parse_bool, 0, offsetof({{type}}, exec_context.restrict_realtime)
72 {{type}}.RestrictSUIDSGID, config_parse_bool, 0, offsetof({{type}}, exec_context.restrict_suid_sgid)
73 {{type}}.RestrictAddressFamilies, config_parse_address_families, 0, offsetof({{type}}, exec_context)
74 {{type}}.LockPersonality, config_parse_bool, 0, offsetof({{type}}, exec_context.lock_personality)
75 {% else %}
76 {{type}}.SystemCallFilter, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
77 {{type}}.SystemCallArchitectures, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
78 {{type}}.SystemCallErrorNumber, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
79 {{type}}.SystemCallLog, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
80 {{type}}.MemoryDenyWriteExecute, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
81 {{type}}.RestrictNamespaces, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
82 {{type}}.RestrictRealtime, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
83 {{type}}.RestrictSUIDSGID, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
84 {{type}}.RestrictAddressFamilies, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
85 {{type}}.LockPersonality, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
86 {% endif %}
87 {{type}}.RestrictFileSystems, config_parse_restrict_filesystems, 0, offsetof({{type}}, exec_context)
88 {{type}}.LimitCPU, config_parse_rlimit, RLIMIT_CPU, offsetof({{type}}, exec_context.rlimit)
89 {{type}}.LimitFSIZE, config_parse_rlimit, RLIMIT_FSIZE, offsetof({{type}}, exec_context.rlimit)
90 {{type}}.LimitDATA, config_parse_rlimit, RLIMIT_DATA, offsetof({{type}}, exec_context.rlimit)
91 {{type}}.LimitSTACK, config_parse_rlimit, RLIMIT_STACK, offsetof({{type}}, exec_context.rlimit)
92 {{type}}.LimitCORE, config_parse_rlimit, RLIMIT_CORE, offsetof({{type}}, exec_context.rlimit)
93 {{type}}.LimitRSS, config_parse_rlimit, RLIMIT_RSS, offsetof({{type}}, exec_context.rlimit)
94 {{type}}.LimitNOFILE, config_parse_rlimit, RLIMIT_NOFILE, offsetof({{type}}, exec_context.rlimit)
95 {{type}}.LimitAS, config_parse_rlimit, RLIMIT_AS, offsetof({{type}}, exec_context.rlimit)
96 {{type}}.LimitNPROC, config_parse_rlimit, RLIMIT_NPROC, offsetof({{type}}, exec_context.rlimit)
97 {{type}}.LimitMEMLOCK, config_parse_rlimit, RLIMIT_MEMLOCK, offsetof({{type}}, exec_context.rlimit)
98 {{type}}.LimitLOCKS, config_parse_rlimit, RLIMIT_LOCKS, offsetof({{type}}, exec_context.rlimit)
99 {{type}}.LimitSIGPENDING, config_parse_rlimit, RLIMIT_SIGPENDING, offsetof({{type}}, exec_context.rlimit)
100 {{type}}.LimitMSGQUEUE, config_parse_rlimit, RLIMIT_MSGQUEUE, offsetof({{type}}, exec_context.rlimit)
101 {{type}}.LimitNICE, config_parse_rlimit, RLIMIT_NICE, offsetof({{type}}, exec_context.rlimit)
102 {{type}}.LimitRTPRIO, config_parse_rlimit, RLIMIT_RTPRIO, offsetof({{type}}, exec_context.rlimit)
103 {{type}}.LimitRTTIME, config_parse_rlimit, RLIMIT_RTTIME, offsetof({{type}}, exec_context.rlimit)
104 {{type}}.ReadWriteDirectories, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.read_write_paths)
105 {{type}}.ReadOnlyDirectories, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.read_only_paths)
106 {{type}}.InaccessibleDirectories, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.inaccessible_paths)
107 {{type}}.ReadWritePaths, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.read_write_paths)
108 {{type}}.ReadOnlyPaths, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.read_only_paths)
109 {{type}}.InaccessiblePaths, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.inaccessible_paths)
110 {{type}}.ExecPaths, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.exec_paths)
111 {{type}}.NoExecPaths, config_parse_namespace_path_strv, 0, offsetof({{type}}, exec_context.no_exec_paths)
112 {{type}}.ExecSearchPath, config_parse_colon_separated_paths, 0, offsetof({{type}}, exec_context.exec_search_path)
113 {{type}}.BindPaths, config_parse_bind_paths, 0, offsetof({{type}}, exec_context)
114 {{type}}.BindReadOnlyPaths, config_parse_bind_paths, 0, offsetof({{type}}, exec_context)
115 {{type}}.TemporaryFileSystem, config_parse_temporary_filesystems, 0, offsetof({{type}}, exec_context)
116 {{type}}.PrivateTmp, config_parse_bool, 0, offsetof({{type}}, exec_context.private_tmp)
117 {{type}}.PrivateDevices, config_parse_bool, 0, offsetof({{type}}, exec_context.private_devices)
118 {{type}}.ProtectKernelTunables, config_parse_bool, 0, offsetof({{type}}, exec_context.protect_kernel_tunables)
119 {{type}}.ProtectKernelModules, config_parse_bool, 0, offsetof({{type}}, exec_context.protect_kernel_modules)
120 {{type}}.ProtectKernelLogs, config_parse_bool, 0, offsetof({{type}}, exec_context.protect_kernel_logs)
121 {{type}}.ProtectClock, config_parse_bool, 0, offsetof({{type}}, exec_context.protect_clock)
122 {{type}}.ProtectControlGroups, config_parse_bool, 0, offsetof({{type}}, exec_context.protect_control_groups)
123 {{type}}.NetworkNamespacePath, config_parse_unit_path_printf, 0, offsetof({{type}}, exec_context.network_namespace_path)
124 {{type}}.IPCNamespacePath, config_parse_unit_path_printf, 0, offsetof({{type}}, exec_context.ipc_namespace_path)
125 {{type}}.LogNamespace, config_parse_log_namespace, 0, offsetof({{type}}, exec_context)
126 {{type}}.PrivateNetwork, config_parse_bool, 0, offsetof({{type}}, exec_context.private_network)
127 {{type}}.PrivateUsers, config_parse_bool, 0, offsetof({{type}}, exec_context.private_users)
128 {{type}}.PrivateMounts, config_parse_bool, 0, offsetof({{type}}, exec_context.private_mounts)
129 {{type}}.PrivateIPC, config_parse_bool, 0, offsetof({{type}}, exec_context.private_ipc)
130 {{type}}.ProtectSystem, config_parse_protect_system, 0, offsetof({{type}}, exec_context.protect_system)
131 {{type}}.ProtectHome, config_parse_protect_home, 0, offsetof({{type}}, exec_context.protect_home)
132 {{type}}.MountFlags, config_parse_exec_mount_flags, 0, offsetof({{type}}, exec_context.mount_flags)
133 {{type}}.MountAPIVFS, config_parse_exec_mount_apivfs, 0, offsetof({{type}}, exec_context)
134 {{type}}.Personality, config_parse_personality, 0, offsetof({{type}}, exec_context.personality)
135 {{type}}.RuntimeDirectoryPreserve, config_parse_runtime_preserve_mode, 0, offsetof({{type}}, exec_context.runtime_directory_preserve_mode)
136 {{type}}.RuntimeDirectoryMode, config_parse_mode, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_RUNTIME].mode)
137 {{type}}.RuntimeDirectory, config_parse_exec_directories, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_RUNTIME])
138 {{type}}.StateDirectoryMode, config_parse_mode, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_STATE].mode)
139 {{type}}.StateDirectory, config_parse_exec_directories, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_STATE])
140 {{type}}.CacheDirectoryMode, config_parse_mode, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_CACHE].mode)
141 {{type}}.CacheDirectory, config_parse_exec_directories, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_CACHE])
142 {{type}}.LogsDirectoryMode, config_parse_mode, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_LOGS].mode)
143 {{type}}.LogsDirectory, config_parse_exec_directories, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_LOGS])
144 {{type}}.ConfigurationDirectoryMode, config_parse_mode, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_CONFIGURATION].mode)
145 {{type}}.ConfigurationDirectory, config_parse_exec_directories, 0, offsetof({{type}}, exec_context.directories[EXEC_DIRECTORY_CONFIGURATION])
146 {{type}}.SetCredential, config_parse_set_credential, 0, offsetof({{type}}, exec_context)
147 {{type}}.SetCredentialEncrypted, config_parse_set_credential, 1, offsetof({{type}}, exec_context)
148 {{type}}.LoadCredential, config_parse_load_credential, 0, offsetof({{type}}, exec_context)
149 {{type}}.LoadCredentialEncrypted, config_parse_load_credential, 1, offsetof({{type}}, exec_context)
150 {{type}}.TimeoutCleanSec, config_parse_sec, 0, offsetof({{type}}, exec_context.timeout_clean_usec)
151 {% if HAVE_PAM %}
152 {{type}}.PAMName, config_parse_unit_string_printf, 0, offsetof({{type}}, exec_context.pam_name)
153 {% else %}
154 {{type}}.PAMName, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
155 {% endif %}
156 {{type}}.IgnoreSIGPIPE, config_parse_bool, 0, offsetof({{type}}, exec_context.ignore_sigpipe)
157 {{type}}.UtmpIdentifier, config_parse_unit_string_printf, 0, offsetof({{type}}, exec_context.utmp_id)
158 {{type}}.UtmpMode, config_parse_exec_utmp_mode, 0, offsetof({{type}}, exec_context.utmp_mode)
159 {% if HAVE_SELINUX %}
160 {{type}}.SELinuxContext, config_parse_exec_selinux_context, 0, offsetof({{type}}, exec_context)
161 {% else %}
162 {{type}}.SELinuxContext, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
163 {% endif %}
164 {% if HAVE_APPARMOR %}
165 {{type}}.AppArmorProfile, config_parse_exec_apparmor_profile, 0, offsetof({{type}}, exec_context)
166 {% else %}
167 {{type}}.AppArmorProfile, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
168 {% endif %}
169 {% if ENABLE_SMACK %}
170 {{type}}.SmackProcessLabel, config_parse_exec_smack_process_label, 0, offsetof({{type}}, exec_context)
171 {% else %}
172 {{type}}.SmackProcessLabel, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
173 {% endif %}
174 {{type}}.ProtectHostname, config_parse_bool, 0, offsetof({{type}}, exec_context.protect_hostname)
175 {%- endmacro -%}
176
177 {%- macro KILL_CONTEXT_CONFIG_ITEMS(type) -%}
178 {{type}}.SendSIGKILL, config_parse_bool, 0, offsetof({{type}}, kill_context.send_sigkill)
179 {{type}}.SendSIGHUP, config_parse_bool, 0, offsetof({{type}}, kill_context.send_sighup)
180 {{type}}.KillMode, config_parse_kill_mode, 0, offsetof({{type}}, kill_context.kill_mode)
181 {{type}}.KillSignal, config_parse_signal, 0, offsetof({{type}}, kill_context.kill_signal)
182 {{type}}.RestartKillSignal, config_parse_signal, 0, offsetof({{type}}, kill_context.restart_kill_signal)
183 {{type}}.FinalKillSignal, config_parse_signal, 0, offsetof({{type}}, kill_context.final_kill_signal)
184 {{type}}.WatchdogSignal, config_parse_signal, 0, offsetof({{type}}, kill_context.watchdog_signal)
185 {%- endmacro -%}
186
187 {%- macro CGROUP_CONTEXT_CONFIG_ITEMS(type) -%}
188 {{type}}.Slice, config_parse_unit_slice, 0, 0
189 {{type}}.AllowedCPUs, config_parse_allowed_cpuset, 0, offsetof({{type}}, cgroup_context.cpuset_cpus)
190 {{type}}.StartupAllowedCPUs, config_parse_allowed_cpuset, 0, offsetof({{type}}, cgroup_context.startup_cpuset_cpus)
191 {{type}}.AllowedMemoryNodes, config_parse_allowed_cpuset, 0, offsetof({{type}}, cgroup_context.cpuset_mems)
192 {{type}}.StartupAllowedMemoryNodes, config_parse_allowed_cpuset, 0, offsetof({{type}}, cgroup_context.startup_cpuset_mems)
193 {{type}}.CPUAccounting, config_parse_bool, 0, offsetof({{type}}, cgroup_context.cpu_accounting)
194 {{type}}.CPUWeight, config_parse_cg_cpu_weight, 0, offsetof({{type}}, cgroup_context.cpu_weight)
195 {{type}}.StartupCPUWeight, config_parse_cg_cpu_weight, 0, offsetof({{type}}, cgroup_context.startup_cpu_weight)
196 {{type}}.CPUShares, config_parse_cpu_shares, 0, offsetof({{type}}, cgroup_context.cpu_shares)
197 {{type}}.StartupCPUShares, config_parse_cpu_shares, 0, offsetof({{type}}, cgroup_context.startup_cpu_shares)
198 {{type}}.CPUQuota, config_parse_cpu_quota, 0, offsetof({{type}}, cgroup_context)
199 {{type}}.CPUQuotaPeriodSec, config_parse_sec_def_infinity, 0, offsetof({{type}}, cgroup_context.cpu_quota_period_usec)
200 {{type}}.MemoryAccounting, config_parse_bool, 0, offsetof({{type}}, cgroup_context.memory_accounting)
201 {{type}}.MemoryMin, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
202 {{type}}.DefaultMemoryMin, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
203 {{type}}.DefaultMemoryLow, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
204 {{type}}.MemoryLow, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
205 {{type}}.MemoryHigh, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
206 {{type}}.MemoryMax, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
207 {{type}}.MemorySwapMax, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
208 {{type}}.MemoryLimit, config_parse_memory_limit, 0, offsetof({{type}}, cgroup_context)
209 {{type}}.DeviceAllow, config_parse_device_allow, 0, offsetof({{type}}, cgroup_context)
210 {{type}}.DevicePolicy, config_parse_device_policy, 0, offsetof({{type}}, cgroup_context.device_policy)
211 {{type}}.IOAccounting, config_parse_bool, 0, offsetof({{type}}, cgroup_context.io_accounting)
212 {{type}}.IOWeight, config_parse_cg_weight, 0, offsetof({{type}}, cgroup_context.io_weight)
213 {{type}}.StartupIOWeight, config_parse_cg_weight, 0, offsetof({{type}}, cgroup_context.startup_io_weight)
214 {{type}}.IODeviceWeight, config_parse_io_device_weight, 0, offsetof({{type}}, cgroup_context)
215 {{type}}.IOReadBandwidthMax, config_parse_io_limit, 0, offsetof({{type}}, cgroup_context)
216 {{type}}.IOWriteBandwidthMax, config_parse_io_limit, 0, offsetof({{type}}, cgroup_context)
217 {{type}}.IOReadIOPSMax, config_parse_io_limit, 0, offsetof({{type}}, cgroup_context)
218 {{type}}.IOWriteIOPSMax, config_parse_io_limit, 0, offsetof({{type}}, cgroup_context)
219 {{type}}.IODeviceLatencyTargetSec, config_parse_io_device_latency, 0, offsetof({{type}}, cgroup_context)
220 {{type}}.BlockIOAccounting, config_parse_bool, 0, offsetof({{type}}, cgroup_context.blockio_accounting)
221 {{type}}.BlockIOWeight, config_parse_blockio_weight, 0, offsetof({{type}}, cgroup_context.blockio_weight)
222 {{type}}.StartupBlockIOWeight, config_parse_blockio_weight, 0, offsetof({{type}}, cgroup_context.startup_blockio_weight)
223 {{type}}.BlockIODeviceWeight, config_parse_blockio_device_weight, 0, offsetof({{type}}, cgroup_context)
224 {{type}}.BlockIOReadBandwidth, config_parse_blockio_bandwidth, 0, offsetof({{type}}, cgroup_context)
225 {{type}}.BlockIOWriteBandwidth, config_parse_blockio_bandwidth, 0, offsetof({{type}}, cgroup_context)
226 {{type}}.TasksAccounting, config_parse_bool, 0, offsetof({{type}}, cgroup_context.tasks_accounting)
227 {{type}}.TasksMax, config_parse_tasks_max, 0, offsetof({{type}}, cgroup_context.tasks_max)
228 {{type}}.Delegate, config_parse_delegate, 0, offsetof({{type}}, cgroup_context)
229 {{type}}.DisableControllers, config_parse_disable_controllers, 0, offsetof({{type}}, cgroup_context)
230 {{type}}.IPAccounting, config_parse_bool, 0, offsetof({{type}}, cgroup_context.ip_accounting)
231 {{type}}.IPAddressAllow, config_parse_in_addr_prefixes, AF_UNSPEC, offsetof({{type}}, cgroup_context.ip_address_allow)
232 {{type}}.IPAddressDeny, config_parse_in_addr_prefixes, AF_UNSPEC, offsetof({{type}}, cgroup_context.ip_address_deny)
233 {{type}}.IPIngressFilterPath, config_parse_ip_filter_bpf_progs, 0, offsetof({{type}}, cgroup_context.ip_filters_ingress)
234 {{type}}.IPEgressFilterPath, config_parse_ip_filter_bpf_progs, 0, offsetof({{type}}, cgroup_context.ip_filters_egress)
235 {{type}}.ManagedOOMSwap, config_parse_managed_oom_mode, 0, offsetof({{type}}, cgroup_context.moom_swap)
236 {{type}}.ManagedOOMMemoryPressure, config_parse_managed_oom_mode, 0, offsetof({{type}}, cgroup_context.moom_mem_pressure)
237 {{type}}.ManagedOOMMemoryPressureLimit, config_parse_managed_oom_mem_pressure_limit, 0, offsetof({{type}}, cgroup_context.moom_mem_pressure_limit)
238 {{type}}.ManagedOOMPreference, config_parse_managed_oom_preference, 0, offsetof({{type}}, cgroup_context.moom_preference)
239 {{type}}.NetClass, config_parse_warn_compat, DISABLED_LEGACY, 0
240 {{type}}.BPFProgram, config_parse_bpf_foreign_program, 0, offsetof({{type}}, cgroup_context)
241 {{type}}.SocketBindAllow, config_parse_cgroup_socket_bind, 0, offsetof({{type}}, cgroup_context.socket_bind_allow)
242 {{type}}.SocketBindDeny, config_parse_cgroup_socket_bind, 0, offsetof({{type}}, cgroup_context.socket_bind_deny)
243 {{type}}.RestrictNetworkInterfaces, config_parse_restrict_network_interfaces, 0, offsetof({{type}}, cgroup_context)
244 {%- endmacro -%}
245
246 %{
247 #if __GNUC__ >= 7
248 _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
249 #endif
250 #include <stddef.h>
251 #include "all-units.h"
252 #include "conf-parser.h"
253 #include "in-addr-prefix-util.h"
254 #include "load-fragment.h"
255 %}
256 struct ConfigPerfItem;
257 %null_strings
258 %language=ANSI-C
259 %define slot-name section_and_lvalue
260 %define hash-function-name load_fragment_gperf_hash
261 %define lookup-function-name load_fragment_gperf_lookup
262 %readonly-tables
263 %omit-struct-type
264 %struct-type
265 %includes
266 %%
267 Unit.Description, config_parse_unit_string_printf, 0, offsetof(Unit, description)
268 Unit.Documentation, config_parse_documentation, 0, offsetof(Unit, documentation)
269 Unit.SourcePath, config_parse_unit_path_printf, 0, offsetof(Unit, source_path)
270 Unit.Requires, config_parse_unit_deps, UNIT_REQUIRES, 0
271 Unit.Requisite, config_parse_unit_deps, UNIT_REQUISITE, 0
272 Unit.Wants, config_parse_unit_deps, UNIT_WANTS, 0
273 Unit.BindsTo, config_parse_unit_deps, UNIT_BINDS_TO, 0
274 Unit.BindTo, config_parse_unit_deps, UNIT_BINDS_TO, 0
275 Unit.Upholds, config_parse_unit_deps, UNIT_UPHOLDS, 0
276 Unit.Conflicts, config_parse_unit_deps, UNIT_CONFLICTS, 0
277 Unit.Before, config_parse_unit_deps, UNIT_BEFORE, 0
278 Unit.After, config_parse_unit_deps, UNIT_AFTER, 0
279 Unit.OnSuccess, config_parse_unit_deps, UNIT_ON_SUCCESS, 0
280 Unit.OnFailure, config_parse_unit_deps, UNIT_ON_FAILURE, 0
281 Unit.PropagatesReloadTo, config_parse_unit_deps, UNIT_PROPAGATES_RELOAD_TO, 0
282 Unit.PropagateReloadTo, config_parse_unit_deps, UNIT_PROPAGATES_RELOAD_TO, 0
283 Unit.ReloadPropagatedFrom, config_parse_unit_deps, UNIT_RELOAD_PROPAGATED_FROM, 0
284 Unit.PropagateReloadFrom, config_parse_unit_deps, UNIT_RELOAD_PROPAGATED_FROM, 0
285 Unit.PropagatesStopTo, config_parse_unit_deps, UNIT_PROPAGATES_STOP_TO, 0
286 Unit.StopPropagatedFrom, config_parse_unit_deps, UNIT_STOP_PROPAGATED_FROM, 0
287 Unit.PartOf, config_parse_unit_deps, UNIT_PART_OF, 0
288 Unit.JoinsNamespaceOf, config_parse_unit_deps, UNIT_JOINS_NAMESPACE_OF, 0
289 Unit.RequiresOverridable, config_parse_obsolete_unit_deps, UNIT_REQUIRES, 0
290 Unit.RequisiteOverridable, config_parse_obsolete_unit_deps, UNIT_REQUISITE, 0
291 Unit.RequiresMountsFor, config_parse_unit_requires_mounts_for, 0, 0
292 Unit.StopWhenUnneeded, config_parse_bool, 0, offsetof(Unit, stop_when_unneeded)
293 Unit.RefuseManualStart, config_parse_bool, 0, offsetof(Unit, refuse_manual_start)
294 Unit.RefuseManualStop, config_parse_bool, 0, offsetof(Unit, refuse_manual_stop)
295 Unit.AllowIsolate, config_parse_bool, 0, offsetof(Unit, allow_isolate)
296 Unit.DefaultDependencies, config_parse_bool, 0, offsetof(Unit, default_dependencies)
297 Unit.OnSuccessJobMode, config_parse_job_mode, 0, offsetof(Unit, on_success_job_mode)
298 Unit.OnFailureJobMode, config_parse_job_mode, 0, offsetof(Unit, on_failure_job_mode)
299 {# The following is a legacy alias name for compatibility #}
300 Unit.OnFailureIsolate, config_parse_job_mode_isolate, 0, offsetof(Unit, on_failure_job_mode)
301 Unit.IgnoreOnIsolate, config_parse_bool, 0, offsetof(Unit, ignore_on_isolate)
302 Unit.IgnoreOnSnapshot, config_parse_warn_compat, DISABLED_LEGACY, 0
303 Unit.JobTimeoutSec, config_parse_job_timeout_sec, 0, 0
304 Unit.JobRunningTimeoutSec, config_parse_job_running_timeout_sec, 0, 0
305 Unit.JobTimeoutAction, config_parse_emergency_action, 0, offsetof(Unit, job_timeout_action)
306 Unit.JobTimeoutRebootArgument, config_parse_unit_string_printf, 0, offsetof(Unit, job_timeout_reboot_arg)
307 Unit.StartLimitIntervalSec, config_parse_sec, 0, offsetof(Unit, start_ratelimit.interval)
308 {# The following is a legacy alias name for compatibility #}
309 Unit.StartLimitInterval, config_parse_sec, 0, offsetof(Unit, start_ratelimit.interval)
310 Unit.StartLimitBurst, config_parse_unsigned, 0, offsetof(Unit, start_ratelimit.burst)
311 Unit.StartLimitAction, config_parse_emergency_action, 0, offsetof(Unit, start_limit_action)
312 Unit.FailureAction, config_parse_emergency_action, 0, offsetof(Unit, failure_action)
313 Unit.SuccessAction, config_parse_emergency_action, 0, offsetof(Unit, success_action)
314 Unit.FailureActionExitStatus, config_parse_exit_status, 0, offsetof(Unit, failure_action_exit_status)
315 Unit.SuccessActionExitStatus, config_parse_exit_status, 0, offsetof(Unit, success_action_exit_status)
316 Unit.RebootArgument, config_parse_unit_string_printf, 0, offsetof(Unit, reboot_arg)
317 Unit.ConditionPathExists, config_parse_unit_condition_path, CONDITION_PATH_EXISTS, offsetof(Unit, conditions)
318 Unit.ConditionPathExistsGlob, config_parse_unit_condition_path, CONDITION_PATH_EXISTS_GLOB, offsetof(Unit, conditions)
319 Unit.ConditionPathIsDirectory, config_parse_unit_condition_path, CONDITION_PATH_IS_DIRECTORY, offsetof(Unit, conditions)
320 Unit.ConditionPathIsSymbolicLink, config_parse_unit_condition_path, CONDITION_PATH_IS_SYMBOLIC_LINK, offsetof(Unit, conditions)
321 Unit.ConditionPathIsMountPoint, config_parse_unit_condition_path, CONDITION_PATH_IS_MOUNT_POINT, offsetof(Unit, conditions)
322 Unit.ConditionPathIsReadWrite, config_parse_unit_condition_path, CONDITION_PATH_IS_READ_WRITE, offsetof(Unit, conditions)
323 Unit.ConditionPathIsEncrypted, config_parse_unit_condition_path, CONDITION_PATH_IS_ENCRYPTED, offsetof(Unit, conditions)
324 Unit.ConditionDirectoryNotEmpty, config_parse_unit_condition_path, CONDITION_DIRECTORY_NOT_EMPTY, offsetof(Unit, conditions)
325 Unit.ConditionFileNotEmpty, config_parse_unit_condition_path, CONDITION_FILE_NOT_EMPTY, offsetof(Unit, conditions)
326 Unit.ConditionFileIsExecutable, config_parse_unit_condition_path, CONDITION_FILE_IS_EXECUTABLE, offsetof(Unit, conditions)
327 Unit.ConditionNeedsUpdate, config_parse_unit_condition_path, CONDITION_NEEDS_UPDATE, offsetof(Unit, conditions)
328 Unit.ConditionFirstBoot, config_parse_unit_condition_string, CONDITION_FIRST_BOOT, offsetof(Unit, conditions)
329 Unit.ConditionArchitecture, config_parse_unit_condition_string, CONDITION_ARCHITECTURE, offsetof(Unit, conditions)
330 Unit.ConditionFirmware, config_parse_unit_condition_string, CONDITION_FIRMWARE, offsetof(Unit, conditions)
331 Unit.ConditionVirtualization, config_parse_unit_condition_string, CONDITION_VIRTUALIZATION, offsetof(Unit, conditions)
332 Unit.ConditionHost, config_parse_unit_condition_string, CONDITION_HOST, offsetof(Unit, conditions)
333 Unit.ConditionKernelCommandLine, config_parse_unit_condition_string, CONDITION_KERNEL_COMMAND_LINE, offsetof(Unit, conditions)
334 Unit.ConditionKernelVersion, config_parse_unit_condition_string, CONDITION_KERNEL_VERSION, offsetof(Unit, conditions)
335 Unit.ConditionCredential, config_parse_unit_condition_string, CONDITION_CREDENTIAL, offsetof(Unit, conditions)
336 Unit.ConditionSecurity, config_parse_unit_condition_string, CONDITION_SECURITY, offsetof(Unit, conditions)
337 Unit.ConditionCapability, config_parse_unit_condition_string, CONDITION_CAPABILITY, offsetof(Unit, conditions)
338 Unit.ConditionACPower, config_parse_unit_condition_string, CONDITION_AC_POWER, offsetof(Unit, conditions)
339 Unit.ConditionMemory, config_parse_unit_condition_string, CONDITION_MEMORY, offsetof(Unit, conditions)
340 Unit.ConditionCPUFeature, config_parse_unit_condition_string, CONDITION_CPU_FEATURE, offsetof(Unit, conditions)
341 Unit.ConditionCPUs, config_parse_unit_condition_string, CONDITION_CPUS, offsetof(Unit, conditions)
342 Unit.ConditionEnvironment, config_parse_unit_condition_string, CONDITION_ENVIRONMENT, offsetof(Unit, conditions)
343 Unit.ConditionUser, config_parse_unit_condition_string, CONDITION_USER, offsetof(Unit, conditions)
344 Unit.ConditionGroup, config_parse_unit_condition_string, CONDITION_GROUP, offsetof(Unit, conditions)
345 Unit.ConditionControlGroupController, config_parse_unit_condition_string, CONDITION_CONTROL_GROUP_CONTROLLER, offsetof(Unit, conditions)
346 Unit.ConditionOSRelease, config_parse_unit_condition_string, CONDITION_OS_RELEASE, offsetof(Unit, conditions)
347 Unit.ConditionMemoryPressure, config_parse_unit_condition_string, CONDITION_MEMORY_PRESSURE, offsetof(Unit, conditions)
348 Unit.ConditionCPUPressure, config_parse_unit_condition_string, CONDITION_CPU_PRESSURE, offsetof(Unit, conditions)
349 Unit.ConditionIOPressure, config_parse_unit_condition_string, CONDITION_IO_PRESSURE, offsetof(Unit, conditions)
350 Unit.AssertPathExists, config_parse_unit_condition_path, CONDITION_PATH_EXISTS, offsetof(Unit, asserts)
351 Unit.AssertPathExistsGlob, config_parse_unit_condition_path, CONDITION_PATH_EXISTS_GLOB, offsetof(Unit, asserts)
352 Unit.AssertPathIsDirectory, config_parse_unit_condition_path, CONDITION_PATH_IS_DIRECTORY, offsetof(Unit, asserts)
353 Unit.AssertPathIsSymbolicLink, config_parse_unit_condition_path, CONDITION_PATH_IS_SYMBOLIC_LINK, offsetof(Unit, asserts)
354 Unit.AssertPathIsMountPoint, config_parse_unit_condition_path, CONDITION_PATH_IS_MOUNT_POINT, offsetof(Unit, asserts)
355 Unit.AssertPathIsReadWrite, config_parse_unit_condition_path, CONDITION_PATH_IS_READ_WRITE, offsetof(Unit, asserts)
356 Unit.AssertPathIsEncrypted, config_parse_unit_condition_path, CONDITION_PATH_IS_ENCRYPTED, offsetof(Unit, asserts)
357 Unit.AssertDirectoryNotEmpty, config_parse_unit_condition_path, CONDITION_DIRECTORY_NOT_EMPTY, offsetof(Unit, asserts)
358 Unit.AssertFileNotEmpty, config_parse_unit_condition_path, CONDITION_FILE_NOT_EMPTY, offsetof(Unit, asserts)
359 Unit.AssertFileIsExecutable, config_parse_unit_condition_path, CONDITION_FILE_IS_EXECUTABLE, offsetof(Unit, asserts)
360 Unit.AssertNeedsUpdate, config_parse_unit_condition_path, CONDITION_NEEDS_UPDATE, offsetof(Unit, asserts)
361 Unit.AssertFirstBoot, config_parse_unit_condition_string, CONDITION_FIRST_BOOT, offsetof(Unit, asserts)
362 Unit.AssertArchitecture, config_parse_unit_condition_string, CONDITION_ARCHITECTURE, offsetof(Unit, asserts)
363 Unit.AssertVirtualization, config_parse_unit_condition_string, CONDITION_VIRTUALIZATION, offsetof(Unit, asserts)
364 Unit.AssertHost, config_parse_unit_condition_string, CONDITION_HOST, offsetof(Unit, asserts)
365 Unit.AssertKernelCommandLine, config_parse_unit_condition_string, CONDITION_KERNEL_COMMAND_LINE, offsetof(Unit, asserts)
366 Unit.AssertKernelVersion, config_parse_unit_condition_string, CONDITION_KERNEL_VERSION, offsetof(Unit, asserts)
367 Unit.AssertCredential, config_parse_unit_condition_string, CONDITION_CREDENTIAL, offsetof(Unit, asserts)
368 Unit.AssertSecurity, config_parse_unit_condition_string, CONDITION_SECURITY, offsetof(Unit, asserts)
369 Unit.AssertCapability, config_parse_unit_condition_string, CONDITION_CAPABILITY, offsetof(Unit, asserts)
370 Unit.AssertACPower, config_parse_unit_condition_string, CONDITION_AC_POWER, offsetof(Unit, asserts)
371 Unit.AssertMemory, config_parse_unit_condition_string, CONDITION_MEMORY, offsetof(Unit, asserts)
372 Unit.AssertCPUFeature, config_parse_unit_condition_string, CONDITION_CPU_FEATURE, offsetof(Unit, asserts)
373 Unit.AssertCPUs, config_parse_unit_condition_string, CONDITION_CPUS, offsetof(Unit, asserts)
374 Unit.AssertEnvironment, config_parse_unit_condition_string, CONDITION_ENVIRONMENT, offsetof(Unit, asserts)
375 Unit.AssertUser, config_parse_unit_condition_string, CONDITION_USER, offsetof(Unit, asserts)
376 Unit.AssertGroup, config_parse_unit_condition_string, CONDITION_GROUP, offsetof(Unit, asserts)
377 Unit.AssertControlGroupController, config_parse_unit_condition_string, CONDITION_CONTROL_GROUP_CONTROLLER, offsetof(Unit, asserts)
378 Unit.AssertOSRelease, config_parse_unit_condition_string, CONDITION_OS_RELEASE, offsetof(Unit, asserts)
379 Unit.AssertMemoryPressure, config_parse_unit_condition_string, CONDITION_MEMORY_PRESSURE, offsetof(Unit, asserts)
380 Unit.AssertCPUPressure, config_parse_unit_condition_string, CONDITION_CPU_PRESSURE, offsetof(Unit, asserts)
381 Unit.AssertIOPressure, config_parse_unit_condition_string, CONDITION_IO_PRESSURE, offsetof(Unit, asserts)
382 Unit.CollectMode, config_parse_collect_mode, 0, offsetof(Unit, collect_mode)
383 Service.PIDFile, config_parse_pid_file, 0, offsetof(Service, pid_file)
384 Service.ExecCondition, config_parse_exec, SERVICE_EXEC_CONDITION, offsetof(Service, exec_command)
385 Service.ExecStartPre, config_parse_exec, SERVICE_EXEC_START_PRE, offsetof(Service, exec_command)
386 Service.ExecStart, config_parse_exec, SERVICE_EXEC_START, offsetof(Service, exec_command)
387 Service.ExecStartPost, config_parse_exec, SERVICE_EXEC_START_POST, offsetof(Service, exec_command)
388 Service.ExecReload, config_parse_exec, SERVICE_EXEC_RELOAD, offsetof(Service, exec_command)
389 Service.ExecStop, config_parse_exec, SERVICE_EXEC_STOP, offsetof(Service, exec_command)
390 Service.ExecStopPost, config_parse_exec, SERVICE_EXEC_STOP_POST, offsetof(Service, exec_command)
391 Service.RestartSec, config_parse_sec, 0, offsetof(Service, restart_usec)
392 Service.TimeoutSec, config_parse_service_timeout, 0, 0
393 Service.TimeoutStartSec, config_parse_service_timeout, 0, 0
394 Service.TimeoutStopSec, config_parse_sec_fix_0, 0, offsetof(Service, timeout_stop_usec)
395 Service.TimeoutAbortSec, config_parse_service_timeout_abort, 0, 0
396 Service.TimeoutStartFailureMode, config_parse_service_timeout_failure_mode, 0, offsetof(Service, timeout_start_failure_mode)
397 Service.TimeoutStopFailureMode, config_parse_service_timeout_failure_mode, 0, offsetof(Service, timeout_stop_failure_mode)
398 Service.RuntimeMaxSec, config_parse_sec, 0, offsetof(Service, runtime_max_usec)
399 Service.RuntimeRandomizedExtraSec, config_parse_sec, 0, offsetof(Service, runtime_rand_extra_usec)
400 Service.WatchdogSec, config_parse_sec, 0, offsetof(Service, watchdog_usec)
401 {# The following five only exist for compatibility, they moved into Unit, see above #}
402 Service.StartLimitInterval, config_parse_sec, 0, offsetof(Unit, start_ratelimit.interval)
403 Service.StartLimitBurst, config_parse_unsigned, 0, offsetof(Unit, start_ratelimit.burst)
404 Service.StartLimitAction, config_parse_emergency_action, 0, offsetof(Unit, start_limit_action)
405 Service.FailureAction, config_parse_emergency_action, 0, offsetof(Unit, failure_action)
406 Service.RebootArgument, config_parse_unit_string_printf, 0, offsetof(Unit, reboot_arg)
407 Service.Type, config_parse_service_type, 0, offsetof(Service, type)
408 Service.ExitType, config_parse_service_exit_type, 0, offsetof(Service, exit_type)
409 Service.Restart, config_parse_service_restart, 0, offsetof(Service, restart)
410 Service.PermissionsStartOnly, config_parse_bool, 0, offsetof(Service, permissions_start_only)
411 Service.RootDirectoryStartOnly, config_parse_bool, 0, offsetof(Service, root_directory_start_only)
412 Service.RemainAfterExit, config_parse_bool, 0, offsetof(Service, remain_after_exit)
413 Service.GuessMainPID, config_parse_bool, 0, offsetof(Service, guess_main_pid)
414 Service.RestartPreventExitStatus, config_parse_set_status, 0, offsetof(Service, restart_prevent_status)
415 Service.RestartForceExitStatus, config_parse_set_status, 0, offsetof(Service, restart_force_status)
416 Service.SuccessExitStatus, config_parse_set_status, 0, offsetof(Service, success_status)
417 Service.SysVStartPriority, config_parse_warn_compat, DISABLED_LEGACY, 0
418 Service.NonBlocking, config_parse_bool, 0, offsetof(Service, exec_context.non_blocking)
419 Service.BusName, config_parse_bus_name, 0, offsetof(Service, bus_name)
420 Service.FileDescriptorStoreMax, config_parse_unsigned, 0, offsetof(Service, n_fd_store_max)
421 Service.NotifyAccess, config_parse_notify_access, 0, offsetof(Service, notify_access)
422 Service.Sockets, config_parse_service_sockets, 0, 0
423 Service.BusPolicy, config_parse_warn_compat, DISABLED_LEGACY, 0
424 Service.USBFunctionDescriptors, config_parse_unit_path_printf, 0, offsetof(Service, usb_function_descriptors)
425 Service.USBFunctionStrings, config_parse_unit_path_printf, 0, offsetof(Service, usb_function_strings)
426 Service.OOMPolicy, config_parse_oom_policy, 0, offsetof(Service, oom_policy)
427 {{ EXEC_CONTEXT_CONFIG_ITEMS('Service') }}
428 {{ CGROUP_CONTEXT_CONFIG_ITEMS('Service') }}
429 {{ KILL_CONTEXT_CONFIG_ITEMS('Service') }}
430 Socket.ListenStream, config_parse_socket_listen, SOCKET_SOCKET, 0
431 Socket.ListenDatagram, config_parse_socket_listen, SOCKET_SOCKET, 0
432 Socket.ListenSequentialPacket, config_parse_socket_listen, SOCKET_SOCKET, 0
433 Socket.ListenFIFO, config_parse_socket_listen, SOCKET_FIFO, 0
434 Socket.ListenNetlink, config_parse_socket_listen, SOCKET_SOCKET, 0
435 Socket.ListenSpecial, config_parse_socket_listen, SOCKET_SPECIAL, 0
436 Socket.ListenMessageQueue, config_parse_socket_listen, SOCKET_MQUEUE, 0
437 Socket.ListenUSBFunction, config_parse_socket_listen, SOCKET_USB_FUNCTION, 0
438 Socket.SocketProtocol, config_parse_socket_protocol, 0, offsetof(Socket, socket_protocol)
439 Socket.BindIPv6Only, config_parse_socket_bind, 0, offsetof(Socket, bind_ipv6_only)
440 Socket.Backlog, config_parse_unsigned, 0, offsetof(Socket, backlog)
441 Socket.BindToDevice, config_parse_socket_bindtodevice, 0, 0
442 Socket.ExecStartPre, config_parse_exec, SOCKET_EXEC_START_PRE, offsetof(Socket, exec_command)
443 Socket.ExecStartPost, config_parse_exec, SOCKET_EXEC_START_POST, offsetof(Socket, exec_command)
444 Socket.ExecStopPre, config_parse_exec, SOCKET_EXEC_STOP_PRE, offsetof(Socket, exec_command)
445 Socket.ExecStopPost, config_parse_exec, SOCKET_EXEC_STOP_POST, offsetof(Socket, exec_command)
446 Socket.TimeoutSec, config_parse_sec_fix_0, 0, offsetof(Socket, timeout_usec)
447 Socket.SocketUser, config_parse_user_group_compat, 0, offsetof(Socket, user)
448 Socket.SocketGroup, config_parse_user_group_compat, 0, offsetof(Socket, group)
449 Socket.SocketMode, config_parse_mode, 0, offsetof(Socket, socket_mode)
450 Socket.DirectoryMode, config_parse_mode, 0, offsetof(Socket, directory_mode)
451 Socket.Accept, config_parse_bool, 0, offsetof(Socket, accept)
452 Socket.FlushPending, config_parse_bool, 0, offsetof(Socket, flush_pending)
453 Socket.Writable, config_parse_bool, 0, offsetof(Socket, writable)
454 Socket.MaxConnections, config_parse_unsigned, 0, offsetof(Socket, max_connections)
455 Socket.MaxConnectionsPerSource, config_parse_unsigned, 0, offsetof(Socket, max_connections_per_source)
456 Socket.KeepAlive, config_parse_bool, 0, offsetof(Socket, keep_alive)
457 Socket.KeepAliveTimeSec, config_parse_sec, 0, offsetof(Socket, keep_alive_time)
458 Socket.KeepAliveIntervalSec, config_parse_sec, 0, offsetof(Socket, keep_alive_interval)
459 Socket.KeepAliveProbes, config_parse_unsigned, 0, offsetof(Socket, keep_alive_cnt)
460 Socket.DeferAcceptSec, config_parse_sec, 0, offsetof(Socket, defer_accept)
461 Socket.NoDelay, config_parse_bool, 0, offsetof(Socket, no_delay)
462 Socket.Priority, config_parse_int, 0, offsetof(Socket, priority)
463 Socket.ReceiveBuffer, config_parse_iec_size, 0, offsetof(Socket, receive_buffer)
464 Socket.SendBuffer, config_parse_iec_size, 0, offsetof(Socket, send_buffer)
465 Socket.IPTOS, config_parse_ip_tos, 0, offsetof(Socket, ip_tos)
466 Socket.IPTTL, config_parse_int, 0, offsetof(Socket, ip_ttl)
467 Socket.Mark, config_parse_int, 0, offsetof(Socket, mark)
468 Socket.PipeSize, config_parse_iec_size, 0, offsetof(Socket, pipe_size)
469 Socket.FreeBind, config_parse_bool, 0, offsetof(Socket, free_bind)
470 Socket.Transparent, config_parse_bool, 0, offsetof(Socket, transparent)
471 Socket.Broadcast, config_parse_bool, 0, offsetof(Socket, broadcast)
472 Socket.PassCredentials, config_parse_bool, 0, offsetof(Socket, pass_cred)
473 Socket.PassSecurity, config_parse_bool, 0, offsetof(Socket, pass_sec)
474 Socket.PassPacketInfo, config_parse_bool, 0, offsetof(Socket, pass_pktinfo)
475 Socket.Timestamping, config_parse_socket_timestamping, 0, offsetof(Socket, timestamping)
476 Socket.TCPCongestion, config_parse_string, 0, offsetof(Socket, tcp_congestion)
477 Socket.ReusePort, config_parse_bool, 0, offsetof(Socket, reuse_port)
478 Socket.MessageQueueMaxMessages, config_parse_long, 0, offsetof(Socket, mq_maxmsg)
479 Socket.MessageQueueMessageSize, config_parse_long, 0, offsetof(Socket, mq_msgsize)
480 Socket.RemoveOnStop, config_parse_bool, 0, offsetof(Socket, remove_on_stop)
481 Socket.Symlinks, config_parse_unit_path_strv_printf, 0, offsetof(Socket, symlinks)
482 Socket.FileDescriptorName, config_parse_fdname, 0, 0
483 Socket.Service, config_parse_socket_service, 0, 0
484 Socket.TriggerLimitIntervalSec, config_parse_sec, 0, offsetof(Socket, trigger_limit.interval)
485 Socket.TriggerLimitBurst, config_parse_unsigned, 0, offsetof(Socket, trigger_limit.burst)
486 {% if ENABLE_SMACK %}
487 Socket.SmackLabel, config_parse_unit_string_printf, 0, offsetof(Socket, smack)
488 Socket.SmackLabelIPIn, config_parse_unit_string_printf, 0, offsetof(Socket, smack_ip_in)
489 Socket.SmackLabelIPOut, config_parse_unit_string_printf, 0, offsetof(Socket, smack_ip_out)
490 {% else %}
491 Socket.SmackLabel, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
492 Socket.SmackLabelIPIn, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
493 Socket.SmackLabelIPOut, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
494 {% endif %}
495 {% if HAVE_SELINUX %}
496 Socket.SELinuxContextFromNet, config_parse_bool, 0, offsetof(Socket, selinux_context_from_net)
497 {% else %}
498 Socket.SELinuxContextFromNet, config_parse_warn_compat, DISABLED_CONFIGURATION, 0
499 {% endif %}
500 {{ EXEC_CONTEXT_CONFIG_ITEMS('Socket') }}
501 {{ CGROUP_CONTEXT_CONFIG_ITEMS('Socket') }}
502 {{ KILL_CONTEXT_CONFIG_ITEMS('Socket') }}
503 Mount.What, config_parse_unit_string_printf, 0, offsetof(Mount, parameters_fragment.what)
504 Mount.Where, config_parse_unit_path_printf, 0, offsetof(Mount, where)
505 Mount.Options, config_parse_unit_string_printf, 0, offsetof(Mount, parameters_fragment.options)
506 Mount.Type, config_parse_unit_string_printf, 0, offsetof(Mount, parameters_fragment.fstype)
507 Mount.TimeoutSec, config_parse_sec_fix_0, 0, offsetof(Mount, timeout_usec)
508 Mount.DirectoryMode, config_parse_mode, 0, offsetof(Mount, directory_mode)
509 Mount.SloppyOptions, config_parse_bool, 0, offsetof(Mount, sloppy_options)
510 Mount.LazyUnmount, config_parse_bool, 0, offsetof(Mount, lazy_unmount)
511 Mount.ForceUnmount, config_parse_bool, 0, offsetof(Mount, force_unmount)
512 Mount.ReadWriteOnly, config_parse_bool, 0, offsetof(Mount, read_write_only)
513 {{ EXEC_CONTEXT_CONFIG_ITEMS('Mount') }}
514 {{ CGROUP_CONTEXT_CONFIG_ITEMS('Mount') }}
515 {{ KILL_CONTEXT_CONFIG_ITEMS('Mount') }}
516 Automount.Where, config_parse_unit_path_printf, 0, offsetof(Automount, where)
517 Automount.ExtraOptions, config_parse_unit_string_printf, 0, offsetof(Automount, extra_options)
518 Automount.DirectoryMode, config_parse_mode, 0, offsetof(Automount, directory_mode)
519 Automount.TimeoutIdleSec, config_parse_sec_fix_0, 0, offsetof(Automount, timeout_idle_usec)
520 Swap.What, config_parse_unit_path_printf, 0, offsetof(Swap, parameters_fragment.what)
521 Swap.Priority, config_parse_swap_priority, 0, 0
522 Swap.Options, config_parse_unit_string_printf, 0, offsetof(Swap, parameters_fragment.options)
523 Swap.TimeoutSec, config_parse_sec_fix_0, 0, offsetof(Swap, timeout_usec)
524 {{ EXEC_CONTEXT_CONFIG_ITEMS('Swap') }}
525 {{ CGROUP_CONTEXT_CONFIG_ITEMS('Swap') }}
526 {{ KILL_CONTEXT_CONFIG_ITEMS('Swap') }}
527 Timer.OnCalendar, config_parse_timer, TIMER_CALENDAR, 0
528 Timer.OnActiveSec, config_parse_timer, TIMER_ACTIVE, 0
529 Timer.OnBootSec, config_parse_timer, TIMER_BOOT, 0
530 Timer.OnStartupSec, config_parse_timer, TIMER_STARTUP, 0
531 Timer.OnUnitActiveSec, config_parse_timer, TIMER_UNIT_ACTIVE, 0
532 Timer.OnUnitInactiveSec, config_parse_timer, TIMER_UNIT_INACTIVE, 0
533 Timer.OnClockChange, config_parse_bool, 0, offsetof(Timer, on_clock_change)
534 Timer.OnTimezoneChange, config_parse_bool, 0, offsetof(Timer, on_timezone_change)
535 Timer.Persistent, config_parse_bool, 0, offsetof(Timer, persistent)
536 Timer.WakeSystem, config_parse_bool, 0, offsetof(Timer, wake_system)
537 Timer.RemainAfterElapse, config_parse_bool, 0, offsetof(Timer, remain_after_elapse)
538 Timer.FixedRandomDelay, config_parse_bool, 0, offsetof(Timer, fixed_random_delay)
539 Timer.AccuracySec, config_parse_sec, 0, offsetof(Timer, accuracy_usec)
540 Timer.RandomizedDelaySec, config_parse_sec, 0, offsetof(Timer, random_usec)
541 Timer.Unit, config_parse_trigger_unit, 0, 0
542 Path.PathExists, config_parse_path_spec, 0, 0
543 Path.PathExistsGlob, config_parse_path_spec, 0, 0
544 Path.PathChanged, config_parse_path_spec, 0, 0
545 Path.PathModified, config_parse_path_spec, 0, 0
546 Path.DirectoryNotEmpty, config_parse_path_spec, 0, 0
547 Path.Unit, config_parse_trigger_unit, 0, 0
548 Path.MakeDirectory, config_parse_bool, 0, offsetof(Path, make_directory)
549 Path.DirectoryMode, config_parse_mode, 0, offsetof(Path, directory_mode)
550 Path.TriggerLimitIntervalSec, config_parse_sec, 0, offsetof(Path, trigger_limit.interval)
551 Path.TriggerLimitBurst, config_parse_unsigned, 0, offsetof(Path, trigger_limit.burst)
552 {{ CGROUP_CONTEXT_CONFIG_ITEMS('Slice') }}
553 {{ CGROUP_CONTEXT_CONFIG_ITEMS('Scope') }}
554 {{ KILL_CONTEXT_CONFIG_ITEMS('Scope') }}
555 Scope.RuntimeMaxSec, config_parse_sec, 0, offsetof(Scope, runtime_max_usec)
556 Scope.RuntimeRandomizedExtraSec, config_parse_sec, 0, offsetof(Scope, runtime_rand_extra_usec)
557 Scope.TimeoutStopSec, config_parse_sec, 0, offsetof(Scope, timeout_stop_usec)
558 Scope.OOMPolicy, config_parse_oom_policy, 0, offsetof(Scope, oom_policy)
559 {# The [Install] section is ignored here #}
560 Install.Alias, NULL, 0, 0
561 Install.WantedBy, NULL, 0, 0
562 Install.RequiredBy, NULL, 0, 0
563 Install.Also, NULL, 0, 0
564 Install.DefaultInstance, NULL, 0, 0