On Sat, Dec 12, 2020 at 10:12 AM stan via users
<users@lists.fedoraproject.org> wrote:
>
> On Sat, 12 Dec 2020 16:22:29 +0530
> Sreyan Chakravarty <sreya...@gmail.com> wrote:
>
> > Isn't chcon just temporary ? Won't the changes be lost after a reboot
> > ?
>
> Persistent across reboots here.  I think "temporary" in this case means
> that it has no context with restorecon.  I haven't tried it, but if you
> change it with chcon, and then run restorecon, it will probably revert
> to unconstrained_u.  There are probably tools that can create a rule
> for restorecon so that it becomes "permanent", I don't know them.

You have to use semanage to set the context.
I always reference the samba docs to remember:
https://fedoraproject.org/wiki/SELinux/samba

> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 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/users@lists.fedoraproject.org

-Joe
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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/users@lists.fedoraproject.org

Reply via email to