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.
Description of problem:
When opening a PDF or a folder with PDFs, the below selinux error pops up.
Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-229.el7_6.9.noarch
***** Plugin catchall (100. confidence) suggests **************************
If you believe that evince-thumbnailer should be allowed nnp_transition
nosuid_transition access on processes labeled thumb_t 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 'evince-thumbnai' --raw | audit2allow -M my-evincethumbnai
# semodule -i my-evincethumbnai.pp
Additional Information:
Source Context
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
023
Target Context
unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Objects Unknown [ process2 ]
Source evince-thumbnai
Source Path /usr/bin/evince-thumbnailer
Port <Unknown>
Host xxxx
Source RPM Packages evince-3.28.2-5.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-229.el7_6.9.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name xxxx
Platform Linux xxxx
3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19
10:46:58 EST 2018 x86_64 x86_64
Alert Count 2
First Seen 2019-03-22 11:55:18 CET
Last Seen 2019-03-26 09:49:05 CET
Local ID 24e44864-4311-434b-9f0d-112df78f76b0
Raw Audit Messages
type=AVC msg=audit(1553590145.609:2467): avc: denied { nnp_transition
nosuid_transition } for pid=8364 comm="flatpak-bwrap"
scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
tcontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
tclass=process2 permissive=0
type=SYSCALL msg=audit(1553590145.609:2467): arch=x86_64 syscall=execve
success=yes exit=0 a0=7ffd1847402b a1=7ffd18476660 a2=13a0160
a3=7ffd18473b20 items=0 ppid=8359 pid=8364 auid=16201 uid=16201
gid=16201 euid=16201 suid=16201 fsuid=16201 egid=16201 sgid=16201
fsgid=16201 tty=(none) ses=35 comm=evince-thumbnai
exe=/usr/bin/evince-thumbnailer
subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
Hash:
evince-thumbnai,unconfined_t,thumb_t,process2,nnp_transition,nosuid_transition
I still don't quite understand why flatpak-bwrap is involved in creating of thumbnails and hence the domain transition is needed so I'll just reassign this to SELinux. However they rejected fix for similar issue in 7.7 (#1650248) but it looks that this is hit quite frequently on CentOS and has been fixed there (#1712603).
Similar issue has been fixed in Fedora 27 by creating of new interface thumb_nnp_domtrans allowing domain transition with NoNewPrivs. This interface has been added to thumb_run()(#1509502). Maybe we just need to add evince there too.
I can reproduce this instantly by just visiting a directory with some PDFs in nautilus (which doesn't have cached thumbnails).
Description of problem: When opening a PDF or a folder with PDFs, the below selinux error pops up. Version-Release number of selected component (if applicable): selinux-policy-3.13.1-229.el7_6.9.noarch ***** Plugin catchall (100. confidence) suggests ************************** If you believe that evince-thumbnailer should be allowed nnp_transition nosuid_transition access on processes labeled thumb_t 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 'evince-thumbnai' --raw | audit2allow -M my-evincethumbnai # semodule -i my-evincethumbnai.pp Additional Information: Source Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Context unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 Target Objects Unknown [ process2 ] Source evince-thumbnai Source Path /usr/bin/evince-thumbnailer Port <Unknown> Host xxxx Source RPM Packages evince-3.28.2-5.el7.x86_64 Target RPM Packages Policy RPM selinux-policy-3.13.1-229.el7_6.9.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name xxxx Platform Linux xxxx 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 Alert Count 2 First Seen 2019-03-22 11:55:18 CET Last Seen 2019-03-26 09:49:05 CET Local ID 24e44864-4311-434b-9f0d-112df78f76b0 Raw Audit Messages type=AVC msg=audit(1553590145.609:2467): avc: denied { nnp_transition nosuid_transition } for pid=8364 comm="flatpak-bwrap" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tclass=process2 permissive=0 type=SYSCALL msg=audit(1553590145.609:2467): arch=x86_64 syscall=execve success=yes exit=0 a0=7ffd1847402b a1=7ffd18476660 a2=13a0160 a3=7ffd18473b20 items=0 ppid=8359 pid=8364 auid=16201 uid=16201 gid=16201 euid=16201 suid=16201 fsuid=16201 egid=16201 sgid=16201 fsgid=16201 tty=(none) ses=35 comm=evince-thumbnai exe=/usr/bin/evince-thumbnailer subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null) Hash: evince-thumbnai,unconfined_t,thumb_t,process2,nnp_transition,nosuid_transition