Skip to contentSkip to conversation

avc's

DISCUSSION Justin Mattock 2 participants 2 messages Mar 25, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hello; I've noticed with using the latest refpolicy(svn) and kernel, after the policy compile and then a reboot im only receiving a few(10 or so) avc's,
then after I go and allow those avc's and reboot the next ten or so would appear. Is this something with the kernel, or libraries. when I issue dmesg it gives me something about: 200 messages suppressed. I thought it was because of the refpolicy being in svn and under heavy development, but I tried a stable refpolicy and received the same results.

Signature · 6 lines
Justin P. Mattock

--
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.
#1 lore raw
Quoted 9 lines · Justin Mattock

Hello; I've noticed with using the latest refpolicy(svn) and kernel, after the policy compile and then a reboot im only receiving a few(10 or so) avc's,
then after I go and allow those avc's and reboot the next ten or so would appear. Is this something with the kernel, or libraries. when I issue dmesg it gives me something about: 200 messages suppressed. I thought it was because of the refpolicy being in svn and under heavy development, but I tried a stable refpolicy and received the same results.

Two observations:
1) Often a program will stop processing when it first hits a denial. So you might get one set of denials and then when you add allow rules for those denials, that allows the program to proceed further, but it may encounter later denials on different actions. So what you describe can be normal.
2) Since you said something about messages being suppressed, you might be encountering the printk ratelimit. That is to avoid flooding the system log. You can change it by writing
to /proc/sys/kernel/printk_ratelimit; a value of 0 should disable rate limiting but this can lead to a denial of service. Alternatively, consider installing and using auditd to handle your audit messages.

Signature · 8 lines
Stephen Smalley
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.