sysnetwork: put systemd_read_resolved_runtime in an ifdef
PATCH 1/1 sysnetwork: put systemd_read_resolved_runtime in an ifdef
commit f865919872a2d709d37f3df7032a6ea73bdd8080 (Interface to read /run/systemd/resolve/resolv.conf) Added an interface to sysnet_read_config which requires the systemd module loaded. Putting the interface in an optional_policy() is not possible since sysnet_read_config is called from several tunables so we use an ifdef.
--- policy/modules/system/sysnetwork.if | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
policy/modules/system/sysnetwork.if +3 -1
@@ -348,7 +348,9 @@ interface(`sysnet_read_config',` files_search_etc($1) allow $1 net_conf_t:file read_file_perms; - systemd_read_resolved_runtime($1) + ifdef(`init_systemd',` + systemd_read_resolved_runtime($1) + ') ifdef(`distro_debian',` files_search_pids($1)
Signature · 1 line
2.16.1
PATCH 1/1 sysnetwork: put systemd_read_resolved_runtime in an ifdef
Quoted 15 lines · Jason Zaman
commit
f865919872a2d709d37f3df7032a6ea73bdd8080(Interface to read/run/systemd/resolve/resolv.conf) Added an interface tosysnet_read_configwhich requires the systemd module loaded. Putting the interface in anoptional_policy()is not possible sincesysnet_read_configis called from several tunables so we use an ifdef.--- policy/modules/system/sysnetwork.if | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)policy/modules/system/sysnetwork.if +0
-0
policy/modules/system/sysnetwork.if interface(`sysnet_read_config',` · line 356
Quoted 10 lines
policy/modules/system/sysnetwork.if +3
-1@@ -348,7 +348,9 @@ interface(`sysnet_read_config',` files_search_etc($1) allow $1 net_conf_t:file read_file_perms; - systemd_read_resolved_runtime($1) + ifdef(`init_systemd',` + systemd_read_resolved_runtime($1) + ') ifdef(`distro_debian',` files_search_pids($1)
Merged.
Signature · 1 line
Chris PeBenito