Bug 1176848 - SELinux is preventing cannaserver from 'read' accesses on the file /etc/passwd.
Summary: SELinux is preventing cannaserver from 'read' accesses on the file /etc/passwd.
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:6ba8e2bc2a947729841deac1bac...
Depends On:
TreeView+ depends on / blocked
Reported: 2014-12-23 13:51 UTC by ItSANgo
Modified: 2015-01-30 23:55 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-105.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-01-30 23:55:08 UTC
Type: ---

Attachments (Terms of Use)

Description ItSANgo 2014-12-23 13:51:45 UTC
Description of problem:
I found this issue in these steps.
1) sudo dnf install Canna
2) sudo systemctl start canna.service
3) sudo cannakill
SELinux is preventing cannaserver from 'read' accesses on the file /etc/passwd.

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

If cannaserver に、 passwd file の read アクセスがデフォルトで許可されるべきです。   
Then バグとして報告してください。 
# grep cannaserver /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:canna_t:s0
Target Context                system_u:object_r:passwd_file_t:s0
Target Objects                /etc/passwd [ file ]
Source                        cannaserver
Source Path                   cannaserver
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           setup-2.9.0-2.fc21.noarch
Policy RPM                    selinux-policy-3.13.1-103.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.17.7-300.fc21.x86_64 #1 SMP Wed
                              Dec 17 03:08:44 UTC 2014 x86_64 x86_64
Alert Count                   3
First Seen                    2014-12-23 22:22:32 JST
Last Seen                     2014-12-23 22:29:35 JST
Local ID                      05bd30ef-540e-4182-93b5-6f7469c58a9f

Raw Audit Messages
type=AVC msg=audit(1419341375.741:569): avc:  denied  { read } for  pid=3750 comm="cannaserver" name="passwd" dev="dm-0" ino=402545 scontext=system_u:system_r:canna_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file permissive=0

Hash: cannaserver,canna_t,passwd_file_t,file,read

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.7-300.fc21.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-12-23 19:16:57 UTC
0e04862307f792862bf78790cbddde62741c4848 fixes this in git.

Comment 2 Lukas Vrabec 2015-01-15 14:34:39 UTC
commit 37649a409cf3d85a7a9e03eb16ac7faf1ca3de5b
Author: Dan Walsh <dwalsh@redhat.com>
Date:   Tue Dec 23 14:15:36 2014 -0500

    Allow canna go call getpw*

Comment 3 Fedora Update System 2015-01-27 16:49:45 UTC
selinux-policy-3.13.1-105.fc21 has been submitted as an update for Fedora 21.

Comment 4 Fedora Update System 2015-01-30 04:32:40 UTC
Package selinux-policy-3.13.1-105.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-01-30 23:55:08 UTC
selinux-policy-3.13.1-105.fc21 has been pushed to the Fedora 21 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.