Bug 1258238 - SELinux is preventing /opt/brother/Printers/dcpj552dw/cupswrapper/brcupsconfpt1 from using the 'execmem' accesses on a process.
Summary: SELinux is preventing /opt/brother/Printers/dcpj552dw/cupswrapper/brcupsconfp...
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e4c7adf72bd18f54a54f952d7e9...
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-30 13:25 UTC by Dimar van Rietchoten
Modified: 2015-10-11 02:08 UTC (History)
8 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2015-08-31 12:04:56 UTC


Attachments (Terms of Use)

Description Dimar van Rietchoten 2015-08-30 13:25:25 UTC
Description of problem:
Printing from libreoffice to a (USB connected) cups printer
SELinux is preventing /opt/brother/Printers/dcpj552dw/cupswrapper/brcupsconfpt1 from using the 'execmem' accesses 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 brcupsconfpt1 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 brcupsconfpt1 /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                        brcupsconfpt1
Source Path                   /opt/brother/Printers/dcpj552dw/cupswrapper/brcups
                              confpt1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dcpj552dwlpr-3.0.0-1.i386
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.12.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.6-200.fc22.x86_64 #1 SMP Mon
                              Aug 17 19:54:31 UTC 2015 x86_64 x86_64
Alert Count                   8
First Seen                    2015-08-30 15:04:19 CEST
Last Seen                     2015-08-30 15:14:16 CEST
Local ID                      a1fac2bd-0192-4e80-a64a-a8aced16fa90

Raw Audit Messages
type=AVC msg=audit(1440940456.917:526): avc:  denied  { execmem } for  pid=3070 comm="brdcpj552dwfilt" 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


type=SYSCALL msg=audit(1440940456.917:526): arch=x86_64 syscall=execve per=400000 success=no exit=EACCES a0=562d16294f20 a1=562d162936c0 a2=562d162952f0 a3=8 items=0 ppid=3056 pid=3070 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=brdcpj552dwfilt exe=/opt/brother/Printers/dcpj552dw/lpd/brdcpj552dwfilter subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: brcupsconfpt1,cupsd_t,cupsd_t,process,execmem

Version-Release number of selected component:
selinux-policy-3.13.1-128.12.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.6-200.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-08-31 12:04:56 UTC
*****  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

Comment 2 Yajo 2015-09-07 15:30:45 UTC
Description of problem:
Trying to print an image from eog.

Version-Release number of selected component:
selinux-policy-3.13.1-128.12.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.6-200.fc22.x86_64
type:           libreport

Comment 3 Lukas Vrabec 2015-09-07 15:36:03 UTC
Yajo, please read comment 1. 
Thank you.

Comment 4 Yajo 2015-09-08 11:40:02 UTC
Sorry, it was ABRT. Thanks.

Comment 5 Donwiffen 2015-10-05 03:08:47 UTC
Description of problem:
Initial installation of RPM packages from Brother allowed the printer to print.  Updates to selinux in the last 6 - 8 weeks(?) result in selinux stopping CUPS from printing a test page from CUPs administration (localhost:631)

Version-Release number of selected component:
selinux-policy-3.13.1-128.13.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.8-200.fc22.i686+PAE
type:           libreport

Comment 6 mark.j.kropf 2015-10-11 02:08:42 UTC
Description of problem:
Only needed to runSELinux Troubleshooter and was there.

Version-Release number of selected component:
selinux-policy-3.13.1-128.10.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.10-200.fc22.x86_64
type:           libreport


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