Skip to contentSkip to conversation

how to best deal with the move from bin to /usr/sbin

refpolicy Dominick Grift 3 participants 3 messages Sep 10, 2012 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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?

A message that is not in the archive (sent off-list or not yet received): CAPzO=NwM5TDgBYU7Z5hS-hsw4MHjDUDpiSO3t88zY7RQMKMqbw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CAPzO=NxsJpFciPpBhG0TShvtfor5-voH4cSewggKSMYdT8_A=w@mail.gmail.com

#3 lore raw

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" <[email protected]> wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20120910/fe848758/attachment.html

#4 lore raw
In reply to Dominick Grift
Quoted 8 lines · Dominick Grift

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/)?

Quoted 6 lines

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 <[email protected]>
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 <[email protected]>
Date:   Tue Dec 6 12:13:42 2011 -0500

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