Bug 842087

Summary: avc: denied { setattr } for pid=8480 comm="winbindd" name="smbpasswd"
Product: Red Hat Enterprise Linux 5 Reporter: Ales Zelinka <azelinka>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: medium    
Version: 5.8CC: dapospis, dwalsh, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 12:59:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ales Zelinka 2012-07-21 19:03:44 UTC
this AVC is logged when samba3x winbind authenticates a user:


type=AVC msg=audit(1342876814.160:78): avc:  denied  { setattr } for  pid=8480 comm="winbindd" name="smbpasswd" dev=dm-0 ino=144901331 scontext=root:system_r:winbind_t:s0 tcontext=root:object_r:samba_etc_t:s0 tclass=file

Comment 1 RHEL Program Management 2012-07-21 19:18:07 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 3 Miroslav Grepl 2012-07-23 05:18:13 UTC
# matchpathcon /etc/samba/smbpasswd

# ls -Z /etc/samba/smbpasswd

You probably will need to run restorecon.

But the file should be created with correct label. Could be a test issue?

Comment 4 Ales Zelinka 2012-08-22 12:59:42 UTC
You're right, my bad.