Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


selinux_list_contexts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
selinux_list_contexts [2016/05/15 11:35] – [Example] adminselinux_list_contexts [2016/05/15 11:39] – [Example] admin
Line 31: Line 31:
   * We probably need ''samba_share_t''   * We probably need ''samba_share_t''
   * Check already configured contexts:<code>semanage fcontext -l</code>   * Check already configured contexts:<code>semanage fcontext -l</code>
-  * Set the context, if you don't know how, check ''semanage fcontext %%--%%help'' :<code>semanage fcontext -a -t samba_share_t "/opt/smbdata(/.*)?"</code>+  * Set the context, if you don't know how, check ''semanage fcontext %%--%%help'' and read the ''semanage-fcontext'' manpage (with examples).<code>semanage fcontext -a -t samba_share_t "/opt/smbdata(/.*)?"</code>
        
selinux_list_contexts.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1