Re: SELinux Context for web server data files in another part of filesystem?

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

 




Am 20.11.24 um 13:06 schrieb Trevor Hemsley via selinux:
On 20/11/2024 12:03, Sam Morris via selinux wrote:
There's also a soft symlink at /var/www/html/ftc-data that points to
/var/ftc-data

Why not just bind mount /var/ftc-data on /var/www/html/ftc-data?

one might also use the equal option of fcontext:


semanage fcontext --add --equal /var/www/html/ /var/ftc-data/
restorecon -rv /var/ftc-data

To have the same selinux fcontext for /var/ftc-data as /var/www/html


-- 
_______________________________________________
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
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

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

  Powered by Linux