Red Hat Bugzilla – 1650248 – SELinux is preventing /usr/bin/gsf-office-thumbnailer from using the 'nnp_transition, nosuid_transition' accesses on a process.
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.
Descriptionafox@redhat.com
2018-11-15 16:30:25 UTC
Description of problem:
When viewing images in eog (eye of gnome), we get an SELinux denial message. This doesn't see to stop the operation of viewing the image, or of eog showing thumbnails of the image. The SE Linux messages shown from sealert is:
---
SELinux is preventing /usr/bin/gsf-office-thumbnailer from using the 'nnp_transition, nosuid_transition' accesses on a process.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that gsf-office-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 'gsf-office-thum' --raw | audit2allow -M my-gsfofficethum
# semodule -i my-gsfofficethum.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 gsf-office-thum
Source Path /usr/bin/gsf-office-thumbnailer
Port <Unknown>
Host eld115
Source RPM Packages gdk-pixbuf2-2.36.12-3.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-229.el7_6.5.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name eld115
Platform Linux eld115 3.10.0-957.el7.x86_64 #1 SMP Thu Oct
4 20:48:51 UTC 2018 x86_64 x86_64
Alert Count 21
First Seen 2018-11-07 11:02:15 GMT
Last Seen 2018-11-07 13:31:03 GMT
Local ID e1abf37e-b590-4736-af67-190a64f8dc91
Raw Audit Messages
type=AVC msg=audit(1541597463.455:291): avc: denied { nnp_transition nosuid_transition } for pid=5067 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(1541597463.455:291): arch=x86_64 syscall=execve success=yes exit=0 a0=7fff8d016801 a1=7fff8d0147a0 a2=10ef160 a3=7fff8d011ca0 items=0 ppid=5062 pid=5067 auid=10140 uid=10140 gid=1000 euid=10140 suid=10140 fsuid=10140 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=3 comm=gdk-pixbuf-thum exe=/usr/bin/gdk-pixbuf-thumbnailer subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)
Hash: gsf-office-thum,unconfined_t,thumb_t,process2,nnp_transition,nosuid_transition
---
This used to work without issue in RHEL 7.5 and earlier, so I'm raising the issue as suggested in the alert.
Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-229.el7_6.5.noarch
How reproducible:
Always
Steps to Reproduce:
1. On 7.6, view an image in EOG.
Actual results:
SELinux denial
Expected results:
No SELinux denial
Same issue occurs with evince-thumbnailer.
SELinux is preventing /usr/bin/evince-thumbnailer from using the 'nnp_transition, nosuid_transition' accesses on a process.
***** 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 ks-kenobi
Source RPM Packages evince-3.28.2-5.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-229.el7_6.6.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name ks-kenobi
Platform Linux ks-kenobi 3.10.0-957.1.3.el7.x86_64 #1 SMP
Thu Nov 15 17:36:42 UTC 2018 x86_64 x86_64
Alert Count 1
First Seen 2019-01-16 11:20:03 GMT
Last Seen 2019-01-16 11:20:03 GMT
Local ID 6a8ce26e-44fe-4f0b-b061-d85acd666351
Raw Audit Messages
type=AVC msg=audit(1547637603.451:1621): avc: denied { nnp_transition nosuid_transition } for pid=19591 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(1547637603.451:1621): arch=x86_64 syscall=execve success=yes exit=0 a0=7ffef8b90c83 a1=7ffef8b932b0 a2=d2f160 a3=7ffef8b907a0 items=0 ppid=19586 pid=19591 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 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
This issue was not selected to be included in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small number of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available.
We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise, we recommend moving the request to Red Hat Enterprise Linux 8 if applicable.
Description of problem: When viewing images in eog (eye of gnome), we get an SELinux denial message. This doesn't see to stop the operation of viewing the image, or of eog showing thumbnails of the image. The SE Linux messages shown from sealert is: --- SELinux is preventing /usr/bin/gsf-office-thumbnailer from using the 'nnp_transition, nosuid_transition' accesses on a process. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that gsf-office-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 'gsf-office-thum' --raw | audit2allow -M my-gsfofficethum # semodule -i my-gsfofficethum.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 gsf-office-thum Source Path /usr/bin/gsf-office-thumbnailer Port <Unknown> Host eld115 Source RPM Packages gdk-pixbuf2-2.36.12-3.el7.x86_64 Target RPM Packages Policy RPM selinux-policy-3.13.1-229.el7_6.5.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name eld115 Platform Linux eld115 3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 Alert Count 21 First Seen 2018-11-07 11:02:15 GMT Last Seen 2018-11-07 13:31:03 GMT Local ID e1abf37e-b590-4736-af67-190a64f8dc91 Raw Audit Messages type=AVC msg=audit(1541597463.455:291): avc: denied { nnp_transition nosuid_transition } for pid=5067 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(1541597463.455:291): arch=x86_64 syscall=execve success=yes exit=0 a0=7fff8d016801 a1=7fff8d0147a0 a2=10ef160 a3=7fff8d011ca0 items=0 ppid=5062 pid=5067 auid=10140 uid=10140 gid=1000 euid=10140 suid=10140 fsuid=10140 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=3 comm=gdk-pixbuf-thum exe=/usr/bin/gdk-pixbuf-thumbnailer subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null) Hash: gsf-office-thum,unconfined_t,thumb_t,process2,nnp_transition,nosuid_transition --- This used to work without issue in RHEL 7.5 and earlier, so I'm raising the issue as suggested in the alert. Version-Release number of selected component (if applicable): selinux-policy-3.13.1-229.el7_6.5.noarch How reproducible: Always Steps to Reproduce: 1. On 7.6, view an image in EOG. Actual results: SELinux denial Expected results: No SELinux denial