All of lore.kernel.org
 help / color / mirror / Atom feed
* File context not applied due to regex ordering
@ 2013-03-21 11:32 Laurent Bigonville
  2013-04-01 15:58 ` Christopher J. PeBenito
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Bigonville @ 2013-03-21 11:32 UTC (permalink / raw)
  To: selinux

Hello,

I remember that I already talk about this on IRC a while back, but I
don't remember if there was any outcome.

The refpolicy is containing the following filecontext:

/usr/(s)?bin/gdm(3)?    --      gen_context(system_u:object_r:xdm_exec_t,s0)

But for some reasons /usr/sbin/gdm3 is labeled on disk as bin_t instead
of xdm_exec_t. matchpathcon is giving me this:

/usr/bin/gdm	system_u:object_r:xdm_exec_t:SystemLow
/usr/bin/gdm3	system_u:object_r:xdm_exec_t:SystemLow
/usr/sbin/gdm	system_u:object_r:bin_t:SystemLow
/usr/sbin/gdm3	system_u:object_r:bin_t:SystemLow

Changing the regex to /usr/s?bin/gdm(3)? fix the issue.

Shouldn't this be fixed in the userspace libraries?

Cheers

Laurent Bigonville

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2013-09-28 13:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-21 11:32 File context not applied due to regex ordering Laurent Bigonville
2013-04-01 15:58 ` Christopher J. PeBenito
2013-04-01 16:55   ` Laurent Bigonville
2013-04-01 17:40     ` Eric Paris
2013-04-02  9:41       ` Laurent Bigonville
2013-09-28  9:29         ` Laurent Bigonville
2013-09-28 13:30           ` Dominick Grift

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.