If you believe that python2.7 should be allowed write access on the hpfax-pipe-26 fifo_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 hpfax /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
I did those, no improvement. Even with SELinux set to permissive, I get notifications such as the one below.
I ran these:
sudo grep hpfax /var/log/ audit/audit. log | sudo audit2allow -M mypol audit/audit. log | sudo audit2allow -M mypol
sudo semodule -i mypol.pp
sudo grep grep /var/log/
sudo semodule -i mypol.pp
and got:
ERROR:dbus. connection: Exception in handler for D-Bus signal: python2. 7/site- packages/ dbus/connection .py", line 214, in maybe_handle_ message _handler( *args, **kwargs) hplip/hpssd. py", line 554, in handle_ system_ signal signal( 'system' , *args, **kwds) hplip/hpssd. py", line 550, in handle_signal hplip/hpssd. py", line 467, in handle_event fax_event( event, pipe_name) hplip/hpssd. py", line 253, in handle_fax_event hp/hpfax- pipe-29'
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/share/
return handle_
File "/usr/share/
return handle_event(event, args[6:])
File "/usr/share/
handle_
File "/usr/share/
pipe = os.open(pipe_name, os.O_RDONLY)
OSError: [Errno 13] Permission denied: '/var/log/
I did this:
sudo chmod o+rwx /var/log/hp/
and, SUCCESS!!!!
Do you know what packages should be responsible for addressing the two issues (SELinux even when Permissive and permissions on /var/log/hp/) above?
Also, this is still a problem: https:/ /bugs.launchpad .net/bugs/ 678263
Thanks!
SELinux is preventing /usr/bin/python2.7 from write access on the fifo_file hpfax-pipe-26.
***** Plugin catchall (100. confidence) suggests ******* ******* ******* ******
If you believe that python2.7 should be allowed write access on the hpfax-pipe-26 fifo_file by default. audit/audit. log | audit2allow -M mypol
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 hpfax /var/log/
# semodule -i mypol.pp
Additional Information: u:system_ r:hplip_ t:s0-s0: c0.c1023 u:object_ r:var_log_ t:s0 2.7.3-6. fc17.i686 policy- 3.10.0- 121.fc17. noarch
Source Context system_
Target Context system_
Target Objects hpfax-pipe-26 [ fifo_file ]
Source hpfax
Source Path /usr/bin/python2.7
Port <Unknown>
Source RPM Packages python-
Target RPM Packages
Policy RPM selinux-
Selinux Enabled True
Policy Type targeted
Enforcing Mode Permissive