Re: "secondary" root fs with autolabeling - how?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 1/28/21 12:18 AM, lejeczek wrote:
I wonder if it possible to make a mount point or it's sub-folder to mimic fcontext of the "/" itself and have "restorecond" do labeling?
This what I wonder must not be a new notion, eg
- have a mount point /devel and duplicate partial structure of "/" inside, usually it would be "var", "usr", "run" and lastly have "restorecond" do the fcontext labeling, eg. /devel/var/www/html etc.


Maybe use the equal option of semanage fcontext? Configure /devel to be equal to / (rootfs).

semanage fcontext -a --equal / /devel

- Thomas
_______________________________________________
selinux mailing list -- selinux@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to selinux-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux