Comment 5 for bug 702934

Revision history for this message
David Levine (levinedl) wrote :

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
    sudo semodule -i mypol.pp
    sudo grep grep /var/log/audit/audit.log | sudo audit2allow -M mypol
    sudo semodule -i mypol.pp

and got:

ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/share/hplip/hpssd.py", line 554, in handle_system_signal
    return handle_signal('system', *args, **kwds)
  File "/usr/share/hplip/hpssd.py", line 550, in handle_signal
    return handle_event(event, args[6:])
  File "/usr/share/hplip/hpssd.py", line 467, in handle_event
    handle_fax_event(event, pipe_name)
  File "/usr/share/hplip/hpssd.py", line 253, in handle_fax_event
    pipe = os.open(pipe_name, os.O_RDONLY)
OSError: [Errno 13] Permission denied: '/var/log/hp/hpfax-pipe-29'

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.
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

Additional Information:
Source Context system_u:system_r:hplip_t:s0-s0:c0.c1023
Target Context system_u:object_r:var_log_t:s0
Target Objects hpfax-pipe-26 [ fifo_file ]
Source hpfax
Source Path /usr/bin/python2.7
Port <Unknown>
Source RPM Packages python-2.7.3-6.fc17.i686
Target RPM Packages
Policy RPM selinux-policy-3.10.0-121.fc17.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Permissive