libreport version: 2.0.10 executable: /usr/bin/python2.7 hashmarkername: setroubleshoot kernel: 3.4.6-2.fc17.x86_64 time: Mo 30 Jul 2012 17:21:49 CEST description: :SELinux is preventing /usr/libexec/colord-sane from 'read' accesses on the file interpreter. : :***** Plugin catchall_labels (83.8 confidence) suggests ******************** : :If you want to allow colord-sane to have read access on the interpreter file :Then sie müssen das Label auf interpreter ändern :Do :# semanage fcontext -a -t FILE_TYPE 'interpreter' :wobei FILE_TYPE einer der folgenen Werte ist: noxattrfs, colord_t, locale_t, etc_t, bin_t, cert_t, proc_t, sysfs_t, ifconfig_exec_t, usr_t, user_cron_spool_t, system_cronjob_var_lib_t, samba_var_t, policykit_var_lib_t, cupsd_rw_etc_t, abrt_t, samba_etc_t, ld_so_t, cupsd_etc_t, lib_t, user_tmpfs_t, net_conf_t, cpu_online_t, afs_cache_t, abrt_helper_exec_t, shell_exec_t, colord_tmpfs_t, dbusd_etc_t, userdomain, sysctl_dev_t, textrel_shlib_t, data_home_t, icc_data_home_t, rpm_script_tmp_t, proc_net_t, hplip_etc_t, policykit_reload_t, ld_so_cache_t, colord_exec_t, colord_var_lib_t, etc_t, cert_t, xdm_var_lib_t, udev_var_run_t, machineid_t, net_conf_t, sssd_public_t, abrt_var_run_t, puppet_tmp_t, system_dbusd_var_lib_t, colord_tmp_t, fail2ban_var_lib_t, policykit_auth_exec_t, sysctl_crypto_t, passwd_file_t, krb5_conf_t, zoneminder_tmpfs_t, root_t. :Führen Sie danach Folgendes aus: :restorecon -v 'interpreter' : : :***** Plugin catchall (17.1 confidence) suggests *************************** : :If sie denken, dass colord-sane standardmässig erlaubt sein sollte, read Zugriff auf interpreter file zu erhalten. :Then sie sollten dies als Fehler melden. :Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen. :Do :zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen: :# grep colord-sane /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:colord_t:s0 :Target Context system_u:object_r:var_lib_t:s0 :Target Objects interpreter [ file ] :Source colord-sane :Source Path /usr/libexec/colord-sane :Port <Unbekannt> :Host (removed) :Source RPM Packages colord-0.1.21-1.fc17.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-140.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.4.6-2.fc17.x86_64 #1 : SMP Thu Jul 19 22:54:16 UTC 2012 x86_64 x86_64 :Alert Count 4 :First Seen So 29 Jul 2012 20:59:04 CEST :Last Seen Mo 30 Jul 2012 17:21:31 CEST :Local ID 5d791f98-3cca-4e29-899d-75d7dd84b951 : :Raw Audit Messages :type=AVC msg=audit(1343661691.854:89): avc: denied { read } for pid=1424 comm="colord-sane" name="interpreter" dev="dm-1" ino=88736293 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file : : :type=SYSCALL msg=audit(1343661691.854:89): arch=x86_64 syscall=open success=no exit=EACCES a0=7fff603e1560 a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=1424 auid=4294967295 uid=996 gid=995 euid=996 suid=996 fsuid=996 egid=995 sgid=995 fsgid=995 tty=(none) ses=4294967295 comm=colord-sane exe=/usr/libexec/colord-sane subj=system_u:system_r:colord_t:s0 key=(null) : :Hash: colord-sane,colord_t,var_lib_t,file,read : :audit2allowunable to open /sys/fs/selinux/policy: Permission denied : : :audit2allow -Runable to open /sys/fs/selinux/policy: Permission denied : :
I thought we dropped colord-sane?
(In reply to comment #1) > I thought we dropped colord-sane? No, I'm waiting for the new sane-backends so I can just use udev. Hopefully soon.
Frank, could you execute # semanage permissive -a colord_t re-test it and attach your output of # ausearch -m avc -ts recent Thank you.
Here the output: ausearch -m avc -ts recent system_r:colord_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file [root@bart ~]# ausearch -m avc -ts recent ---- time->Tue Sep 11 17:30:23 2012 type=SYSCALL msg=audit(1347377423.292:131): arch=c000003e syscall=2 success=yes exit=8 a0=7fff63d5b390 a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=3231 auid=4294967295 uid=996 gid=995 euid=996 suid=996 fsuid=996 egid=995 sgid=995 fsgid=995 tty=(none) ses=4294967295 comm="colord-sane" exe="/usr/libexec/colord-sane" subj=system_u:system_r:colord_t:s0 key=(null) type=AVC msg=audit(1347377423.292:131): avc: denied { open } for pid=3231 comm="colord-sane" path="/var/lib/iscan/interpreter" dev="dm-1" ino=88736293 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file type=AVC msg=audit(1347377423.292:131): avc: denied { read } for pid=3231 comm="colord-sane" name="interpreter" dev="dm-1" ino=88736293 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file ---- time->Tue Sep 11 17:30:23 2012 type=SYSCALL msg=audit(1347377423.292:132): arch=c000003e syscall=5 success=yes exit=0 a0=8 a1=7fff63d5c220 a2=7fff63d5c220 a3=78 items=0 ppid=1 pid=3231 auid=4294967295 uid=996 gid=995 euid=996 suid=996 fsuid=996 egid=995 sgid=995 fsgid=995 tty=(none) ses=4294967295 comm="colord-sane" exe="/usr/libexec/colord-sane" subj=system_u:system_r:colord_t:s0 key=(null) type=AVC msg=audit(1347377423.292:132): avc: denied { getattr } for pid=3231 comm="colord-sane" path="/var/lib/iscan/interpreter" dev="dm-1" ino=88736293 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file
The SELinux error icon appears after a restart. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
*** Bug 879689 has been marked as a duplicate of this bug. ***
On F18 this file should have this label. matchpathcon /var/lib/iscan/interprete /var/lib/iscan/interprete system_u:object_r:cupsd_rw_etc_t:s0 And colord is allowed to read it.