Bug 902121

Summary: SELinux is preventing userdel from 'read' accesses on the directory /var/lib/amanda.
Product: [Fedora] Fedora Reporter: Abdelaziz Boumehdi <boumehdi.az>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:3adcda72e98d4a1a221698e374dc03829cddca6ca6cf2b1bc96e6858319465d5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-04 10:05:10 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Abdelaziz Boumehdi 2013-01-21 00:11:04 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.3.4-5.fc17.i686

description:
:SELinux is preventing userdel from 'read' accesses on the directory /var/lib/amanda.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that userdel should be allowed read access on the amanda directory by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep userdel /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:useradd_t:s0
:Target Context                system_u:object_r:amanda_var_lib_t:s0
:Target Objects                /var/lib/amanda [ dir ]
:Source                        userdel
:Source Path                   userdel
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           amanda-3.3.0-7.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-166.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.4-5.fc17.i686 #1 SMP Mon May 7
:                              17:45:26 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2013-01-20 19:10:20 EST
:Last Seen                     2013-01-20 19:10:20 EST
:Local ID                      1f5fa82a-3be1-4fa8-9eaf-c77f6ad1aec1
:
:Raw Audit Messages
:type=AVC msg=audit(1358727020.763:92): avc:  denied  { read } for  pid=2104 comm="userdel" name="amanda" dev="dm-1" ino=1072290 scontext=system_u:system_r:useradd_t:s0 tcontext=system_u:object_r:amanda_var_lib_t:s0 tclass=dir
:
:
:Hash: userdel,useradd_t,amanda_var_lib_t,dir,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Abdelaziz Boumehdi 2013-01-21 00:11:07 UTC
Created attachment 683980 [details]
File: type

Comment 2 Abdelaziz Boumehdi 2013-01-21 00:11:11 UTC
Created attachment 683981 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-01-21 12:00:05 UTC
What does

# grep amanda /etc/passwd

Comment 4 Fedora End Of Life 2013-07-04 00:56:04 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.