Skip to contentSkip to conversation

inode_doinit_with_dentry messages

DISCUSSION Russell Coker 3 participants 7 messages Apr 12, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Would it be possible to have a file in /selinux to determine whether such messages are displayed?

When we convert a machine between strict and targeted policies we (the developers) expect many such messages. The users however will not be expecting such messages to fill their logs, so it would be good if we could turn off the logging of such messages for the duration of setfiles operation.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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 7 lines · Russell Coker

Would it be possible to have a file in /selinux to determine whether such messages are displayed?

When we convert a machine between strict and targeted policies we (the developers) expect many such messages. The users however will not be expecting such messages to fill their logs, so it would be good if we could turn off the logging of such messages for the duration of setfiles operation.

How are you doing the conversion?

I usually edit the config file, boot with selinux=0, relabel, then reboot with selinux=1.

How many people really need to do this though?

- James

Signature · 9 lines
James Morris
<[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.
#2 lore raw
Quoted 10 lines · James Morris
Quoted 7 lines · Russell Coker

Would it be possible to have a file in /selinux to determine whether such messages are displayed?

When we convert a machine between strict and targeted policies we (the developers) expect many such messages. The users however will not be expecting such messages to fill their logs, so it would be good if we could turn off the logging of such messages for the duration of setfiles operation.

Quoted 6 lines

How are you doing the conversion?

I usually edit the config file, boot with selinux=0, relabel, then reboot with selinux=1.

How many people really need to do this though?

I don't think we want to create a special case just for this particular error message, or pollute selinuxfs with individual toggles for each such case. Possibly we could convert many of the error messages in hooks.c and ss/*.c to using audit_log instead of printk, then set up filtering in auditd.

Signature · 8 lines
Stephen Smalley <[email protected]>
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.
#3 lore raw
Quoted 5 lines · Stephen Smalley

I don't think we want to create a special case just for this particular error message, or pollute selinuxfs with individual toggles for each such case. Possibly we could convert many of the error messages in hooks.c and ss/*.c to using audit_log instead of printk, then set up filtering in auditd.

Sounds reasonable.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.
#4 lore raw
In reply to James Morris
Quoted 10 lines · James Morris
Quoted 8 lines · Russell Coker

Would it be possible to have a file in /selinux to determine whether such messages are displayed?

When we convert a machine between strict and targeted policies we (the developers) expect many such messages. The users however will not be expecting such messages to fill their logs, so it would be good if we could turn off the logging of such messages for the duration of setfiles operation.

Quoted 4 lines

How are you doing the conversion?

I usually edit the config file, boot with selinux=0, relabel, then reboot with selinux=1.

That's two reboots and it's not the way we designed things. Quite a bit of work has already been done to get it working that way.

Quoted 1 line

How many people really need to do this though?

Everyone who wants to use strict policy, which is probably everyone for whom SE Linux is a major factor in choosing a distribution.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.
#5 lore raw
Quoted 2 lines · Russell Coker

Everyone who wants to use strict policy, which is probably everyone for whom SE Linux is a major factor in choosing a distribution.

Sorry, doesn't strict policy define a superset of the file types in the targeted policy? Thus, there shouldn't be inode_doinit errors upon targeted -> strict conversion, only the reverse (which should be rare).

Signature · 8 lines
Stephen Smalley <[email protected]>
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.
#6 lore raw
Quoted 7 lines · Stephen Smalley
Quoted 2 lines · Russell Coker

Everyone who wants to use strict policy, which is probably everyone for whom SE Linux is a major factor in choosing a distribution.

Sorry, doesn't strict policy define a superset of the file types in the targeted policy? Thus, there shouldn't be inode_doinit errors upon targeted -> strict conversion,

True. However my observation indicates that of the people who use the strict policy in Fedora few of them use it from the start without ever going back. Often they deploy test machines, play with strict, get annoyed and go back to targeted, give it another go when someone explains things to them on IRC, etc.

The people who will go for strict policy and never look back can probably deal with a few error messages. ;)

Quoted 1 line

only the reverse (which should be rare).

In live production servers it should be rare! In fact we should probably write some documentation about the issues related to moving servers between strict and targeted. For Fedora desktop machines I don't expect it to be rare at all.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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.