Bug 1315028 - SELinux is preventing gpg2 from 'write' accesses on the file trustdb.gpg.
SELinux is preventing gpg2 from 'write' accesses on the file trustdb.gpg.
Status: CLOSED DUPLICATE of bug 1303531
Product: Fedora
Classification: Fedora
Component: fwupd (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard Hughes
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-03-05 19:00 EST by Horst H. von Brand
Modified: 2016-03-07 04:29 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-03-07 04:29:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Horst H. von Brand 2016-03-05 19:00:00 EST
Description of problem:
SELinux is preventing gpg2 from 'write' accesses on the file trustdb.gpg.

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

If you believe that gpg2 should be allowed write access on the trustdb.gpg file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep gpg2 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:fwupd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:gpg_secret_t:s0
Target Objects                trustdb.gpg [ file ]
Source                        gpg2
Source Path                   gpg2
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-175.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.0-0.rc5.git0.2.fc25.x86_64 #1
                              SMP Thu Feb 25 10:53:02 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-03-05 11:52:27 CLT
Last Seen                     2016-03-05 11:52:27 CLT
Local ID                      46854862-8855-4acf-ba88-bbafd881ccaf

Raw Audit Messages
type=AVC msg=audit(1457189547.980:383): avc:  denied  { write } for  pid=2233 comm="gpg2" name="trustdb.gpg" dev="dm-1" ino=393323 scontext=system_u:system_r:fwupd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:gpg_secret_t:s0 tclass=file permissive=1

Hash: gpg2,fwupd_t,gpg_secret_t,file,write

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc5.git0.2.fc25.x86_64
type:           libreport

Potential duplicate: bug 1303531
Comment 1 Lukas Vrabec 2016-03-07 04:29:42 EST

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

Note You need to log in before you can comment on or make changes to this bug.