Bug 562204

Summary: SELinux is preventing restorecond (restorecond_t) "search" to ./.ssh (unlabeled_t).
Product: [Fedora] Fedora Reporter: Oliver Ruebenacker <curoli>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4a0aa804d2e8c2063cc0dd6e4e0d3f495b1b14aa17e43e0d694b768c357d5f40
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-05 16:09:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oliver Ruebenacker 2010-02-05 15:55:38 UTC
Summary:

SELinux is preventing restorecond (restorecond_t) "search" to ./.ssh
(unlabeled_t).

Detailed Description:

SELinux denied access requested by restorecond. It is not expected that this
access is required by restorecond and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for ./.ssh,

restorecon -v './.ssh'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:restorecond_t:SystemLow
Target Context                system_u:object_r:unlabeled_t:SystemLow
Target Objects                ./.ssh [ dir ]
Source                        restorecond
Source Path                   /usr/sbin/restorecond
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.57-22.fc10
Target RPM Packages           
Policy RPM                    selinux-policy-3.5.13-61.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall_file
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.27.24-170.2.68_1.cubbi_tuxonice.fc10.i686 #1
                              SMP Sat May 30 16:02:33 CEST 2009 i686 i686
Alert Count                   7
First Seen                    Sat 23 May 2009 07:16:31 AM EDT
Last Seen                     Fri 12 Jun 2009 04:57:47 PM EDT
Local ID                      48ada5fc-ac3f-412a-bd41-a59fc33e334c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1244840267.255:96): avc:  denied  { search } for  pid=1935 comm="restorecond" name=".ssh" dev=dm-0 ino=5570699 scontext=system_u:system_r:restorecond_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1244840267.255:96): arch=40000003 syscall=5 success=no exit=-13 a0=2240bb0 a1=28000 a2=0 a3=28000 items=0 ppid=1 pid=1935 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="restorecond" exe="/usr/sbin/restorecond" subj=system_u:system_r:restorecond_t:s0 key=(null)



Hash String generated from  selinux-policy-3.5.13-61.fc10,catchall_file,restorecond,restorecond_t,unlabeled_t,dir,search
audit2allow suggests:

#============= restorecond_t ==============
allow restorecond_t unlabeled_t:dir search;

Comment 1 Daniel Walsh 2010-02-05 16:09:27 UTC

*** This bug has been marked as a duplicate of bug 538428 ***