Bug 1374668 - SELinux is preventing (tor) from 'mounton' accesses on the directory /var/lib/tor.
Summary: SELinux is preventing (tor) from 'mounton' accesses on the directory /var/lib...
Keywords:
Status: CLOSED DUPLICATE of bug 1357395
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ea422aa465b361b7c1a41cc1811...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-09 11:27 UTC by Biji
Modified: 2016-09-25 10:47 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-25 10:47:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Biji 2016-09-09 11:27:13 UTC
Description of problem:
Tor can not run because selinux policy for path /run/tor and /var/lib/tor
SELinux is preventing (tor) from 'mounton' accesses on the directory /var/lib/tor.

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

If you believe that (tor) should be allowed mounton access on the tor 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 '(tor)' --raw | audit2allow -M my-tor
# semodule -X 300 -i my-tor.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:tor_var_lib_t:s0
Target Objects                /var/lib/tor [ dir ]
Source                        (tor)
Source Path                   (tor)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           tor-0.2.8.7-1.fc24.x86_64
Policy RPM                    selinux-policy-3.13.1-191.14.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.7.2-201.fc24.x86_64 #1 SMP Fri
                              Aug 26 15:58:40 UTC 2016 x86_64 x86_64
Alert Count                   10
First Seen                    2016-09-09 18:21:16 WIB
Last Seen                     2016-09-09 18:21:22 WIB
Local ID                      701e229a-3838-435b-8549-312f60a3371f

Raw Audit Messages
type=AVC msg=audit(1473420082.61:465): avc:  denied  { mounton } for  pid=31513 comm="(tor)" path="/var/lib/tor" dev="dm-0" ino=3278498 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:tor_var_lib_t:s0 tclass=dir permissive=0


Hash: (tor),init_t,tor_var_lib_t,dir,mounton

Version-Release number of selected component:
selinux-policy-3.13.1-191.14.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.2-201.fc24.x86_64
type:           libreport

Comment 1 Efs 2016-09-11 08:11:28 UTC
Description of problem:
Hi,
When i am starting Tor Browser Launcher, Pop-up Tor Browser Launcher Settings, and then click Install tor browser.
It give error pop-up like that (Error connecting to Tor at tcp:127.0.0.1:9050)

Version-Release number of selected component:
selinux-policy-3.13.1-191.13.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.2-201.fc24.x86_64
type:           libreport

Comment 2 Michael S. 2016-09-25 10:47:56 UTC

*** This bug has been marked as a duplicate of bug 1357395 ***


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