All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] how to best deal with the move from bin to /usr/sbin
@ 2012-09-10 11:04 Dominick Grift
       [not found] ` <CAPzO=NwM5TDgBYU7Z5hS-hsw4MHjDUDpiSO3t88zY7RQMKMqbw@mail.gmail.com>
  2012-09-10 11:32 ` Miroslav Grepl
  0 siblings, 2 replies; 4+ messages in thread
From: Dominick Grift @ 2012-09-10 11:04 UTC (permalink / raw)
  To: refpolicy

Many distributions want to get rid of /bin and /sbin and use /usr/bin
and usr/sbin/ respectively instead.

how to best deal with that?

do we add a file_contexts.subs_dist entry or edit all /bin /sbin entries
with (usr/)?

How does Fedora deal with this?

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

* [refpolicy] how to best deal with the move from bin to /usr/sbin
       [not found]   ` <CAPzO=NxsJpFciPpBhG0TShvtfor5-voH4cSewggKSMYdT8_A=w@mail.gmail.com>
@ 2012-09-10 11:13     ` Sven Vermeulen
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Vermeulen @ 2012-09-10 11:13 UTC (permalink / raw)
  To: refpolicy

If we would use the regexp approach, we need to make sure that it doesn't
change any matching order. As you know, if two contexts with regexps exist,
then the one with the regexp closest to the start of the string loses...

On Sep 10, 2012 1:04 PM, "Dominick Grift" <dominick.grift@gmail.com> wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20120910/fe848758/attachment.html 

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

* [refpolicy] how to best deal with the move from bin to /usr/sbin
  2012-09-10 11:04 [refpolicy] how to best deal with the move from bin to /usr/sbin Dominick Grift
       [not found] ` <CAPzO=NwM5TDgBYU7Z5hS-hsw4MHjDUDpiSO3t88zY7RQMKMqbw@mail.gmail.com>
@ 2012-09-10 11:32 ` Miroslav Grepl
  1 sibling, 0 replies; 4+ messages in thread
From: Miroslav Grepl @ 2012-09-10 11:32 UTC (permalink / raw)
  To: refpolicy

On 09/10/2012 01:04 PM, Dominick Grift wrote:
> Many distributions want to get rid of /bin and /sbin and use /usr/bin
> and usr/sbin/ respectively instead.
>
> how to best deal with that?
>
> do we add a file_contexts.subs_dist entry or edit all /bin /sbin entries
> with (usr/)?
>
> How does Fedora deal with this?
>
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy
Dan added a lot of fixes to *.fc files. Basically you can check them on 
fedorahosted repo.

# git log master

and search "sbin", "bin" strings

----

commit de8b29a88b8151af675a2c8f6777be3be7dcb216
Author: Dan Walsh <dwalsh@redhat.com>
Date:   Tue Dec 6 19:20:22 2011 -0500

     Fedora is moving all files in /lib, /lib64, /sbin, /bin into 
/usr/lib, /usr/lib64, /usr/sbin and /usr/bin

     This update will fix the labeling for all these files

commit a03e14710e91870e05f3a52294ea5523477dc3db
Author: Dan Walsh <dwalsh@redhat.com>
Date:   Tue Dec 6 12:13:42 2011 -0500

     More fixes for the move from /lib, /bin, /sbin, to /usr directory

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

* [refpolicy] how to best deal with the move from bin to /usr/sbin
@ 2012-09-12  7:02 Guido Trentalancia
  0 siblings, 0 replies; 4+ messages in thread
From: Guido Trentalancia @ 2012-09-12  7:02 UTC (permalink / raw)
  To: refpolicy

Hello.

 > Many distributions want to get rid of /bin and /sbin and use /usr/bin
 > and usr/sbin/ respectively instead.

 > how to best deal with that?

 > do we add a file_contexts.subs_dist entry or edit all /bin /sbin entries
 > with (usr/)?

In my opinion, the file_contexts.subs_dist is not to be edited by 
Reference Policy, but only by individual distributions (in their private 
patches that will always exist to some extent) or by end-users.

It is provided by Reference Policy as an aid towards easier 
customization of binary locations and should contain very few entries 
(for example, if the are critical).

In that view, the addition of /etc/rc.d/init.d /etc/init.d alias is 
already in excess.

If you are sure that a given alternative base location is used by a 
given distribution, then perhaps you could add commented entries in 
file_contexts.subs_dist specifying the distribution using such 
alternative location...

 > How does Fedora deal with this?

Best regards,

Guido

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

end of thread, other threads:[~2012-09-12  7:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 11:04 [refpolicy] how to best deal with the move from bin to /usr/sbin Dominick Grift
     [not found] ` <CAPzO=NwM5TDgBYU7Z5hS-hsw4MHjDUDpiSO3t88zY7RQMKMqbw@mail.gmail.com>
     [not found]   ` <CAPzO=NxsJpFciPpBhG0TShvtfor5-voH4cSewggKSMYdT8_A=w@mail.gmail.com>
2012-09-10 11:13     ` Sven Vermeulen
2012-09-10 11:32 ` Miroslav Grepl
  -- strict thread matches above, loose matches on Subject: below --
2012-09-12  7:02 Guido Trentalancia

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.