Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionBranislav Náter
2020-06-17 12:36:52 UTC
Description of problem:
Issue reported by SELinux Alert Browser:
SELinux is preventing (fwupd) from setattr access on the directory /var/lib/fwupd.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that (fwupd) should be allowed setattr 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 systemd-239-33.el8.x86_64
Target RPM Packages fwupd-1.4.1-1.el8.x86_64
SELinux Policy RPM selinux-policy-targeted-3.14.3-44.el8.noarch
Local Policy RPM selinux-policy-targeted-3.14.3-44.el8.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux localhost.localdomain 4.18.0-214.el8.x86_64
#1 SMP Fri Jun 12 08:55:08 UTC 2020 x86_64 x86_64
Alert Count 7
First Seen 2020-06-17 08:45:41 CEST
Last Seen 2020-06-17 09:59:20 CEST
Local ID bbc6bbdd-f320-431b-bfa9-c9a87d4e9d43
Raw Audit Messages
type=AVC msg=audit(1592380760.541:197): avc: denied { setattr } for pid=18361 comm="(fwupd)" name="fwupd" dev="dm-2" ino=404107173 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:fwupd_var_lib_t:s0 tclass=dir permissive=0
type=SYSCALL msg=audit(1592380760.541:197): arch=x86_64 syscall=chmod success=no exit=EACCES a0=555d96fed210 a1=1ed a2=ffffffff a3=0 items=0 ppid=1 pid=18361 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=(fwupd) exe=/usr/lib/systemd/systemd subj=system_u:system_r:init_t:s0 key=(null)
Hash: (fwupd),init_t,fwupd_var_lib_t,dir,setattr
Description of problem: Issue reported by SELinux Alert Browser: SELinux is preventing (fwupd) from setattr access on the directory /var/lib/fwupd. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that (fwupd) should be allowed setattr 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 systemd-239-33.el8.x86_64 Target RPM Packages fwupd-1.4.1-1.el8.x86_64 SELinux Policy RPM selinux-policy-targeted-3.14.3-44.el8.noarch Local Policy RPM selinux-policy-targeted-3.14.3-44.el8.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux localhost.localdomain 4.18.0-214.el8.x86_64 #1 SMP Fri Jun 12 08:55:08 UTC 2020 x86_64 x86_64 Alert Count 7 First Seen 2020-06-17 08:45:41 CEST Last Seen 2020-06-17 09:59:20 CEST Local ID bbc6bbdd-f320-431b-bfa9-c9a87d4e9d43 Raw Audit Messages type=AVC msg=audit(1592380760.541:197): avc: denied { setattr } for pid=18361 comm="(fwupd)" name="fwupd" dev="dm-2" ino=404107173 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:fwupd_var_lib_t:s0 tclass=dir permissive=0 type=SYSCALL msg=audit(1592380760.541:197): arch=x86_64 syscall=chmod success=no exit=EACCES a0=555d96fed210 a1=1ed a2=ffffffff a3=0 items=0 ppid=1 pid=18361 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=(fwupd) exe=/usr/lib/systemd/systemd subj=system_u:system_r:init_t:s0 key=(null) Hash: (fwupd),init_t,fwupd_var_lib_t,dir,setattr