Skip to contentSkip to conversation

Patch: Kill duplicate permissions

PATCH Thomas Bleher 2 participants 2 messages Sep 15, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Kill a few duplicate permissions, plus some small cleanup.

crond.te: already defined in logrotate.te
xserver_macros.te: already defined in xdm.te

Others have duplicate permissions in the same file.

Please apply.

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/checkpolicy.te +1 -1
@@ -55,7 +55,7 @@
 ##########################
 # Allow users to execute checkpolicy without a domain transition
 # so it can be used without privilege to write real binary policy file
-can_exec(user_t, checkpolicy_exec_t)
+can_exec(unpriv_userdomain, checkpolicy_exec_t)
 
 allow checkpolicy_t { userdomain privfd }:fd use;
 
domains/program/crond.te +0 -5
@@ -139,11 +139,6 @@
 allow crond_t mail_spool_t:lnk_file read;
 allow crond_t mail_spool_t:dir search;
 
-# Run logrotate in the logrotate_t domain.
-ifdef(`logrotate.te', `
-system_crond_entry(logrotate_exec_t, logrotate_t)
-')
-
 ifdef(`mta.te', `
 r_dir_file(system_mail_t, crond_tmp_t)
 ')
domains/program/hostname.te +1 -1
@@ -1,4 +1,4 @@
-#DESC Initrc - System initialization scripts
+#DESC hostname - show or set the system's host name
 #
 # Author: Russell Coker <[email protected]>
 # X-Debian-Packages: hostname
domains/program/unused/postfix.te +0 -1
@@ -92,7 +93,6 @@
 file_type_auto_trans({ sysadm_mail_t system_mail_t }, etc_t, etc_aliases_t)
 allow postfix_master_t sendmail_exec_t:file r_file_perms;
 allow postfix_master_t sbin_t:lnk_file { getattr read };
-domain_auto_trans(initrc_t, postfix_master_exec_t, postfix_master_t)
 ifdef(`pppd.te', `
 domain_auto_trans(pppd_t, postfix_master_exec_t, postfix_master_t)
 ')
domains/program/unused/quota.te +0 -4
@@ -17,10 +17,6 @@
 role sysadm_r types quota_t;
 allow quota_t admin_tty_type:chr_file { read write };
 
-domain_auto_trans(sysadm_t, quota_exec_t, quota_t)
-role sysadm_r types quota_t;
-allow quota_t admin_tty_type:chr_file { read write };
-
 type quota_flag_t, file_type, sysadmfile;
 type quota_db_t, file_type, sysadmfile;
 
macros/program/xserver_macros.te +0 -1
@@ -43,7 +43,6 @@
 ifdef(`xdm.te', `
 domain_auto_trans(xdm_t, xserver_exec_t, xdm_xserver_t)
 ')
-domain_auto_trans(initrc_t, xserver_exec_t, xdm_xserver_t)
 ', `
 domain_auto_trans($1_t, xserver_exec_t, $1_xserver_t)
 ')dnl end ifelse xdm
#1 lore raw

Thanks. Merged.

Quoted 10 lines · Thomas Bleher

Kill a few duplicate permissions, plus some small cleanup.

crond.te: already defined in logrotate.te
xserver_macros.te: already defined in xdm.te

Others have duplicate permissions in the same file.

Please apply.

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.