All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Help with policy definition.
@ 2011-06-06 23:26 Sam Gandhi
  2011-06-07  3:52 ` Guido Trentalancia
  2011-06-07 12:03 ` Christopher J. PeBenito
  0 siblings, 2 replies; 7+ messages in thread
From: Sam Gandhi @ 2011-06-06 23:26 UTC (permalink / raw)
  To: refpolicy

I am writing a policy for embedded device that I am working with. When
I am in permissive mode I can login to my console located on
/dev/ttymxc1.

which generate AVC message

user.notice kernel: type=1400 audit(165.890:8): avc:  denied  {
relabelto } for  pid=605 comm="login" name="ttymxc1" dev=tmpfs
ino=1475 scontext=system_u:system_r:kernel_t
tcontext=user_u:object_r:tty_device_t tclass=chr_file

which audit2allow says should translate to :

     allow kernel_t tty_device_t:chr_file relabelto;

Even if with above allow rule when in enforcing mode I am not able to
login to my serial console and I get message on the console.

login: chsid(/dev/ttymxc1, user_u:object_r:tty_device_t) failed:

/dev/ttymxc1 in my case has label of  user_u:object_r:tty_device_t

What am I missing in my configuration or any hints on how I should go
about debugging this issue/

/Sam

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

end of thread, other threads:[~2011-06-07 19:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 23:26 [refpolicy] Help with policy definition Sam Gandhi
2011-06-07  3:52 ` Guido Trentalancia
2011-06-07 15:30   ` Sam Gandhi
2011-06-07 19:42     ` Guido Trentalancia
2011-06-07 12:03 ` Christopher J. PeBenito
2011-06-07 19:11   ` Guido Trentalancia
2011-06-07 19:28     ` Christopher J. PeBenito

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.