Sommario: SELinux is preventing python (hplip_t) "getattr" to /var/lib/hp/hplip.state (var_lib_t). Descrizione dettagliata: [SELinux è in modalità permissiva. Questo accesso non è stato negato.] SELinux denied access requested by python. /var/lib/hp/hplip.state may be a mislabeled. /var/lib/hp/hplip.state default SELinux type is hplip_var_lib_t, but its current type is var_lib_t. Changing this file back to the default type, may fix your problem. File contexts can be assigned to a file in the following ways. * Files created in a directory receive the file context of the parent directory by default. * The SELinux policy might override the default label inherited from the parent directory by specifying a process running in context A which creates a file in a directory labeled B will instead create the file with label C. An example of this would be the dhcp client running with the dhclient_t type and creates a file in the directory /etc. This file would normally receive the etc_t type due to parental inheritance but instead the file is labeled with the net_conf_t type because the SELinux policy specifies this. * Users can change the file context on a file using tools such as chcon, or restorecon. This file could have been mislabeled either by user error, or if an normally confined application was run under the wrong domain. However, this might also indicate a bug in SELinux because the file should not have been labeled with this type. If you believe this is a bug, please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package. Abilitazione accesso in corso: You can restore the default system context to this file by executing the restorecon command. restorecon '/var/lib/hp/hplip.state', if this file is a directory, you can recursively restore using restorecon -R '/var/lib/hp/hplip.state'. Comando fix: restorecon '/var/lib/hp/hplip.state' Informazioni aggiuntive: Contesto della sorgente system_u:system_r:hplip_t:s0-s0:c0.c1023 Contesto target system_u:object_r:var_lib_t:s0 Oggetti target /var/lib/hp/hplip.state [ file ] Sorgente python Percorso della sorgente /usr/bin/python Porta <Sconosciuto> Host (removed) Sorgente Pacchetti RPM python-2.6-9.fc11 Pacchetti RPM target hplip-3.9.8-12.fc11 RPM della policy selinux-policy-3.6.12-85.fc11 Selinux abilitato True Tipo di policy targeted Modalità Enforcing Permissive Nome plugin restorecon Host Name (removed) Piattaforma Linux (removed) 2.6.30.8-64.fc11.i686.PAE #1 SMP Fri Sep 25 04:56:58 EDT 2009 i686 athlon Conteggio avvisi 4 Primo visto mar 27 ott 2009 18:46:44 CET Ultimo visto mar 27 ott 2009 19:05:34 CET ID locale 39f5b133-2056-45b8-8bd2-60aced2b4a31 Numeri di linea Messaggi Raw Audit node=(removed) type=AVC msg=audit(1256666734.284:26768): avc: denied { getattr } for pid=2907 comm="python" path="/var/lib/hp/hplip.state" dev=dm-0 ino=118285 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_lib_t:s0 tclass=file node=(removed) type=SYSCALL msg=audit(1256666734.284:26768): arch=40000003 syscall=197 success=yes exit=0 a0=4 a1=bfe5cf80 a2=297ff4 a3=b7c7c6b0 items=0 ppid=2897 pid=2907 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/python" subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null) Hash String generated from selinux-policy-3.6.12-85.fc11,restorecon,python,hplip_t,var_lib_t,file,getattr audit2allow suggests: #============= hplip_t ============== allow hplip_t var_lib_t:file getattr;
*** This bug has been marked as a duplicate of bug 538428 ***