Bug 1249380 - SELinux is preventing pstocanonij from using the execmem access on a process.
SELinux is preventing pstocanonij from using the execmem access on a process.
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
22
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-02 03:59 EDT by srakitnican
Modified: 2015-08-13 08:44 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-13 08:44:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description srakitnican 2015-08-02 03:59:17 EDT
Description of problem:

SElinux is preventing Canon iP1800 from printing documents with message:

SELinux is preventing pstocanonij from using the execmem access on a process.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow cups to execmem
Then you must tell SELinux about this by enabling the 'cups_execmem' boolean.
You can read 'None' man page for more details.
Do
setsebool -P cups_execmem 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that pstocanonij should be allowed execmem access on processes labeled cupsd_t 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 pstocanonij /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
Target Objects                Unknown [ process ]
Source                        pstocanonij
Source Path                   pstocanonij
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.6.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.2-200.fc22.x86_64 #1 SMP Wed
                              Jul 15 20:12:12 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-08-02 09:44:08 CEST
Last Seen                     2015-08-02 09:44:08 CEST
Local ID                      01edca8c-fc13-47f8-bd59-fdf2c5aeebb5

Raw Audit Messages
type=AVC msg=audit(1438501448.135:589): avc:  denied  { execmem } for  pid=2823 comm="pstocanonij" scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tclass=process permissive=0


Hash: pstocanonij,cupsd_t,cupsd_t,process,execmem



Version-Release number of selected component (if applicable):
$ rpm -qa | grep selinux
selinux-policy-3.13.1-128.8.fc22.noarch
rpm-plugin-selinux-4.12.0.1-12.fc22.x86_64
selinux-policy-targeted-3.13.1-128.8.fc22.noarch
libselinux-2.3-10.fc22.i686
libselinux-2.3-10.fc22.x86_64
libselinux-python-2.3-10.fc22.x86_64
libselinux-utils-2.3-10.fc22.x86_64

How reproducible: Always

Steps to Reproduce:
1. Print any document
2.
3.

Actual results: Printing blocked with avc denial message


Expected results: Printing proceeds without blocking


Additional info:
Comment 1 Lukas Vrabec 2015-08-13 08:44:57 EDT
*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow cups to execmem
Then you must tell SELinux about this by enabling the 'cups_execmem' boolean.
You can read 'None' man page for more details.
Do
setsebool -P cups_execmem 1

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