linux_wiki:list_and_identify_selinux_file_and_process_context

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:list_and_identify_selinux_file_and_process_context [2016/02/29 22:17]
billdozor
linux_wiki:list_and_identify_selinux_file_and_process_context [2018/04/29 23:21]
billdozor [Install SEInfo Utility]
Line 3: Line 3:
 **General Information** **General Information**
  
-About this page/how-to/script+Viewing selinux contexts
  
 ---- ----
 +
 +===== About Context Labels =====
  
 Three parts of a context label Three parts of a context label
Line 12: Line 14:
   * **Type** => Ends in "_t". There are many different context types and this part of SELinux **IS covered** on the RHCSA/RHCE exams.   * **Type** => Ends in "_t". There are many different context types and this part of SELinux **IS covered** on the RHCSA/RHCE exams.
  
-\\+---- 
 + 
 +===== Viewing Context Labels ===== 
 List selinux context List selinux context
 <code bash> <code bash>
Line 54: Line 59:
   * Update the man database<code bash>mandb</code>   * Update the man database<code bash>mandb</code>
   * Check to ensure the new pages exist<code bash>man -k _selinux</code>   * Check to ensure the new pages exist<code bash>man -k _selinux</code>
 +
 +----
 +
 +===== Install SEInfo Utility =====
 +
 +Seinfo is a useful tool to discover available context types (among other things).
 +
 +\\
 +See what package provides it<code bash>yum provides /*seinfo</code>
 +
 +\\
 +Install the package<code bash>yum install setools-console</code>
 +
 +\\
 +View all the context types that are nfs related<code bash>seinfo -t | grep nfs</code>
  
 ---- ----
  
  • linux_wiki/list_and_identify_selinux_file_and_process_context.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)