

Code: Select all
[root@linux ~]# ls -lZd /public
drwxr-xr-x. root root unconfined_u:object_r:default_t:s0 /public
[root@linux ~]# chcon -t samba_share_t /public
[root@linux ~]# ls -lZd /public
drwxr-xr-x. root root unconfined_u:object_r:samba_share_t:s0 /public