Major reduction in errors
Mr. Coker,
I was able to fix all the problems with your policy configuration at
www.coker.com.au/selinux/policy.tgz. I compiled, installed and loaded it, and found that the number of errors had been slashed by at least a third, maybe half. However, there are still a significant number of errors that I don't know how to fix. Attached are two more dmesg outputs; one from bootup, the other after starting X and Netscape.
Thanks VERY much,
Brad
=====
Brad Chapman
Permanent e-mails: [email protected]
[email protected]
[email protected]
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Quoted 6 lines · Brad Chapman
I was able to fix all the problems with your policy configuration at
www.coker.com.au/selinux/policy.tgz. I compiled, installed and loaded it, and found that the number of errors had been slashed by at least a third, maybe half. However, there are still a significant number of errors that I don't know how to fix. Attached are two more dmesg outputs; one from bootup, the other after starting X and Netscape.
psidfiles_init: error 22 in obtaining SID for context system_u:object_r:rmmod_exec_t (psid 42).
These are from removing types from the policy and then remounting a file system that uses the now non-existant contexts or which once used them.
avc: denied { mounton } for pid=1 comm=swapper path=/dev dev=03:0a ino=10041
scontext=system_u:system_r:kernel_t tcontext=system_u:object_r:file_t tclass=dir
This is a problem in that you can't change the type of /dev (unless you use some very experimental patches). So all you can do is add a new rule to allow this.
avc: denied { write } for pid=1 exe=/sbin/init dev=00:07 ino=1 scontext=system_u:system_r:init_t tcontext=system_u:object_r:devfs_t tclass=dir
Use the following in init.te (something equivalent should already be in my policy):
ifdef(devfsd.te', file_type_auto_trans(init_t, devfs_t, initctl_t)')
avc: denied { read write } for pid=12 exe=/sbin/devfsd path=/console dev=00:07 ino=17 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:console_device_t tclass=chr_file
This is fixed in my latest policy files which I have just put online (lots of changes related to /dev/console).
avc: denied { read } for pid=12 exe=/sbin/devfsd path=/.devfsd dev=00:07 ino=2 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:devfs_t tclass=chr_file
You need the following in the devfs_contexts file:
devfscon /.devfsd system_u:object_r:devfs_control_t
avc: denied { read } for pid=12 exe=/sbin/devfsd path=/etc/nsswitch.conf dev=03:0a ino=14073 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:etc_t tclass=file
Should be solved by the following:
allow devfsd_t { etc_t etc_runtime_t proc_t }:file r_file_perms;
avc: denied { write } for pid=22 exe=/sbin/minilogd dev=00:07 ino=1 scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:devfs_t tclass=dir
/sbin/minilogd should be labelled the same as /usr/sbin/syslogd.
avc: denied { execute } for pid=40 exe=/bin/bash path=/bin/echo dev=03:0a ino=6068 scontext=system_u:system_r:insmod_t tcontext=system_u:object_r:bin_t tclass=file
Put in can_exec(devfsd_t, bin_t)
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.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Mr. Coker,
Quoted 6 lines · --- Russell Coker
avc: denied { read } for pid=12 exe=/sbin/devfsd path=/.devfsd dev=00:07 ino=2 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:devfs_t tclass=chr_file
You need the following in the
devfs_contextsfile:
devfscon /.devfsd system_u:object_r:devfs_control_t
This causes a syntax error when I attempt to compile the policy.
Brad
=====
Brad Chapman
Permanent e-mails: [email protected]
[email protected]
[email protected]
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Brad Chapman
Quoted 6 lines · --- Russell Coker
avc: denied { read } for pid=12 exe=/sbin/devfsd path=/.devfsd dev=00:07 ino=2 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:devfs_t tclass=chr_file
You need the following in the
devfs_contextsfile:
devfscon /.devfsd system_u:object_r:devfs_control_tThis causes a syntax error when I attempt to compile the policy.
In that case you're using too old a version of the selinux-small code base to work with this. Put in a rule to allow devfsd_t to read from devfs_t:chr_file until you can upgrade.
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.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Mr. Coker,
Quoted 9 lines · --- Russell Coker
Quoted 8 lines · Brad Chapman
Quoted 6 lines · --- Russell Coker
avc: denied { read } for pid=12 exe=/sbin/devfsd path=/.devfsd dev=00:07 ino=2 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:devfs_t tclass=chr_file
You need the following in the
devfs_contextsfile:
devfscon /.devfsd system_u:object_r:devfs_control_t
Quoted 6 lines
Quoted 1 line
This causes a syntax error when I attempt to compile the policy.
In that case you're using too old a version of the selinux-small code base to
work with this. Put in a rule to allow
devfsd_tto read from devfs_t:chr_file until you can upgrade.
I'm not using selinux-small. I'm using selinux-2002053110.tar.gz,
downloaded straight from www.nsa.gov. And the rule you told me I needed will look something like this:
allow devfsd_t devfs_t:chr_file { read };
Correct?Brad
=====
Brad Chapman
Permanent e-mails: [email protected]
[email protected]
[email protected]
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Brad Chapman
I'm not using selinux-small. I'm using selinux-2002053110.tar.gz,downloaded straight from www.nsa.gov. And the rule you told me I needed will look something like this:
allow devfsd_t devfs_t:chr_file { read };
Yes
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Mr. Coker,
Quoted 8 lines · --- Russell Coker
Quoted 5 lines · Brad Chapman
I'm not using selinux-small. I'm using selinux-2002053110.tar.gz,downloaded straight from www.nsa.gov. And the rule you told me I needed will look something like this:
allow devfsd_t devfs_t:chr_file { read };Yes
I'm sorry to keep bothering you like this, sir, but I am still getting
floods of permission errors for everything. Attached is another dmesg output.
Should I continue tweaking coker.com.au/selinux/policy.tgz or investigate coker.com.au/selinux/selinux-small?
Thanks,
Brad
=====
Brad Chapman
Permanent e-mails: [email protected]
[email protected]
[email protected]
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Quoted 6 lines · Brad Chapman
I'm sorry to keep bothering you like this, sir, but I am still
getting floods of permission errors for everything. Attached is another dmesg output.Should I continue tweaking coker.com.au/selinux/policy.tgz or investigate coker.com.au/selinux/selinux-small?
I suggest investigating the policy that I am distributing (which fixes most of the issues you are seeing), as well as the samba policy that has been recently posted here.
avc: denied { read } for pid=535 exe=/sbin/insmod path=/.devfsd dev=00:07 ino=2 scontext=system_u:system_r:insmod_t tcontext=system_u:object_r:devfs_t tclass=chr_file
The above is because you are using an old version of devfsd, this bug was fixed almost a year ago.
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.
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Mr. Coker,
Quoted 11 lines · --- Russell Coker
Quoted 6 lines · Brad Chapman
I'm sorry to keep bothering you like this, sir, but I am still
getting floods of permission errors for everything. Attached is another dmesg output.Should I continue tweaking coker.com.au/selinux/policy.tgz or investigate coker.com.au/selinux/selinux-small?
I suggest investigating the policy that I am distributing (which fixes most of the issues you are seeing), as well as the samba policy that has been recently posted here.
ACK.
Quoted 7 lines
avc: denied { read } for pid=535 exe=/sbin/insmod path=/.devfsd dev=00:07 ino=2 scontext=system_u:system_r:insmod_t tcontext=system_u:object_r:devfs_t tclass=chr_file
The above is because you are using an old version of devfsd, this bug was fixed almost a year ago.
I'm using devfsd version 1.3.24 and modutils version 2.4.14. Should I
upgrade my modutils to 2.4.16?
Brad
=====
Brad Chapman
Permanent e-mails: [email protected]
[email protected]
[email protected]
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.