Hi ,
I have a RHEL 7 with selinux at enforcing mode.
when i create a new top level directory and run the semanage to set any content it is not working it . The content remains as default_t.
Code:
semanage fcontext -a -t samba_share_t "/mysamba(/.*)?"
restorecon -Rv mysamba
or
semanage fcontext -a -t public_content_t "/mysamba(/.*)?"
but the chcon -t works and on any new file created below it.. why ? any specific reasons or what I am missing when using semanage fcontext?