Bug 1708082 - SELinux is preventing cp from using the 'fsetid' capabilities.
Summary: SELinux is preventing cp from using the 'fsetid' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fbc982bb114bebebc675ca806ea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-09 06:22 UTC by bernard827
Modified: 2019-05-21 01:09 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.14.3-37.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-21 01:09:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description bernard827 2019-05-09 06:22:38 UTC
Description of problem:
SELinux is preventing cp from using the 'fsetid' capabilities.

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

If you believe that cp should have the fsetid capability 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 'cp' --raw | audit2allow -M my-cp
# semodule -X 300 -i my-cp.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmie_t:s0
Target Context                system_u:system_r:pcp_pmie_t:s0
Target Objects                Unknown [ capability ]
Source                        cp
Source Path                   cp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.2-51.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.20.15-200.fc29.x86_64 #1 SMP Mon
                              Mar 11 16:01:28 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-03-17 23:28:04 EDT
Last Seen                     2019-03-17 23:28:04 EDT
Local ID                      b01a5c58-dc35-4a6f-bdbf-2fff40d4df42

Raw Audit Messages
type=AVC msg=audit(1552879684.274:174): avc:  denied  { fsetid } for  pid=2042 comm="cp" capability=4  scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:system_r:pcp_pmie_t:s0 tclass=capability permissive=0


Hash: cp,pcp_pmie_t,pcp_pmie_t,capability,fsetid

Version-Release number of selected component:
selinux-policy-3.14.2-51.fc29.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.9-301.fc30.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-05-14 16:00:42 UTC
commit 2e60cd97ff3539943221ce31805f936d63afc671 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Tue May 14 18:00:30 2019 +0200

    Allow pcp_pmie_t domain to use fsetid capability BZ(1708082)

Comment 2 Fedora Update System 2019-05-18 11:03:31 UTC
selinux-policy-3.14.3-37.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-40c077f70d

Comment 3 Fedora Update System 2019-05-19 00:51:02 UTC
selinux-policy-3.14.3-37.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-40c077f70d

Comment 4 Fedora Update System 2019-05-21 01:09:34 UTC
selinux-policy-3.14.3-37.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


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