Bug 1419302
Summary: | SELinux is preventing sddm-greeter from 'execute' accesses on the file 2F7661722F6C69622F7364646D2F2333303531303331202864656C6574656429. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Filipe Rosset <rosset.filipe> | ||||
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 25 | CC: | dominick.grift, dwalsh, jan.public, lvrabec, mgrepl, plautrba, pmoore, rocketraman, ssekidde, tomastrnka | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | abrt_hash:b844fe665b940cc542bb53192a3c831c597e89e93dcd1a5d73920c27e4fb5076; | ||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-12-12 10:29:44 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: | |||||||
Attachments: |
|
Description
Filipe Rosset
2017-02-05 02:09:25 UTC
Saw this today on my F25 machine: type=AVC msg=audit(1492780056.064:5468): avc: denied { execute } for pid=24253 comm="sddm-greeter" path=2F7661722F6C69622F7364646D2F233234393132383120286 4656C6574656429 dev="dm-0" ino=2491281 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xdm_var_lib_t:s0 tclass=file permissive=0 type=SYSCALL msg=audit(1492780056.064:5468): arch=c000003e syscall=9 success=no exit=-13 a0=0 a1=40000 a2=5 a3=1 items=0 ppid=24245 pid=24253 auid=429496729 5 uid=482 gid=999 euid=482 suid=482 fsuid=482 egid=999 sgid=999 fsgid=999 tty=(none) ses=4294967295 comm="sddm-greeter" exe="/usr/bin/sddm-greeter" subj=sys tem_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null) type=PROCTITLE msg=audit(1492780056.064:5468): proctitle=2F7573722F62696E2F7364646D2D67726565746572002D2D736F636B6574002F746D702F7364646D2D3A302D6B707175445 6002D2D7468656D65002F7573722F73686172652F7364646D2F7468656D65732F30322D6665646F7261 After some debugging I've found out that sddm-greeter creates a temporary file in /var/lib/sddm/ (this is the long hex-encoded string) and tries to mmap it PROT_READ|PROT_EXEC. That triggers the denied execute AVC. The same thing is then retried with a file in /tmp/, where it succeeds. I thus have no idea if this has any real impact apart from spamming the logs. Given that the problematic access is surrounded by ioctls like DRM_IOCTL_NOUVEAU_GEM_NEW (see following strace), I'd guess this is related to Mesa/DRI/nouveau. However, I do not have time right now to debug this further. open("/var/lib/sddm", O_RDWR|O_EXCL|O_DIRECTORY|O_TMPFILE, 0600) = 24 fstat(24, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 ftruncate(24, 262144) = 0 mmap(NULL, 262144, PROT_READ|PROT_EXEC, MAP_SHARED, 24, 0) = -1 EACCES (Permission denied) close(24) = 0 open("/tmp", O_RDWR|O_EXCL|O_DIRECTORY|O_TMPFILE, 0600) = 24 fstat(24, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 ftruncate(24, 262144) = 0 mmap(NULL, 262144, PROT_READ|PROT_EXEC, MAP_SHARED, 24, 0) = 0x7f0dd4023000 Created attachment 1273325 [details]
Full strace of sddm-greeter showing the EACCES
This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |