Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1693177 - SELinux is preventing matchpathcon from 'write' accesses on the file context.
Summary: SELinux is preventing matchpathcon from 'write' accesses on the file context.
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:fbcf98e7978ac0b633389c5e396...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-27 09:49 UTC by Mai Ling
Modified: 2019-03-27 11:44 UTC (History)
8 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 Mai Ling 2019-03-27 09:49:24 UTC
Description of problem:
appears by itself after I login
SELinux is preventing matchpathcon from 'write' accesses on the file context.

*****  Plugin setenforce (91.4 confidence) suggests   ************************

If you believe matchpathcon tried to disable SELinux.
Then you may be under attack by a hacker, since confined applications should never need this access.
Do
contact your security administrator and report this issue.

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that matchpathcon should be allowed write access on the context file 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 'matchpathcon' --raw | audit2allow -M my-matchpathcon
# semodule -X 300 -i my-matchpathcon.pp

Additional Information:
Source Context                system_u:system_r:snappy_t:s0
Target Context                system_u:object_r:security_t:s0
Target Objects                context [ file ]
Source                        matchpathcon
Source Path                   matchpathcon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-23.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.0.3-300.fc30.x86_64 #1 SMP Tue
                              Mar 19 15:47:01 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-03-27 12:45:23 EAT
Last Seen                     2019-03-27 12:45:23 EAT
Local ID                      49d72ac5-b817-45ea-935d-010d473bf255

Raw Audit Messages
type=AVC msg=audit(1553679923.808:136): avc:  denied  { write } for  pid=2455 comm="matchpathcon" name="context" dev="selinuxfs" ino=5 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:security_t:s0 tclass=file permissive=1


Hash: matchpathcon,snappy_t,security_t,file,write

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

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


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