Description of problem: I tried to setup a new printer. Additional info: libreport version: 2.0.18 kernel: 3.6.8-2.fc17.x86_64 description: :SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file hplip.state. : :***** Plugin catchall_labels (83.8 confidence) suggests ******************** : :If you want to allow python2.7 to have read access on the hplip.state file :Then you need to change the label on hplip.state :Do :# semanage fcontext -a -t FILE_TYPE 'hplip.state' :where FILE_TYPE is one of the following: rpm_script_tmp_t, ld_so_cache_t, cupsd_unit_file_t, locale_t, machineid_t, etc_t, bin_t, proc_t, sysfs_t, hplip_t, usbfs_t, abrt_var_run_t, usr_t, initrc_tmp_t, user_cron_spool_t, cupsd_rw_etc_t, cupsd_etc_t, cupsd_tmp_t, sysctl_crypto_t, passwd_file_t, printconf_t, dbusd_etc_t, hplip_etc_t, ld_so_t, abrt_t, lib_t, etc_runtime_t, hplip_var_lib_t, hplip_var_run_t, cpu_online_t, snmpd_var_lib_t, hplip_var_log_t, afs_cache_t, udev_var_run_t, abrt_helper_exec_t, net_conf_t, print_spool_t, tmpfile, anon_inodefs_t, sysctl_kernel_t, puppet_tmp_t, hplip_exec_t, fail2ban_var_lib_t, system_dbusd_var_lib_t, textrel_shlib_t, root_t. :Then execute: :restorecon -v 'hplip.state' : : :***** Plugin catchall (17.1 confidence) suggests *************************** : :If you believe that python2.7 should be allowed read access on the hplip.state file 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 python /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:hplip_t:s0-s0:c0.c1023 :Target Context unconfined_u:object_r:var_lib_t:s0 :Target Objects hplip.state [ file ] :Source python :Source Path /usr/bin/python2.7 :Port <Unknown> :Host (removed) :Source RPM Packages python-2.7.3-7.2.fc17.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-161.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.8-2.fc17.x86_64 #1 SMP Tue Nov : 27 19:35:02 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-12-01 15:59:43 CET :Last Seen 2012-12-01 15:59:43 CET :Local ID 4b61ad6d-4138-42d3-8eb0-a47dd8b6fb14 : :Raw Audit Messages :type=AVC msg=audit(1354373983.887:693): avc: denied { read } for pid=13976 comm="python" name="hplip.state" dev="dm-1" ino=525818 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file : : :type=SYSCALL msg=audit(1354373983.887:693): arch=x86_64 syscall=open success=no exit=EACCES a0=1dde300 a1=0 a2=1b6 a3=238 items=0 ppid=13969 pid=13976 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=python exe=/usr/bin/python2.7 subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null) : :Hash: python,hplip_t,var_lib_t,file,read : :audit2allow : :#============= hplip_t ============== :allow hplip_t var_lib_t:file read; : :audit2allow -R : :#============= hplip_t ============== :allow hplip_t var_lib_t:file read; :
Created attachment 655611 [details] File: type
Created attachment 655612 [details] File: hashmarkername
You will need to fix labeling. # restorecon -R -v /var/lib/hp