Bug 1087421 - SELinux is preventing /usr/sbin/aiccu from 'search' accesses on the directory .
Summary: SELinux is preventing /usr/sbin/aiccu from 'search' accesses on the directory .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:36359fdc52f4a21bfb6499d9042...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-14 10:18 UTC by Laurent Rineau
Modified: 2014-05-01 22:29 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-158.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-01 22:29:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Laurent Rineau 2014-04-14 10:18:05 UTC
Description of problem:
I did:
  sudo systemctl restart aiccu.service
and then I got the report from the SELinux TroubleShoot widget.
SELinux is preventing /usr/sbin/aiccu from 'search' accesses on the directory .

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

If you believe that aiccu should be allowed search access on the  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 aiccu /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:aiccu_t:s0
Target Context                system_u:object_r:pcscd_var_run_t:s0
Target Objects                 [ dir ]
Source                        aiccu
Source Path                   /usr/sbin/aiccu
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           aiccu-2007.01.15-17.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-149.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.9-200.fc20.x86_64 #1 SMP Fri
                              Apr 4 12:13:05 UTC 2014 x86_64 x86_64
Alert Count                   4
First Seen                    2014-04-09 19:16:47 CEST
Last Seen                     2014-04-14 12:15:37 CEST
Local ID                      580141fe-51eb-4d8d-8040-280db9b44e3a

Raw Audit Messages
type=AVC msg=audit(1397470537.807:40124): avc:  denied  { search } for  pid=59878 comm="aiccu" name="pcscd" dev="tmpfs" ino=21528 scontext=system_u:system_r:aiccu_t:s0 tcontext=system_u:object_r:pcscd_var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1397470537.807:40124): arch=x86_64 syscall=stat success=no exit=EACCES a0=3bf020ae60 a1=7fffa19eacc0 a2=7fffa19eacc0 a3=7fffa19eaa70 items=0 ppid=1 pid=59878 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=aiccu exe=/usr/sbin/aiccu subj=system_u:system_r:aiccu_t:s0 key=(null)

Hash: aiccu,aiccu_t,pcscd_var_run_t,dir,search

Additional info:
reporter:       libreport-2.2.1
hashmarkername: setroubleshoot
kernel:         3.13.9-200.fc20.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-04-14 10:34:22 UTC
commit 90445ccae7dcb32e19ececf63a834c84ac785605
Author: Lukas Vrabec <lvrabec>
Date:   Mon Apr 14 12:32:18 2014 +0200

    Allow aiccu stream connect to pcscd

Comment 2 Fedora Update System 2014-04-25 12:43:30 UTC
selinux-policy-3.12.1-158.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-158.fc20

Comment 3 Fedora Update System 2014-04-26 09:24:09 UTC
Package selinux-policy-3.12.1-158.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-158.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-5660/selinux-policy-3.12.1-158.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-05-01 22:29:05 UTC
selinux-policy-3.12.1-158.fc20 has been pushed to the Fedora 20 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.