Skip to contentSkip to conversation

patch: typealias cleanup

PATCH Thomas Bleher 2 participants 2 messages Nov 2, 2004 – Nov 5, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

The following patch replaces all occurences of aliases with their real counterparts. It would be nice if this could be merged now so some aliases can be removed after the next release.

Thanks,
Thomas

Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages
GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA  D09E C562 2BAE B2F4 ABE7
domains/program/unused/calamaris.te +2 -2
@@ -18,8 +18,8 @@
 ')
 
 allow calamaris_t { var_t var_run_t }:dir { getattr search };
-allow calamaris_t var_log_squid_t:dir search;
-allow calamaris_t var_log_squid_t:file { getattr read };
+allow calamaris_t squid_log_t:dir search;
+allow calamaris_t squid_log_t:file { getattr read };
 allow calamaris_t { usr_t lib_t }:file { getattr read };
 allow calamaris_t usr_t:lnk_file { getattr read };
 dontaudit calamaris_t usr_t:file ioctl;
domains/program/unused/dbusd.te +1 -1
@@ -4,7 +4,7 @@
 
 dbusd_domain(system)
 
-allow system_dbusd_t dbusd_var_run_t:sock_file create_file_perms;
+allow system_dbusd_t system_dbusd_var_run_t:sock_file create_file_perms;
 
 ifdef(`pamconsole.te', `
 r_dir_file(system_dbusd_t, pam_var_console_t)
domains/program/unused/distcc.te +1 -1
@@ -23,7 +23,7 @@
 can_exec(distccd_t,lib_t)
 
 # comm stuff
-allow distccd_t resolv_conf_t:file r_file_perms;
+allow distccd_t net_conf_t:file r_file_perms;
 allow distccd_t self:{ unix_stream_socket unix_dgram_socket } { create connect read write };
 allow distccd_t self:fifo_file { read write getattr };
 
domains/program/unused/dpkg.te +1 -1
@@ -85,7 +85,7 @@
 domain_auto_trans(dpkg_t, httpd_exec_t, httpd_t)
 ')
 ifdef(`named.te', `
-file_type_auto_trans(dpkg_t, named_zone_t, rndc_conf_t, file)
+file_type_auto_trans(dpkg_t, named_zone_t, named_conf_t, file)
 ')
 ifdef(`nsd.te', `
 allow nsd_crond_t initrc_t:fd use;
file_contexts/program/dbusd.fc +2 -2
@@ -1,3 +1,3 @@
-/usr/bin/dbus-daemon-1	--	system_u:object_r:dbusd_exec_t
+/usr/bin/dbus-daemon-1	--	system_u:object_r:system_dbusd_exec_t
 /etc/dbus-1(/.*)?		system_u:object_r:etc_dbusd_t
-/var/run/dbus(/.*)?		system_u:object_r:dbusd_var_run_t
+/var/run/dbus(/.*)?		system_u:object_r:system_dbusd_var_run_t
file_contexts/program/gatekeeper.fc +1 -1
@@ -4,4 +4,4 @@
 /usr/sbin/gnugk		--	system_u:object_r:gatekeeper_exec_t
 /var/run/gk\.pid	--	system_u:object_r:gatekeeper_var_run_t
 /var/run/gnugk(/.*)?		system_u:object_r:gatekeeper_var_run_t
-/var/log/gnugk(/.*)?		system_u:object_r:var_log_gatekeeper_t
+/var/log/gnugk(/.*)?		system_u:object_r:gatekeeper_var_log_t
macros/program/dbusd_macros.te +1 -1
@@ -21,7 +21,7 @@
 ', `
 type $1_dbusd_t, domain, privlog, userspace_objmgr;
 role $1_r types $1_dbusd_t;
-domain_auto_trans($1_t, dbusd_exec_t, $1_dbusd_t)
+domain_auto_trans($1_t, system_dbusd_exec_t, $1_dbusd_t)
 read_locale($1_dbusd_t)
 allow $1_t $1_dbusd_t:process { sigkill signal };
 dontaudit $1_dbusd_t var_t:dir { getattr search };
#1 lore raw

Merged.

Quoted 6 lines · Thomas Bleher

The following patch replaces all occurences of aliases with their real counterparts. It would be nice if this could be merged now so some aliases can be removed after the next release.

Thanks,
Thomas

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.