some patches
Hi,
I've attached follow patches:
inetd.diff:
add a type var_log_inetd_t for daemons logs
ldconfig.diff:
dontaudit ldconfig_t device_t:dir { search };
change { read write } for sysadm_devpts_t and sysadm_tty_device_t to rw_file_perms, because I need also getattr and ioctl for SuSE
pppd.diff:
allow pppd_t device_t:dir { search };
Carsten
program/inetd.fc renamed from original/file_contexts/program/inetd.fc +1 -0
@@ -4,3 +4,4 @@ /usr/sbin/rlinetd system_u:object_r:inetd_exec_t /usr/sbin/identd system_u:object_r:inetd_child_exec_t /usr/sbin/in\..*d system_u:object_r:inetd_child_exec_t +/var/log/(x)?inetd.log system_u:object_r:var_log_inetd_t
program/inetd.te renamed from original/domains/program/inetd.te +2 -0
@@ -23,6 +23,8 @@ file_type_auto_trans(inetd_t, tmp_t, inetd_tmp_t) type inetd_var_run_t, file_type, sysadmfile, pidfile; file_type_auto_trans(inetd_t, var_run_t, inetd_var_run_t) +type var_log_inetd_t, file_type, sysadmfile; +file_type_auto_trans(inetd_t, var_log_t, var_log_inetd_t) # Inherit and use descriptors from init. allow inetd_t init_t:fd use;
program/ldconfig.te renamed from original/domains/program/ldconfig.te +4 -1
@@ -13,7 +13,7 @@ role system_r types ldconfig_t; domain_auto_trans({ sysadm_t initrc_t ifdef(`dpkg.te', `dpkg_t') }, ldconfig_exec_t, ldconfig_t) -allow ldconfig_t { sysadm_devpts_t sysadm_tty_device_t }:chr_file { read write }; +allow ldconfig_t { sysadm_devpts_t sysadm_tty_device_t }:chr_file rw_file_perms; allow ldconfig_t privfd:fd use; uses_shlib(ldconfig_t)
@@ -26,3 +26,6 @@ allow ldconfig_t etc_t:lnk_file read; allow ldconfig_t fs_t:filesystem getattr; + +# dontaudit +dontaudit ldconfig_t device_t:dir { search };
program/pppd.te renamed from russel/domains/program/pppd.te +1 -0
@@ -46,6 +46,7 @@ allow pppd_t bin_t:lnk_file read; # Access /dev/ppp. +allow pppd_t device_t:dir { search }; allow pppd_t ppp_device_t:chr_file rw_file_perms; allow pppd_t devtty_t:chr_file { read write };
Quoted 3 lines · Carsten Grohmann
I've attached follow patches:
inetd.diff:
add a typevar_log_inetd_tfor daemons logs
That must be a SUSE specific thing. I haven't seen a need for it it in Debian and the policy indicates that there's no need for it in Red Hat either...
I suggest putting it in suse.te.
Quoted 4 lines
ldconfig.diff:
dontauditldconfig_tdevice_t:dir { search };
change { read write } forsysadm_devpts_tandsysadm_tty_device_ttorw_file_perms, because I need also getattr and ioctl for SuSE
I've put that in my tree.
Quoted 2 lines
pppd.diff:
allowpppd_tdevice_t:dir { search };
In my tree I have the daemon_domain() macro grant search and getattr access to device_t...
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.
Am Sonntag, 15. September 2002 19:25 schrieb Russell Coker:
Quoted 10 lines · Carsten Grohmann
Quoted 3 lines
I've attached follow patches:
inetd.diff:
add a typevar_log_inetd_tfor daemons logsThat must be a SUSE specific thing. I haven't seen a need for it it in Debian and the policy indicates that there's no need for it in Red Hat either...
I suggest putting it in suse.te.
I am not your opinion.
The xinetd have two log options the first use syslog and the second use seperate files. Which variant the sysadm use is his problem, I think we should support both. Also I don't have security objecttion. Other domain uses logfiles too.
Carsten
--
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.
Quoted 3 lines · Carsten Grohmann
I've attached follow patches:
inetd.diff:
add a typevar_log_inetd_tfor daemons logs
Thanks, merged.
Quoted 4 lines
ldconfig.diff:
dontauditldconfig_tdevice_t:dir { search };
change { read write } forsysadm_devpts_tandsysadm_tty_device_ttorw_file_perms, because I need also getattr and ioctl for SuSE
The first change is obsoleted by a patch from Russell that was merged earlier, granting that permission.
I've merged the second change.
Quoted 2 lines
pppd.diff:
allowpppd_tdevice_t:dir { search };
This change is also obsoleted by a patch from Russell that was merged earlier, adding this permission to daemon_base_domain().
--
Stephen D. Smalley, NAI Labs
[email protected]
--
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.