Bug 1471320 - SELinux is preventing cjdroute from 'search' accesses on the directory /var/lib/sss.
SELinux is preventing cjdroute from 'search' accesses on the directory /var/l...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:ae8522cdb29954dd89aaedb34c5...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-14 21:48 EDT by Ildar Akhmetgaleev
Modified: 2017-09-14 19:05 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ildar Akhmetgaleev 2017-07-14 21:48:43 EDT
Description of problem:
It happend after upgrade to Fedora 26 with installed cjdns.
Pehaps it happend after suspend/resume, not sure.
SELinux is preventing cjdroute from 'search' accesses on the directory /var/lib/sss.

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

If you believe that cjdroute should be allowed search access on the sss directory 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 'cjdroute' --raw | audit2allow -M my-cjdroute
# semodule -X 300 -i my-cjdroute.pp

Additional Information:
Source Context                system_u:system_r:cjdns_t:s0
Target Context                system_u:object_r:sssd_var_lib_t:s0
Target Objects                /var/lib/sss [ dir ]
Source                        cjdroute
Source Path                   cjdroute
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   32
First Seen                    2017-07-14 13:37:36 +07
Last Seen                     2017-07-15 06:02:35 +07
Local ID                      3a358f6c-9f68-4ffb-bae5-fc4e75fee713

Raw Audit Messages
type=AVC msg=audit(1500073355.671:994): avc:  denied  { search } for  pid=26767 comm="cjdroute" name="sss" dev="dm-1" ino=143600 scontext=system_u:system_r:cjdns_t:s0 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=dir permissive=0


Hash: cjdroute,cjdns_t,sssd_var_lib_t,dir,search


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.9-300.fc26.x86_64
type:           libreport
Comment 1 Ildar Akhmetgaleev 2017-07-15 21:03:22 EDT
Also requires access to sssd_public_t

SELinux is preventing cjdroute from 'search' accesses on the directory /var/lib/sss/mc.

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

If you believe that cjdroute should be allowed search access on the mc directory 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 'cjdroute' --raw | audit2allow -M my-cjdroute
# semodule -X 300 -i my-cjdroute.pp

Additional Information:
Source Context                system_u:system_r:cjdns_t:s0
Target Context                system_u:object_r:sssd_public_t:s0
Target Objects                /var/lib/sss/mc [ dir ]
Source                        cjdroute
Source Path                   cjdroute
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   20
First Seen                    2017-07-15 14:29:27 +07
Last Seen                     2017-07-16 07:06:42 +07
Local ID                      7e2f5161-f7eb-40fe-991c-0fef515a04e7

Raw Audit Messages
type=AVC msg=audit(1500163602.746:732): avc:  denied  { search } for  pid=12720 comm="cjdroute" name="mc" dev="dm-0" ino=147913 scontext=system_u:system_r:cjdns_t:s0 tcontext=system_u:object_r:sssd_public_t:s0 tclass=dir permissive=0


Hash: cjdroute,cjdns_t,sssd_public_t,dir,search
Comment 2 Stuart D Gathman 2017-09-14 19:05:56 EDT
Description of problem:
Happens at startup.   cjdroute still seems to run ok.  If access does not serve a useful purpose, we should continue to block it but with a non-reporting rule.

Version-Release number of selected component:
selinux-policy-3.13.1-260.8.fc26.noarch

Additional info:
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.12.11-300.fc26.x86_64
type:           libreport

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