Peter A. Bigot wrote:
Running the HEAD version of the reference policy with strict MLS
permissive
on Fedora 8, I'm trying to eliminate all the AVC denials I get on
boot. The
simplest of them is:
type=SYSCALL msg=audit(12/27/2007 10:11:23.883:128) : arch=i386
syscall=open success=yes exit=1 a0=a0544f8 a1=8541 a2=1a4 a3=8541
items=0 ppid=2213 pid=2214 auid=pab uid=root gid=root euid=root
suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none)
comm=rsyslogd exe=/sbin/rsyslogd
subj=system_u:system_r:syslogd_t:s0-s15:c0.c255 key=(null)
type=AVC msg=audit(12/27/2007 10:11:23.883:128) : avc: denied {
append } for pid=2214 comm=rsyslogd name=messages dev=sda5 ino=32066
scontext=system_u:system_r:syslogd_t:s0-s15:c0.c255
tcontext=system_u:object_r:var_log_t:s15:c0.c255 tclass=file
syslogd_t has append rights to var_log_t files, per apol:
allow syslogd_t var_log_t : file { ioctl read write create getattr
setattr lock append unlink link rename };
allow syslogd_t var_log_t : dir { ioctl read write create getattr
setattr lock add_name remove_name search };
allow syslogd_t var_log_t : fifo_file { ioctl read write getattr lock
append };
and /var/log/messages has the correct type:
# ls -lZ /var/log/secure -rw------- root root
system_u:object_r:var_log_t:s15:c0.c255 /var/log/messages
The same failure occurs when I manually run_init service rsyslog restart.
If I downgrade the sensitivity on /var/log/messages all the way to s0,
then
it works without complaint. s1 through s15 all fail. But changing the
security level can't be the intended solution.
What should I be doing to eliminate this denial?
Thanks.
Peter
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to
majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.
Maybe mls_file_write_all_levels(syslogd_t)?
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.