Bug 562205

Summary: SELinux is preventing restorecond (restorecond_t) "read" 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:fa6b786f4a28fee1cb8d0f99103dc5bb7f4f8a2603c22f7690982aed6370ec72
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-08 10:00:50 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:56:02 UTC
Summary:

SELinux is preventing restorecond (restorecond_t) "read" 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                   14
First Seen                    Sat 23 May 2009 07:16:31 AM EDT
Last Seen                     Fri 12 Jun 2009 04:57:47 PM EDT
Local ID                      1c611382-0371-4680-92b0-191688525cdc
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1244840267.255:97): avc:  denied  { read } 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:97): arch=40000003 syscall=292 success=no exit=-13 a0=3 a1=1ba8710 a2=180 a3=1ba8728 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,read
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2010-02-08 10:00:50 UTC

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