All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] AVC denials from cups
@ 2008-08-27 15:16 Matt Anderson
  2008-08-27 19:01 ` JOhn ROss POrter
  0 siblings, 1 reply; 8+ messages in thread
From: Matt Anderson @ 2008-08-27 15:16 UTC (permalink / raw)
  To: refpolicy

JOhn ROss POrter wrote:
> I don't know how to distinguish between "to get extra functionality", 
> and "driver is requesting."  I submit a print job to the device which 
> uses the hp:/net/Office... URI and I get AVC denial pop-ups.

You had mentioned that the hplip driver allows you to get more
functionality than just printing.  I was wondering if the AVCs were
generated from those requests, or the printing requests, or what was
seemingly random from the driver.

> I should also mention, again(?), that I run SELinux in "permissive" 
> mode.  The AVC warnings are just an annoyance and to not prohibit 
> further activities.

It could be interesting to see how the system behaves in enforcing mode.
You could remove your policy additions and see if you're still able to
print and access the scanning and printer display feedback
functionality, then add your policy module back in, and see what works.

> My reason for filing this bug report derived from following
> suggestions 
> received from the #selinux channel on the freenode IRC Network.
>  From my own point of view, this issue may be dropped.  The thread may 
> prove helpful, however, to anyone else installing the 2.8.7 level of
> hplip.

I don't recall you posting the rules in your policy module here.  It
might be good to do that so that its all archived in the same place.

> Thanks for your attention,
> Joropo

Thanks for bringing it up.
-matt

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [refpolicy] AVC denials from cups
@ 2008-08-27 14:54 JOhn ROss POrter
  0 siblings, 0 replies; 8+ messages in thread
From: JOhn ROss POrter @ 2008-08-27 14:54 UTC (permalink / raw)
  To: refpolicy

I don't know how to distinguish between "to get extra functionality", 
and "driver is requesting."  I submit a print job to the device which 
uses the hp:/net/Office... URI and I get AVC denial pop-ups.

My current status is that I've generated allow rules which, 
successfully, permit the printer interface to function without warnings.
I would mention that the FAQ which setroubleshoot directed be to was 
*very* helpful with respect to generating and applying the necessary 
rules.  Thanks for the assist!

I should also mention, again(?), that I run SELinux in "permissive" 
mode.  The AVC warnings are just an annoyance and to not prohibit 
further activities.

My reason for filing this bug report derived from following suggestions 
received from the #selinux channel on the freenode IRC Network.
 From my own point of view, this issue may be dropped.  The thread may 
prove helpful, however, to anyone else installing the 2.8.7 level of hplip.

Thanks for your attention,
Joropo
-------- Original Message --------

On Tue, Aug 26, 2008 at 02:10:02PM -0400, JOhn ROss POrter wrote:
> Matt Anderson wrote:
>> same device URI and PPD file?  
> different URI's
> no AVC -- socket://192.168.1.105:9100
> w/AVC -- hp:/net/OfficeJet_G85?ip=192.168.1.105 (was created  
> auto-magically by hplip install procedure. Additionally, extra  
> functionality enabled with this device [scanning and printer display  
> feedback])

Okay, it sounds like you've got a patch for the hplip policy then.  Do
you need these additional allow rules to get the extra functionality or
are they permissions the driver is requesting?  If it works, but
generates AVCs as is, you might consider using dontaudit rules.

-matt

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [refpolicy] AVC denials from cups
@ 2008-08-25 14:21 JOhn ROss POrter
  2008-08-26 12:08 ` Matt Anderson
  0 siblings, 1 reply; 8+ messages in thread
From: JOhn ROss POrter @ 2008-08-25 14:21 UTC (permalink / raw)
  To: refpolicy

Getting these denials when printing through cups.

type=AVC msg=audit(1219156658.544:2005): avc:  denied  { search } for 
pid=6591 comm="hp" name="dbus" dev=dm-0 ino=12799869 
scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 
tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=dir
type=AVC msg=audit(1219156658.544:2005): avc:  denied  { write } for 
pid=6591 comm="hp" name="system_bus_socket" dev=dm-0 ino=12800311 
scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 
tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=sock_file
type=AVC msg=audit(1219156658.544:2005): avc:  denied  { connectto } for 
  pid=6591 comm="hp" path="/var/run/dbus/system_bus_socket" 
scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 
tcontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 
tclass=unix_stream_socket


I've created and applied a local policy to allow this access but have 
been instructed to file a bug report about the situation.
Printer description from cups:
*Description:* new driver

*Location:* corner

*Printer Driver:* HP OfficeJet G85 Foomatic/hpijs (recommended)

*Printer State:* idle,
accepting jobs,  published.

*Device URI:* hp:/net/OfficeJet_G85?ip=192.168.1.105

Unfortunatly, I'm unable to locate specific data about the pinter 
driver.  I'll claim it is the latest version available from HP.
Another driver (with same id) does not cause problems.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-08-29 14:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 15:16 [refpolicy] AVC denials from cups Matt Anderson
2008-08-27 19:01 ` JOhn ROss POrter
2008-08-29 14:33   ` Christopher J. PeBenito
  -- strict thread matches above, loose matches on Subject: below --
2008-08-27 14:54 JOhn ROss POrter
2008-08-25 14:21 JOhn ROss POrter
2008-08-26 12:08 ` Matt Anderson
2008-08-26 18:10   ` JOhn ROss POrter
2008-08-27 12:23     ` Matt Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.