Bug 1377916 - SELinux is preventing systemd-journal from 'sys_ptrace' accesses on the cap_userns Unknown.
Summary: SELinux is preventing systemd-journal from 'sys_ptrace' accesses on the cap_u...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aaed1fca824a086e1f06b81b088...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-21 02:20 UTC by Abdallah Hesham
Modified: 2017-11-20 09:57 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-20 09:57:17 UTC
Type: ---


Attachments (Terms of Use)

Description Abdallah Hesham 2016-09-21 02:20:40 UTC
Description of problem:
I think when I installed gnome nightly and it's apps 
and I used for it flatpak with this tutorial http://flatpak.org/apps.html
SELinux is preventing systemd-journal from 'sys_ptrace' accesses on the cap_userns Unknown.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that systemd-journal should be allowed sys_ptrace access on the Unknown cap_userns 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 'systemd-journal' --raw | audit2allow -M my-systemdjournal
# semodule -X 300 -i my-systemdjournal.pp

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                system_u:system_r:syslogd_t:s0
Target Objects                Unknown [ cap_userns ]
Source                        systemd-journal
Source Path                   systemd-journal
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-214.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc6.git0.1.fc25.x86_64 #1
                              SMP Mon Sep 12 19:16:54 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-09-21 04:10:57 EET
Last Seen                     2016-09-21 04:10:57 EET
Local ID                      00754145-7004-48dd-9820-844f64edf5fd

Raw Audit Messages
type=AVC msg=audit(1474423857.237:210): avc:  denied  { sys_ptrace } for  pid=462 comm="systemd-journal" capability=19  scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:system_r:syslogd_t:s0 tclass=cap_userns permissive=0


Hash: systemd-journal,syslogd_t,syslogd_t,cap_userns,sys_ptrace

Version-Release number of selected component:
selinux-policy-3.13.1-214.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc6.git0.1.fc25.x86_64
type:           libreport

Potential duplicate: bug 1374187

Comment 1 Fedora Admin XMLRPC Client 2016-09-27 15:02:24 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Christian Stadelmann 2016-10-20 16:42:28 UTC
I see this issue when starting a flatpak Gtk+ 3.x application from gnome-shell (but not when starting from command line).

Comment 3 Gerald Zehetner 2016-11-04 11:49:18 UTC
Description of problem:
This error appears directly after logging into gnome (wayland).

Version-Release number of selected component:
selinux-policy-3.13.1-220.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.4-301.fc25.x86_64
type:           libreport

Comment 4 Fedora End Of Life 2017-11-16 18:36:28 UTC
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.

Comment 5 Christian Stadelmann 2017-11-16 22:56:39 UTC
I cannot reproduce this issue any more.


Note You need to log in before you can comment on or make changes to this bug.