Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1500538 - SELinux is preventing tor from 'map' accesses on the file /var/lib/tor/cached-microdescs.
Summary: SELinux is preventing tor from 'map' accesses on the file /var/lib/tor/cached...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7e8416947b23e499c1b8839a16e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-10 21:37 UTC by Ed Marshall
Modified: 2017-10-31 15:36 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-283.14.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-31 15:36:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ed Marshall 2017-10-10 21:37:01 UTC
Description of problem:
SELinux is preventing tor from 'map' accesses on the file /var/lib/tor/cached-microdescs.

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

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

Additional Information:
Source Context                system_u:system_r:tor_t:s0
Target Context                system_u:object_r:tor_var_lib_t:s0
Target Objects                /var/lib/tor/cached-microdescs [ file ]
Source                        tor
Source Path                   tor
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.13.4-300.fc27.x86_64 #1 SMP Thu
                              Sep 28 17:02:21 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-10-10 14:30:05 PDT
Last Seen                     2017-10-10 14:30:05 PDT
Local ID                      3519a751-cbb0-4bd1-97af-0420485e0a9a

Raw Audit Messages
type=AVC msg=audit(1507671005.57:276): avc:  denied  { map } for  pid=1108 comm="tor" path="/var/lib/tor/cached-microdescs" dev="dm-1" ino=1704031 scontext=system_u:system_r:tor_t:s0 tcontext=system_u:object_r:tor_var_lib_t:s0 tclass=file permissive=0


Hash: tor,tor_t,tor_var_lib_t,file,map


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.4-300.fc27.x86_64
type:           libreport

Comment 1 Hedayat Vatankhah 2017-10-20 20:32:26 UTC
Description of problem:
Tried to start tor

Version-Release number of selected component:
selinux-policy-3.13.1-283.10.fc27.noarch

Additional info:
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.6-300.fc27.x86_64
type:           libreport

Comment 2 Fedora Update System 2017-10-25 10:14:34 UTC
selinux-policy-3.13.1-283.13.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b5e9ce60d2

Comment 3 Fedora Update System 2017-10-27 18:46:32 UTC
selinux-policy-3.13.1-283.14.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b5e9ce60d2

Comment 4 Fedora Update System 2017-10-31 15:36:53 UTC
selinux-policy-3.13.1-283.14.fc27 has been pushed to the Fedora 27 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.