Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1433884

Summary: SELinux is preventing (fwupd) from 'mounton' accesses on the directory /var/lib/fwupd.
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, robatino, spetreolle, ssekidde, vondruch, zaro_ale
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cc901ee8e40191f3fa74ff3d206c0246a8ed176f88c962540610214294c4e4e2;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-06 06:10:57 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:
Bug Depends On:    
Bug Blocks: 1349188    

Description Vít Ondruch 2017-03-20 09:57:00 UTC
Description of problem:
SELinux is preventing (fwupd) from 'mounton' accesses on the directory /var/lib/fwupd.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that (fwupd) should be allowed mounton access on the fwupd 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:
# ausearch -c '(fwupd)' --raw | audit2allow -M my-fwupd
# semodule -X 300 -i my-fwupd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:fwupd_var_lib_t:s0
Target Objects                /var/lib/fwupd [ dir ]
Source                        (fwupd)
Source Path                   (fwupd)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           fwupd-0.8.1-1.fc26.x86_64
Policy RPM                    selinux-policy-3.13.1-246.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.10.0-1.fc26.x86_64 #1 SMP Mon
                              Feb 20 14:51:52 UTC 2017 x86_64 x86_64
Alert Count                   2
First Seen                    2017-03-20 10:43:44 CET
Last Seen                     2017-03-20 10:55:51 CET
Local ID                      831971bb-c404-406b-bd08-3da3518154b4

Raw Audit Messages
type=AVC msg=audit(1490003751.568:239): avc:  denied  { mounton } for  pid=2550 comm="(fwupd)" path="/var/lib/fwupd" dev="dm-1" ino=930750 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:fwupd_var_lib_t:s0 tclass=dir permissive=0


Hash: (fwupd),init_t,fwupd_var_lib_t,dir,mounton

Version-Release number of selected component:
selinux-policy-3.13.1-246.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.10.0-1.fc26.x86_64
type:           libreport

Potential duplicate: bug 1432759

Comment 1 Adam Williamson 2017-06-05 18:57:19 UTC
Discussed at 2017-06-05 blocker review meeting: https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2017-06-05/f26-blocker-review.2017-06-05-16.01.html . We note this looks a lot like a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1429341 , which was fixed some time ago with selinux-policy-3.13.1-247. Can you please confirm that this is fixed with that version or newer? Thanks.

Comment 2 Vít Ondruch 2017-06-06 06:10:57 UTC
I don't remember to have this issue recently.

$ rpm -q selinux-policy
selinux-policy-3.13.1-252.fc27.noarch

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