Bug 1196608 - SELinux is preventing udev-add-printe from 'execute' accesses on the file /usr/sbin/ldconfig.
Summary: SELinux is preventing udev-add-printe from 'execute' accesses on the file /us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a45ad47295760449d278cc7fd50...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-26 11:19 UTC by 123
Modified: 2015-03-23 15:50 UTC (History)
12 users (show)

Fixed In Version: selinux-policy-3.13.1-105.6.fc21
Clone Of:
Environment:
Last Closed: 2015-03-21 04:50:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description 123 2015-02-26 11:19:39 UTC
Description of problem:
SELinux is preventing udev-add-printe from 'execute' accesses on the file /usr/sbin/ldconfig.

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

If вы считаете, что udev-add-printe следует разрешить доступ execute к ldconfig file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep udev-add-printe /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:cupsd_config_t:s0
Target Context                system_u:object_r:ldconfig_exec_t:s0
Target Objects                /usr/sbin/ldconfig [ file ]
Source                        udev-add-printe
Source Path                   udev-add-printe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           glibc-2.20-7.fc21.x86_64
Policy RPM                    selinux-policy-3.13.1-105.3.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              3.18.7-200.hu.1.uksm.bfs.bfq.fc21.x86_64 #1 SMP
                              Sun Feb 15 20:57:22 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-02-26 14:17:38 MSK
Last Seen                     2015-02-26 14:17:38 MSK
Local ID                      5e639e2a-89d7-4e5a-9e27-058d37ec29bd

Raw Audit Messages
type=AVC msg=audit(1424949458.559:1685): avc:  denied  { execute } for  pid=22144 comm="udev-add-printe" name="ldconfig" dev="sda5" ino=927768 scontext=system_u:system_r:cupsd_config_t:s0 tcontext=system_u:object_r:ldconfig_exec_t:s0 tclass=file permissive=0


Hash: udev-add-printe,cupsd_config_t,ldconfig_exec_t,file,execute

Version-Release number of selected component:
selinux-policy-3.13.1-105.3.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.7-200.hu.1.uksm.bfs.bfq.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-02-27 11:45:15 UTC
commit f0f0e6afd2fcf2536e5d959eb0ae0d1c03cc7299
Author: Lukas Vrabec <lvrabec>
Date:   Fri Feb 27 12:44:13 2015 +0100

    Allow cupsd config to execute ldconfig. BZ(1196608)

Comment 2 Gianluca Sforna 2015-03-02 10:51:32 UTC
Description of problem:
Plugged in an HP Deskjet printer

Version-Release number of selected component:
selinux-policy-3.13.1-105.3.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.7-200.fc21.x86_64
type:           libreport

Comment 3 Lukas Vrabec 2015-03-02 10:57:53 UTC
Please, check this: Fixed In Version: selinux-policy-3.13.1-105.6.fc21
In comment 1.

Comment 4 Gianluca Sforna 2015-03-02 11:32:10 UTC
Apparently, updates-testing has only -105.5, I'll test and add karma once it hits the repo.

Comment 5 Fedora Update System 2015-03-06 22:28:08 UTC
selinux-policy-3.13.1-105.6.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.6.fc21

Comment 6 Yi Chu 2015-03-08 01:20:34 UTC
Description of problem:
when connecting canon MF3110 printer, the alert showed up

Version-Release number of selected component:
selinux-policy-3.13.1-105.3.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.7-200.fc21.i686+PAE
type:           libreport

Comment 7 Fedora Update System 2015-03-09 08:33:50 UTC
Package selinux-policy-3.13.1-105.6.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.6.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-3476/selinux-policy-3.13.1-105.6.fc21
then log in and leave karma (feedback).

Comment 8 Tushar Kant 2015-03-12 10:46:29 UTC
Description of problem:
Automatic configuration of new printer causes SELINUX issues.

Version-Release number of selected component:
selinux-policy-3.13.1-105.3.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.8-201.fc21.x86_64
type:           libreport

Comment 9 Fedora Update System 2015-03-21 04:50:09 UTC
selinux-policy-3.13.1-105.6.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 tuxor 2015-03-21 10:56:47 UTC
Description of problem:
Plug in (new) printer

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.9-200.fc21.x86_64
type:           libreport

Comment 11 sheepdestroyer 2015-03-23 15:50:58 UTC
Description of problem:
pluged scanner in usb port

Version-Release number of selected component:
selinux-policy-3.13.1-105.3.fc21.noarch
selinux-policy-3.13.1-105.6.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.9-200.fc21.x86_64
type:           libreport


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