Hmm, I thought it would be
#============= httpd_t ==============
allow httpd_t etc_mail_t:dir { search getattr };
allow httpd_t mysqld_port_t:tcp_socket name_connect;
allow httpd_t sshd_devpts_t:chr_file { read write };
But I see what you mean now...just took a look at the log file again...
Quote:
Feb 27 19:48:32 linux-P4RD0NM3DEDICATED kernel: audit(1204166912.356:789): avc: denied { search } for pid=13706 comm="sendmail" name="mail" dev=sda1 ino=1179640 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_mail_t:s0 tclass=dir
Feb 27 19:48:32 linux-P4RD0NM3DEDICATED kernel: audit(1204166912.357:790): avc: denied { getattr } for pid=13706 comm="sendmail" path="/etc/mail" dev=sda1 ino=1179640 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_mail_t:s0 tclass=dir
|
For this Denial...which is munin-node by the way.
Quote:
|
avc: denied { read write } for pid=2935 comm="ethtool" path="socket:[10417]" dev=sockfs ino=10417 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=tcp_socket
|
#============= ifconfig_t ==============
allow ifconfig_t initrc_t:tcp_socket { read write };
I also did a
/sbin/fixfiles relabel, after I made those policies...
And here's the log from it.
Quote:
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/munin/munin-node.pid from system_u:object_r:initrc_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/sshd.pid from system_u:object_r:sshd_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/console-kit-daemon.pid from system_u:object_r:consolekit_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/rpcbind.lock from system_u:object_r:initrc_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/messagebus.pid from system_u:object_r:system_dbusd_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/gpm.pid from system_u:object_r:gpm_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/run/dhcdbd.pid from system_u:object_r:dhcpc_var_run_t:s0 to system_u:object_r:var_run_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/log/rpmpkgs from user_u:object_r:var_log_t:s0 to system_u:object_r:rpm_log_t:s0
Feb 27 20:34:48 linux-P4RD0NM3DEDICATED setfiles: relabeling /var/empty/sshd/etc/localtime from system_u:object_r:etc_t:s0 to system_u:object_r:var_t:s0
|
From the looks of that log file, I think it fixed the munin-node problem don't you think?