On Sat, Dec 12, 2020 at 10:12 AM stan via users
<[email protected]> wrote:
>
> On Sat, 12 Dec 2020 16:22:29 +0530
> Sreyan Chakravarty <[email protected]> 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 -- [email protected]
> To unsubscribe send an email to [email protected]
> 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/[email protected]

-Joe
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]

Reply via email to