Comment 5 for bug 1055510

Revision history for this message
_AnK (andk) wrote :

Further investigation narrowed the problem to the following 2:
1) I manually created the /var/log/hp/tmp directory (see error message above). In Selinux Permissive mode the fax started working fine. However i do not see anythin spooling into the tmp directory. Looks like it is not really needed however python code looking for it. I am not sure why?
2) Although fax is working I am getting the following AVC denial report. Seems some policy chagesrequired:

type=AVC msg=audit(1349021534.436:1191): avc: denied { write } for pid=10757 comm="hpfax" name="tmp" dev="dm-6" ino=17434475 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=dir
type=AVC msg=audit(1349021534.436:1191): avc: denied { add_name } for pid=10757 comm="hpfax" name="hpfax-pipe-155" scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=dir
type=AVC msg=audit(1349021534.436:1191): avc: denied { create } for pid=10757 comm="hpfax" name="hpfax-pipe-155" scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=fifo_file
type=SYSCALL msg=audit(1349021534.436:1191): arch=c000003e syscall=133 success=yes exit=0 a0=282f48c a1=11b6 a2=0 a3=393dd400c4 items=0 ppid=1790 pid=10757 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="hpfax" exe="/usr/bin/python2.7" subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1349021534.436:1192): avc: denied { write } for pid=10757 comm="hpfax" name="hpfax-pipe-155" dev="dm-6" ino=17434480 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=fifo_file
type=AVC msg=audit(1349021534.436:1192): avc: denied { open } for pid=10757 comm="hpfax" name="hpfax-pipe-155" dev="dm-6" ino=17434480 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=fifo_file
type=SYSCALL msg=audit(1349021534.436:1192): arch=c000003e syscall=2 success=yes exit=6 a0=2ad3340 a1=1 a2=1ff a3=676f6c2f7261762f items=0 ppid=1790 pid=10757 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="hpfax" exe="/usr/bin/python2.7" subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1349021534.561:1193): avc: denied { remove_name } for pid=10757 comm="hpfax" name="hpfax-pipe-155" dev="dm-6" ino=17434480 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=dir
type=AVC msg=audit(1349021534.561:1193): avc: denied { unlink } for pid=10757 comm="hpfax" name="hpfax-pipe-155" dev="dm-6" ino=17434480 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_log_t:s0 tclass=fifo_file
type=SYSCALL msg=audit(1349021534.561:1193): arch=c000003e syscall=87 success=yes exit=0 a0=2ad3340 a1=ffffffff a2=393dfb8408 a3=676f6c2f7261762f items=0 ppid=1790 pid=10757 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="hpfax" exe="/usr/bin/python2.7" subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null)

Can someone, please, take a look on these two problems ? Thanks.