Skip to contentSkip to conversation

strange errors

DISCUSSION Russell Coker 2 participants 2 messages Apr 15, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

avc: denied { } for pid=1003 exe=/bin/bash path=/bin dev=09:03 ino=73319 scontext=system_u:system_r:logrotate_t tcontext=system_u:object_r:bin_t tclass=blk_file

avc: denied { } for pid=1375 exe=/usr/sbin/sshd path=/bin dev=09:03 ino=73319 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:bin_t tclass=blk_file

I am just trying to fix a broken SE machine that needed quite a bit of work done while running a non-SE kernel as part of the recovery process. I saw the above messages in the logs. 73319 is the inode number of the /bin directory.

It's compiled with the latest kernel patch and running on the ReiserFS file system.

Eventually I had to do the following to solve the problem:
mkdir /new ; mv /bin/* /new ; /new/mv /bin /bin.old ; /new/mv /new /bin

Then everything worked fine. It seemed that SE Linux was determined to believe that /bin was not a dir but a blk_file!

The machine is now running fine in enforcing mode.

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

avc: denied { } for pid=1003 exe=/bin/bash path=/bin dev=09:03 ino=73319 scontext=system_u:system_r:logrotate_t tcontext=system_u:object_r:bin_t tclass=blk_file

avc: denied { } for pid=1375 exe=/usr/sbin/sshd path=/bin dev=09:03 ino=73319 scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:bin_t tclass=blk_file

I am just trying to fix a broken SE machine that needed quite a bit of work done while running a non-SE kernel as part of the recovery process. I saw the above messages in the logs. 73319 is the inode number of the /bin directory.

It's compiled with the latest kernel patch and running on the ReiserFS file system.

Quoted 7 lines

Eventually I had to do the following to solve the problem:
mkdir /new ; mv /bin/* /new ; /new/mv /bin /bin.old ; /new/mv /new /bin

Then everything worked fine. It seemed that SE Linux was determined to believe that /bin was not a dir but a blk_file!

The machine is now running fine in enforcing mode.

The security class for all inodes is initialized to 'file' when the inode is allocated, and then set to a class based on the inode mode when the inode security structure is initialized when the hook in d_instantiate is called. The only reason for SELinux to set it to blk_file is if the inode mode format value was S_IFBLK when d_instantiate is called.

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.