Bug 833334 - SELinux is preventing /usr/bin/brprintconf_mfcj220 from 'write' accesses on the directory /opt/brother/Printers/mfcj220/inf.
SELinux is preventing /usr/bin/brprintconf_mfcj220 from 'write' accesses on t...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:396e0c4a82feb8bad15bfc95d67...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-19 05:05 EDT by Riccardo Angelino
Modified: 2012-06-19 05:08 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-19 05:08:52 EDT
Type: ---
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 Riccardo Angelino 2012-06-19 05:05:19 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.0-1.fc17.x86_64
time:           mar 19 giu 2012 11:04:48 CEST

description:
:SELinux is preventing /usr/bin/brprintconf_mfcj220 from 'write' accesses on the directory /opt/brother/Printers/mfcj220/inf.
:
:*****  Plugin catchall_labels (83.8 confidence) suggests  ********************
:
:If you want to allow brprintconf_mfcj220 to have write access on the inf directory
:Then e' necessario modificare l'etichetta su /opt/brother/Printers/mfcj220/inf
:Do
:# semanage fcontext -a -t TIPO_FILE '/opt/brother/Printers/mfcj220/inf'
:dove TIPO_FILE è uno dei seguenti: print_spool_t, cupsd_interface_t, var_lock_t, tmp_t, var_t, cupsd_rw_etc_t, cupsd_etc_t, cupsd_log_t, cupsd_tmp_t, var_log_t, var_run_t, cupsd_var_run_t, pcscd_var_run_t, krb5_host_rcache_t, tmp_t, root_t. 
:Quindi eseguire: 
:restorecon -v '/opt/brother/Printers/mfcj220/inf'
:
:
:*****  Plugin catchall (17.1 confidence) suggests  ***************************
:
:If si crede che brprintconf_mfcj220 dovrebbe avere possibilità di accesso write sui inf directory in modo predefinito.
:Then si dovrebbe riportare il problema come bug.
:E' possibile generare un modulo di politica locale per consentire questo accesso.
:Do
:consentire questo accesso per il momento eseguendo:
:# grep brprintconf_mfc /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:object_r:usr_t:s0
:Target Objects                /opt/brother/Printers/mfcj220/inf [ dir ]
:Source                        brprintconf_mfc
:Source Path                   /usr/bin/brprintconf_mfcj220
:Port                          <Sconosciuto>
:Host                          (removed)
:Source RPM Packages           mfcj220lpr-1.1.3-1.i386
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-130.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.0-1.fc17.x86_64 #1 SMP
:                              Sun Jun 3 06:35:17 UTC 2012 x86_64 x86_64
:Alert Count                   19
:First Seen                    mar 19 giu 2012 10:52:28 CEST
:Last Seen                     mar 19 giu 2012 10:52:28 CEST
:Local ID                      8fa95372-bf99-44a5-baa8-44e8f499cd8f
:
:Raw Audit Messages
:type=AVC msg=audit(1340095948.383:103): avc:  denied  { write } for  pid=24886 comm="brprintconf_mfc" name="inf" dev="sda3" ino=1313389 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usr_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1340095948.383:103): arch=i386 syscall=setitimer per=400000 success=no exit=EACCES a0=ffbdd970 a1=ffbdd560 a2=804a4e0 a3=ffbdd970 items=0 ppid=24865 pid=24886 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=brprintconf_mfc exe=/usr/bin/brprintconf_mfcj220 subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: brprintconf_mfc,cupsd_t,usr_t,dir,write
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:
Comment 1 Miroslav Grepl 2012-06-19 05:08:52 EDT
The alert tells you what to do.

restorecon -v '/opt/brother/Printers/mfcj220/inf'

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