Bug 1284304
Summary: | SELinux is preventing abrt-hook-ccpp from 'getattr' accesses on the file /usr/lib/systemd/systemd-logind. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Seb L. <D8F55524> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 22 | CC: | abrt-devel-list, dominick.grift, dvlasenk, dwalsh, iprikryl, jfilak, lvrabec, mgrepl, mhabrnal, michal.toman, mmilata, phelia, plautrba |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:c02ec7f3748b2ba665751c3ef2cd32b400b71fb14d4a580ba983c312d83f732d; | ||
Fixed In Version: | selinux-policy-3.13.1-128.29.fc22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-19 20:23:25 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: |
Description
Seb L.
2015-11-23 00:36:19 UTC
We see abrt-hook-ccpp checks random executables. It is caused by generating backtraces from the core_pattern helper (bug #1245477, bug #1276305): https://github.com/abrt/abrt/blob/master/src/hooks/abrt-hook-ccpp.c#L416 When I changed the core_pattern to: "|/usr/bin/strace -o /tmp/abrt-strace.%I /usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %e %P %I" ran /usr/bin/will_segfault and open the /tmp/abrt-strace.24655 file I can see these lines: ... ptrace(PTRACE_GETREGS, 24655, NULL, 0x7ffdb3bf8dc0) = 0 stat("/usr/bin/will_segfault", {st_mode=S_IFREG|0755, st_size=11288, ...}) = 0 open("/usr/bin/will_segfault", O_RDONLY) = 7 fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fstat(7, {st_mode=S_IFREG|0755, st_size=11288, ...}) = 0 mmap(NULL, 11288, PROT_READ|PROT_WRITE, MAP_PRIVATE, 7, 0) = 0x7f31e4c8f000 ... It looks like that the executable file is examined while generating the backtrace. PS: Do not try to reproduce it on your machine, I had to ask Denys Vlasenko to patch strace to be able get the output file properly [1][2]. http://sourceforge.net/p/strace/code/ci/5b783b73daaa4c90c9dafaf6e8f400eb79e2eb73/ http://sourceforge.net/p/strace/code/ci/258e0fdfbf6e6f6c4de9dc7f4cc6774e2a937c57/ Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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. |