Skip to contentSkip to conversation

boot messages

DISCUSSION Justin Smith 2 participants 2 messages Dec 1, 2001 – Dec 3, 2001 SELinux security module

lore
Share & tools
lore
#0 lore raw

Part of my dmesg:

....................
usb-uhci.c: v1.268:USB Universal Host Controller Interface driver

avc: denied { search } for pid=93 exe=/bin/cat dev=00:08 ino=1
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:unlabeled_t
tclass=dir

avc: denied { read } for pid=93 exe=/bin/cat path=/devices dev=00:08 ino=2
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:unlabeled_t
tclass=file

avc: denied { getattr } for pid=93 exe=/bin/cat path=/devices dev=00:08 ino=2
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:unlabeled_t
tclass=file

avc: denied { mounton } for pid=149 exe=/bin/mount path=/local dev=03:0a ino=
32705
scontext=system_u:system_r:mount_t tcontext=system_u:object_r:usr_t
tclass=dir

avc: denied { write } for pid=224 exe=/bin/mv path=/log dev=03:05 ino=96193
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_log_t
tclass=dir

avc: denied { remove_name } for pid=224 exe=/bin/mv path=/log/ksyms.5 dev=03:
05 ino=96389
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_log_t
tclass=dir

avc: denied { rename } for pid=224 exe=/bin/mv path=/log/ksyms.5 dev=03:05 in
o=96389
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_log_t
tclass=file

avc: denied { add_name } for pid=224 exe=/bin/mv path=/log/ksyms.6 dev=03:05
ino=96370
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_log_t
tclass=dir

It looks as though the system doesn't allow basic maintenance of the logs...

I'll try changing the policy slightly (in initrc.te)

# allow initrc_t var_log_t:file rw_file_perms;
allow initrc_t var_log_t:file 
       { write read rename remove_name add_name unlink create search };
Signature · 4 lines
--
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.
#1 lore raw
Quoted 4 lines · Justin Smith

avc: denied { search } for pid=93 exe=/bin/cat dev=00:08 ino=1
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:unlabeled_t
tclass=dir

I provided a possible explanation for these messages in my earlier reply - see http://marc.theaimsgroup.com/?l=selinux&m=100688827827241&w=2.

Quoted 6 lines

avc: denied { mounton } for pid=149 exe=/bin/mount path=/local dev=03:0a ino=
32705
scontext=system_u:system_r:mount_t tcontext=system_u:object_r:usr_t
tclass=dir

I'll add this permission to the example policy.

Quoted 5 lines

avc: denied { write } for pid=224 exe=/bin/mv path=/log dev=03:05 ino=96193
scontext=system_u:system_r:initrc_t tcontext=system_u:object_r:var_log_t
tclass=dir

<text deleted>

I've seen these messages on RH7.2, and am adding permissions for RH7.2, but I've never seen them on RH7.1. RH7.1 is still our recommended base platform, although we are working on the transition to RH7.2, as I've explained in other postings.

--
Stephen D. Smalley, NAI Labs
[email protected]

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