mrtg patch
I've attached a patch against the latest release to add a new domain for mrtg. I did this because mrtg in a full setup needs some access that you may not want to give to all system cron jobs, and because there is the option of running mrtg as a daemon...
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.
domains/program/crond.te renamed from tmp/selinux/policy/domains/program/crond.te +0 -4
@@ -204,10 +204,6 @@ allow system_crond_t var_spool_t:file create_file_perms; allow system_crond_t var_spool_t:dir rw_dir_perms; -# Access /etc/mrtg -allow system_crond_t etc_mrtg_t:dir rw_dir_perms; -allow system_crond_t etc_mrtg_t:file create_file_perms; - # Do not audit attempts to search unlabeled directories (e.g. slocate). dontaudit system_crond_t unlabeled_t:dir r_dir_perms; dontaudit system_crond_t unlabeled_t:file r_file_perms;
domains/program/mrtg.te renamed from tmp/selinux/policy/domains/program/mrtg.te +66 -0
66 lines not on this page · raw message
file_contexts/program/crond.fc renamed from tmp/selinux/policy/file_contexts/program/crond.fc +1 -0
@@ -9,4 +9,5 @@ /var/spool/cron/crontabs/.* system_u:object_r:user_cron_spool_t /var/spool/cron/crontabs/root system_u:object_r:sysadm_cron_spool_t /var/log/cron system_u:object_r:cron_log_t +/var/log/mrtg(/.*)? system_u:object_r:cron_log_t /var/run/crond.reboot system_u:object_r:crond_var_run_t
file_contexts/program/mrtg.fc renamed from tmp/selinux/policy/file_contexts/program/mrtg.fc +5 -0
@@ -0,0 +1,5 @@ +# mrtg - traffic grapher +/usr/bin/mrtg system_u:object_r:mrtg_exec_t +/var/lib/mrtg(/.*)? system_u:object_r:var_lib_mrtg_t +/var/lock/mrtg(/.*)? system_u:object_r:var_lock_mrtg_t +/etc/mrtg.* system_u:object_r:etc_mrtg_t
file_contexts/types.fc renamed from tmp/selinux/policy/file_contexts/types.fc +0 -1
@@ -160,7 +161,6 @@ /etc/ld.so.preload system_u:object_r:ld_so_cache_t /etc/resolv.conf.* system_u:object_r:resolv_conf_t /etc/adjtime system_u:object_r:adjtime_t -/etc/mrtg(/.*)? system_u:object_r:etc_mrtg_t /etc/selinux(/.*)? system_u:object_r:policy_src_t /etc/security/selinux(/.*)? system_u:object_r:policy_config_t /etc/security/selinux/src(/.*)? system_u:object_r:policy_src_t
types/file.te renamed from tmp/selinux/policy/types/file.te +0 -4
@@ -98,10 +98,6 @@ # pump needs write access to this file. type resolv_conf_t, file_type, sysadmfile; -# etc_mrtg_t is the type of the /etc/mrtg directory and files. -# crond needs write access to this directory. -type etc_mrtg_t, file_type, sysadmfile; - # # lib_t is the type of files in the system lib directories. #
file_contexts/program/apache.fc renamed from tmp/selinux/policy/file_contexts/program/apache.fc +1 -0
@@ -1,5 +1,6 @@ # apache /var/www/html(/.*)? system_u:object_r:httpd_sys_content_t +/var/www/mrtg(/.*)? system_u:object_r:httpd_sys_content_t /var/www/cgi-bin(/.*)? system_u:object_r:httpd_sys_script_t /var/www/perl(/.*)? system_u:object_r:httpd_sys_script_t /var/www/icons(/.*)? system_u:object_r:httpd_sys_content_t
Quoted 4 lines · Russell Coker
I've attached a patch against the latest release to add a new domain for mrtg. I did this because mrtg in a full setup needs some access that you may not want to give to all system cron jobs, and because there is the option of running mrtg as a daemon...
Merged and available in the sourceforge CVS.
--
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.