Bug 1213062 - SELinux is preventing /usr/bin/python3.4 from 'search' accesses on the directory .local.
Summary: SELinux is preventing /usr/bin/python3.4 from 'search' accesses on the direct...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnssec-trigger
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hozza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:92fb3fa8448406523a35f82d493...
Depends On:
Blocks: 1223110
TreeView+ depends on / blocked
 
Reported: 2015-04-18 11:21 UTC by Lukas Slebodnik
Modified: 2015-07-30 01:12 UTC (History)
15 users (show)

Fixed In Version: dnssec-trigger-0.13-0.1.20150714svn.fc22
Clone Of:
Environment:
Last Closed: 2015-07-30 01:12:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lukas Slebodnik 2015-04-18 11:21:25 UTC
Description of problem:
systemctl start dnssec-triggerd
SELinux is preventing /usr/bin/python3.4 from 'search' accesses on the directory .local.

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

If you believe that python3.4 should be allowed search access on the .local 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:
# grep dnssec-trigger- /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dnssec_trigger_t:s0
Target Context                system_u:object_r:gconf_home_t:s0
Target Objects                .local [ dir ]
Source                        dnssec-trigger-
Source Path                   /usr/bin/python3.4
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python3-3.4.2-4.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-122.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.0-1.fc22.x86_64 #1 SMP Mon Apr
                              13 10:03:33 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-04-18 13:18:15 CEST
Last Seen                     2015-04-18 13:18:15 CEST
Local ID                      cb06ed3e-7631-4cd7-9937-259ee8f70169

Raw Audit Messages
type=AVC msg=audit(1429355895.908:2837): avc:  denied  { search } for  pid=29748 comm="dnssec-trigger-" name=".local" dev="dm-2" ino=2752521 scontext=system_u:system_r:dnssec_trigger_t:s0 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1429355895.908:2837): arch=x86_64 syscall=stat success=no exit=EACCES a0=7fc7d414d3c0 a1=7fff982f0930 a2=7fff982f0930 a3=7fff982f0910 items=0 ppid=29723 pid=29748 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=dnssec-trigger- exe=/usr/bin/python3.4 subj=system_u:system_r:dnssec_trigger_t:s0 key=(null)

Hash: dnssec-trigger-,dnssec_trigger_t,gconf_home_t,dir,search

Version-Release number of selected component:
selinux-policy-3.13.1-122.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.0-1.fc22.x86_64
type:           libreport

Comment 1 Lukas Slebodnik 2015-04-18 11:22:23 UTC
I could not see AVC in permissive mode.

Comment 2 Lukas Slebodnik 2015-04-18 12:06:33 UTC
What does dnssec-triggerd want to do /root/.local?
Could you use different directory? /var/lib/dnssec-trigger/ ...

Comment 3 Miroslav Grepl 2015-04-27 17:06:00 UTC
This is caused by python. The following should be added

-E     Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
the behavior of the interpreter.

- s     Don't add user site directory to sys.path.

Comment 4 Stephen Gallagher 2015-06-22 18:40:40 UTC
Description of problem:
I connected to an openvpn VPN while having dnssec-trigger enabled.

Version-Release number of selected component:
selinux-policy-3.13.1-128.1.fc22.noarch

Additional info:
reporter:       libreport-2.5.1
hashmarkername: setroubleshoot
kernel:         4.0.4-303.fc22.x86_64
type:           libreport

Comment 5 Tomáš Hozza 2015-06-30 07:47:33 UTC
(In reply to Miroslav Grepl from comment #3)
> This is caused by python. The following should be added
> 
> -E     Ignore environment variables like PYTHONPATH and PYTHONHOME that
> modify
> the behavior of the interpreter.
> 
> - s     Don't add user site directory to sys.path.

Thank you for the clue.

Comment 6 Stephen Gallagher 2015-07-02 13:05:29 UTC
Description of problem:
I connected to a VPN while having dnssec-trigger enabled

Version-Release number of selected component:
selinux-policy-3.13.1-128.2.fc22.noarch

Additional info:
reporter:       libreport-2.6.0
hashmarkername: setroubleshoot
kernel:         4.0.6-300.fc22.x86_64
type:           libreport

Comment 7 Dominik 'Rathann' Mierzejewski 2015-07-07 16:51:21 UTC
Description of problem:
I connected to a local wifi network.

Version-Release number of selected component:
selinux-policy-3.13.1-128.4.fc22.noarch

Additional info:
reporter:       libreport-2.6.0
hashmarkername: setroubleshoot
kernel:         4.0.6-300.fc22.x86_64
type:           libreport

Comment 8 Fedora Update System 2015-07-15 13:01:08 UTC
dnssec-trigger-0.13-0.1.20150714svn.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dnssec-trigger-0.13-0.1.20150714svn.fc22

Comment 9 Fedora Update System 2015-07-18 02:06:25 UTC
Package dnssec-trigger-0.13-0.1.20150714svn.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnssec-trigger-0.13-0.1.20150714svn.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-11754/dnssec-trigger-0.13-0.1.20150714svn.fc22
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2015-07-30 01:12:43 UTC
dnssec-trigger-0.13-0.1.20150714svn.fc22 has been pushed to the Fedora 22 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.