Bug 1731498 - SELinux is preventing cp from using the 'fsetid' capabilities.
Summary: SELinux is preventing cp from using the 'fsetid' capabilities.
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6458585a6390143aea12281a1b9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-19 14:34 UTC by Tim Diillenberger
Modified: 2019-11-06 01:40 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Tim Diillenberger 2019-07-19 14:34:46 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:snappy_t:s0
Target Context                system_u:system_r:snappy_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.3-40.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.1.17-300.fc30.x86_64 #1 SMP Wed
                              Jul 10 15:20:27 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-07-19 08:50:18 CDT
Last Seen                     2019-07-19 08:50:18 CDT
Local ID                      e24ccb40-02bf-4cf8-9451-cdf341649015

Raw Audit Messages
type=AVC msg=audit(1563544218.193:294): avc:  denied  { fsetid } for  pid=11177 comm="cp" capability=4  scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:system_r:snappy_t:s0 tclass=capability permissive=1


Hash: cp,snappy_t,snappy_t,capability,fsetid

Version-Release number of selected component:
selinux-policy-3.14.3-40.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.1.17-300.fc30.x86_64
type:           libreport


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