Boot Errors
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\
" dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir
Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file
Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file--
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.
Quoted 10 lines · Lisa R.
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\ " dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file
The name= field in the first message is a bit puzzling, but allowing dmidecode to search /sys is likely harmless.
The other two would seem to be a lack of proper typing on /media/.hal-mtab-lock. What happens if you restorecon -v /media/.hal-mtab-lock?
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.
Thank you. The restorecon did not work.
I am on Debian Etch system with linux-image-2.6.18-5-686. I probably should have mentioned that. Targeted policy version 20.
Quoted 12 lines · ---- Stephen Smalley
Quoted 10 lines · Lisa R.
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\ " dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file
Quoted 16 lines
The name= field in the first message is a bit puzzling, but allowing dmidecode to search /sys is likely harmless.
The other two would seem to be a lack of proper typing on /media/.hal-mtab-lock. What happens if you restorecon -v /media/.hal-mtab-lock?
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.
--
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.
Quoted 3 lines · Lisa R.
Thank you. The restorecon did not work.
I am on Debian Etch system with linux-image-2.6.18-5-686. I probably should have mentioned that. Targeted policy version 20.
(added Debian selinux folks to the cc line)
What does the following show?
. /etc/selinux/config
grep /media /etc/selinux/$SELINUXTYPE/contexts/files/file_contexts
Quoted 29 lines
Quoted 28 lines · ---- Stephen Smalley
Quoted 10 lines · Lisa R.
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\ " dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileThe name= field in the first message is a bit puzzling, but allowing dmidecode to search /sys is likely harmless.
The other two would seem to be a lack of proper typing on /media/.hal-mtab-lock. What happens if you restorecon -v /media/.hal-mtab-lock?
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.
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.
Hello.
. /etc/selinux/config shows nothing.
These are the actual file contents with a cat:
selinux:~# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive # SELINUXTYPE= can take one of these two values: # refpolicy-targeted - Only targeted network daemons are protected. # refpolicy-strict - Full SELinux protection. # refpolicy-src - Custom policy built from source #SELINUXTYPE=refpolicy-targeted SELINUXTYPE=refpolicy-targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
The grep shows:
grep /media /etc/selinux/$SELINUXTYPE/contexts/files/file_contexts
/media(/[^/]*) -l system_u:object_r:mnt_t:s0
/media(/[^/]*)? -d system_u:object_r:mnt_t:s0
/media/[^/]*/.* <<none>>
---- Stephen Smalley <[email protected]> wrote:
=============
Quoted 3 lines · Lisa R.
Thank you. The restorecon did not work.
I am on Debian Etch system with linux-image-2.6.18-5-686. I probably should have mentioned that. Targeted policy version 20.
(added Debian selinux folks to the cc line)
What does the following show?
. /etc/selinux/config
grep /media /etc/selinux/$SELINUXTYPE/contexts/files/file_contexts
Quoted 29 lines
Quoted 28 lines · ---- Stephen Smalley
Quoted 10 lines · Lisa R.
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\ " dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileThe name= field in the first message is a bit puzzling, but allowing dmidecode to search /sys is likely harmless.
The other two would seem to be a lack of proper typing on /media/.hal-mtab-lock. What happens if you restorecon -v /media/.hal-mtab-lock?
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.
Signature · 9 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.
Debian Etch Documentation
Hello.
I am looking for better documentation on SELinux on Debian Etch.
When looking (googling) for solutions I often hit RedHat or Fedora and they refer me to directory structures which my set up does not have.
This may be because I have a bad setup (I inherited it) or because it is different on Debian. At this point I don't know.
Can someone point me to some documentation?
We used the WIKI page for setup and I have referred to this page, http://etbe.coker.com.au/2006/12/08/se-linux-on-debian-in-5-minutes/.
However, when looking for specific instructions on how to do things I am lost.
Thanks,
Lisa
--
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.
Re: Debian Etch Documentation
Hi,
Quoted 6 lines · Lisa Raykowski
Hello.
I am looking for better documentation on SELinux on Debian Etch.
When looking (googling) for solutions I often hit RedHat or Fedora and they refer me to directory structures which my set up does not have.
Quoted 7 lines
This may be because I have a bad setup (I inherited it) or because it is different on Debian. At this point I don't know.
Can someone point me to some documentation?
We used the WIKI page for setup and I have referred to this page, http://etbe.coker.com.au/2006/12/08/se-linux-on-debian-in-5-minutes/.
However, when looking for specific instructions on how to do things I am lost.
Try
http://wiki.debian.org/SELinux
http://lists.alioth.debian.org/mailman/listinfo/selinux-user
and archive http://lists.alioth.debian.org/pipermail/selinux-user/
There is a little traffic currently.
Signature · 6 lines
Zito -- 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.
Quoted 2 lines · Lisa Raykowski
Hello.
./etc/selinux/configshows nothing.
It wasn't supposed to display output - the purpose of sourcing it was to pull in the definition of SELINUXTYPE before the subsequent grep command that used it.
Quoted 19 lines
These are the actual file contents with a cat:
selinux:~# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive # SELINUXTYPE= can take one of these two values: # refpolicy-targeted - Only targeted network daemons are protected. # refpolicy-strict - Full SELinux protection. # refpolicy-src - Custom policy built from source #SELINUXTYPE=refpolicy-targeted SELINUXTYPE=refpolicy-targeted# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
Quoted 6 lines
The grep shows:
grep /media
/etc/selinux/$SELINUXTYPE/contexts/files/file_contexts
/media(/[^/]*) -l system_u:object_r:mnt_t:s0
/media(/[^/]*)? -d system_u:object_r:mnt_t:s0
/media/[^/]*/.* <<none>>
Ok, current upstream policy also has:
/media/\.hal-.* -- system_u:object_r:mnt_t:s0
Although I'd have typically put that into a derived type myself.
Quoted 47 lines
---- Stephen Smalley <[email protected]> wrote:
=============
Quoted 3 lines · Lisa R.
Thank you. The restorecon did not work.
I am on Debian Etch system with linux-image-2.6.18-5-686. I probably should have mentioned that. Targeted policy version 20.
(added Debian selinux folks to the cc line)
What does the following show?
./etc/selinux/config
grep /media/etc/selinux/$SELINUXTYPE/contexts/files/file_contextsQuoted 29 lines
Quoted 28 lines · ---- Stephen Smalley
Quoted 10 lines · Lisa R.
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\ " dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileThe name= field in the first message is a bit puzzling, but allowing dmidecode to search /sys is likely harmless.
The other two would seem to be a lack of proper typing on /media/.hal-mtab-lock. What happens if you restorecon -v /media/.hal-mtab-lock?
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.
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.
Ok. Thank you. I thought you were expecting output for some reason. For now I am going to ignore these boot errors since I need to move on. Thank you for the help.
Lisa
---- Stephen Smalley <[email protected]> wrote:
=============
Quoted 2 lines · Lisa Raykowski
Hello.
./etc/selinux/configshows nothing.
It wasn't supposed to display output - the purpose of sourcing it was to pull in the definition of SELINUXTYPE before the subsequent grep command that used it.
Quoted 19 lines
These are the actual file contents with a cat:
selinux:~# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=permissive # SELINUXTYPE= can take one of these two values: # refpolicy-targeted - Only targeted network daemons are protected. # refpolicy-strict - Full SELinux protection. # refpolicy-src - Custom policy built from source #SELINUXTYPE=refpolicy-targeted SELINUXTYPE=refpolicy-targeted# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
Quoted 6 lines
The grep shows:
grep /media
/etc/selinux/$SELINUXTYPE/contexts/files/file_contexts
/media(/[^/]*) -l system_u:object_r:mnt_t:s0
/media(/[^/]*)? -d system_u:object_r:mnt_t:s0
/media/[^/]*/.* <<none>>
Ok, current upstream policy also has:
/media/\.hal-.* -- system_u:object_r:mnt_t:s0
Although I'd have typically put that into a derived type myself.
Quoted 47 lines
---- Stephen Smalley <[email protected]> wrote:
=============
Quoted 3 lines · Lisa R.
Thank you. The restorecon did not work.
I am on Debian Etch system with linux-image-2.6.18-5-686. I probably should have mentioned that. Targeted policy version 20.
(added Debian selinux folks to the cc line)
What does the following show?
./etc/selinux/config
grep /media/etc/selinux/$SELINUXTYPE/contexts/files/file_contextsQuoted 29 lines
Quoted 28 lines · ---- Stephen Smalley
Quoted 10 lines · Lisa R.
Hello.
I have new to this, have a new system and I have fixed most of the denial errors on boot. However, I am stuck on three.
Can anyone help?
Nov 6 22:00:27 selinux kernel: audit(1194404427.969:3): avc: denied { search } for pid=2814 comm="dmidecode" name="/\ " dev=sysfs ino=1 scontext=system_u:system_r:dmidecode_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir Nov 6 22:00:28 selinux kernel: audit(1194404428.085:4): avc: denied { read write } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file Nov 6 22:00:28 selinux kernel: audit(1194404428.089:5): avc: denied { lock } for pid=2816 comm="hal-storage-cle" name=".hal-mtab-lock" dev=hda1 ino=2359302 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileThe name= field in the first message is a bit puzzling, but allowing dmidecode to search /sys is likely harmless.
The other two would seem to be a lack of proper typing on /media/.hal-mtab-lock. What happens if you restorecon -v /media/.hal-mtab-lock?
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.
Signature · 14 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. -- 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.