Bug 849700 - selinux error can result in a reboot?
selinux error can result in a reboot?
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy (Show other bugs)
x86_64 Linux
unspecified Severity low
: rc
: ---
Assigned To: Miroslav Grepl
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2012-08-20 11:53 EDT by Eduardo Trejo
Modified: 2012-08-21 03:50 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-21 03:33:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Eduardo Trejo 2012-08-20 11:53:34 EDT
Description of problem:
selinux messages after a reboot was presented

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

before reboot logs showed selinux messages, this could cause the reboot automatically?

 localhost setroubleshoot: SELinux is preventing access to files with the label, file_t. For complete SELinux messages. run sealert -l fceaf526-a953-42bf-

[root@localhost ~]# sealert -l fceaf526-a953-42bf-bf07-82bba906b75d


SELinux is preventing access to files with the label, file_t.

Detailed Description:

[SELinux is in permissive mode, the operation would have been denied but was
permitted due to permissive mode.]

SELinux permission checks on files labeled file_t are being denied. file_t is
the context the SELinux kernel gives to files that do not have a label. This
indicates a serious labeling problem. No files on an SELinux box should ever be
labeled file_t. If you have just added a new disk drive to the system you can
relabel it using the restorecon command. Otherwise you should relabel the entire
files system.

Allowing Access:

You can execute the following command as root to relabel your computer system:
"touch /.autorelabel; reboot"

Additional Information:

Source Context                user_u:system_r:unconfined_t
Target Context                user_u:object_r:file_t
Target Objects                /u01/oracle/grid/agent11g/lib/libnnz11.so [ file ]
Source                        emdctl
Source Path                   /u01/oracle/grid/agent11g/bin/emdctl
Port                          <Unknown>
Host                          localhost
Source RPM Packages
Target RPM Packages
Policy RPM                    selinux-policy-2.4.6-137.el5
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   file
Host Name                     localhost
Platform                      Linux localhost 2.6.18-92.el5 #1 SMP Tue
                              Apr 29 13:16:15 EDT 2008 x86_64 x86_64
Alert Count                   118239
First Seen                    Mon Nov  7 14:08:03 2011
Last Seen                     Mon Aug 20 10:49:01 2012
Local ID                      fceaf526-a953-42bf-bf07-82bba906b75d
Line Numbers

Raw Audit Messages

host=localhost type=AVC msg=audit(1345477741.724:21019): avc:  denied  { execmod } for  pid=11632 comm="emdctl" path="/u01/oracle/grid/agent11g/lib/libnnz11.so" dev=dm-8 ino=641599 scontext=user_u:system_r:unconfined_t:s0 tcontext=user_u:object_r:file_t:s0 tclass=file

host=localhost type=SYSCALL msg=audit(1345477741.724:21019): arch=c000003e syscall=10 success=yes exit=0 a0=2b9976944000 a1=2a0000 a2=5 a3=2b9976947110 items=0 ppid=11631 pid=11632 auid=10602 uid=10602 gid=200 euid=10602 suid=10602 fsuid=10602 egid=200 sgid=200 fsgid=200 tty=(none) ses=2562 comm="emdctl" exe="/u01/oracle/grid/agent11g/bin/emdctl" subj=user_u:system_r:unconfined_t:s0 key=(null)
Comment 1 Miroslav Grepl 2012-08-21 03:33:53 EDT
You will need to run 

# restorecon -R -v /u01
# chcon -R -t lib_t /u01/oracle/grid/agent11g/lib

Note You need to log in before you can comment on or make changes to this bug.