ddclient
PATCH 1/1 ddclient
The attached patches fix a few ddclient problems. Please apply.
ddclient.fc
* Make ddclient_var_t' match the /var/cache/ddclient' directory, rather than just the files therein.
ddclient.te
* Allow execution of bin_t programs.
* Allow client-level access to TCP networking, instead of UDP only.
* Allow ddclient to create it's cache file if necessary.
Thanx!
ddclient.fc renamed from ddclient.fc.orig +1 -1
@@ -1,7 +1,7 @@ # ddclient /etc/ddclient\.conf -- system_u:object_r:ddclient_etc_t /usr/sbin/ddclient -- system_u:object_r:ddclient_exec_t -/var/cache/ddclient(/.*)? -- system_u:object_r:ddclient_var_t +/var/cache/ddclient(/.*)? system_u:object_r:ddclient_var_t /var/run/ddclient\.pid -- system_u:object_r:ddclient_var_run_t # ddt - Dynamic DNS client /usr/sbin/ddtcd -- system_u:object_r:ddclient_exec_t
ddclient.te renamed from ddclient.te.orig +3 -3
@@ -15,7 +15,7 @@ var_lib_domain(ddclient) base_file_read_access(ddclient_t) -can_exec(ddclient_t, shell_exec_t) +can_exec(ddclient_t, { shell_exec_t bin_t }) # ddclient can be launched by pppd ifdef(`pppd.te',`domain_auto_trans(pppd_t, ddclient_exec_t, ddclient_t)')
@@ -31,11 +31,11 @@ allow ddclient_t sysctl_net_t:dir { search }; # network-related goodies -can_network_udp(ddclient_t) +can_network_client(ddclient_t) allow ddclient_t self:unix_dgram_socket create_socket_perms; allow ddclient_t self:unix_stream_socket create_socket_perms; # allow access to ddclient.conf and ddclient.cache allow ddclient_t ddclient_etc_t:file r_file_perms; allow ddclient_t ddclient_var_t:dir rw_dir_perms; -allow ddclient_t ddclient_var_t:file rw_file_perms; +allow ddclient_t ddclient_var_t:file create_file_perms;
Merged.
Quoted 12 lines · Greg Norris
The attached patches fix a few ddclient problems. Please apply.
ddclient.fc
* Makeddclient_var_t' match the/var/cache/ddclient' directory, rather than just the files therein.ddclient.te
* Allow execution ofbin_tprograms.
* Allow client-level access to TCP networking, instead of UDP only.
* Allow ddclient to create it's cache file if necessary.Thanx!
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.