mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
units: generate ReadWritePaths= in the template
This commit is contained in:
parent
491bf10c80
commit
71ae5ce544
@ -828,15 +828,10 @@ endif
|
|||||||
conf.set_quoted('SYSTEMD_DEFAULT_LOCALE', default_locale)
|
conf.set_quoted('SYSTEMD_DEFAULT_LOCALE', default_locale)
|
||||||
|
|
||||||
localegen_path = get_option('localegen-path')
|
localegen_path = get_option('localegen-path')
|
||||||
have = false
|
|
||||||
writable = ''
|
|
||||||
if localegen_path != ''
|
if localegen_path != ''
|
||||||
conf.set_quoted('LOCALEGEN_PATH', localegen_path)
|
conf.set_quoted('LOCALEGEN_PATH', localegen_path)
|
||||||
have = true
|
|
||||||
writable = ' /usr/lib/locale'
|
|
||||||
endif
|
endif
|
||||||
conf.set_quoted('SERVICE_LOCALEGEN_WRITABLE', writable)
|
conf.set10('HAVE_LOCALEGEN', localegen_path != '')
|
||||||
conf.set10('HAVE_LOCALEGEN', have)
|
|
||||||
|
|
||||||
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
|
||||||
|
|
||||||
|
@ -33,7 +33,10 @@ ProtectKernelLogs=yes
|
|||||||
ProtectKernelModules=yes
|
ProtectKernelModules=yes
|
||||||
ProtectKernelTunables=yes
|
ProtectKernelTunables=yes
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
ReadWritePaths=/etc{{SERVICE_LOCALEGEN_WRITABLE}}
|
ReadWritePaths=/etc
|
||||||
|
{% if HAVE_LOCALEGEN %}
|
||||||
|
ReadWritePaths=/usr/lib/locale
|
||||||
|
{% endif %}
|
||||||
RestrictAddressFamilies=AF_UNIX
|
RestrictAddressFamilies=AF_UNIX
|
||||||
RestrictNamespaces=yes
|
RestrictNamespaces=yes
|
||||||
RestrictRealtime=yes
|
RestrictRealtime=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user