User Tools

Site Tools


selinux:display_selinux_lables

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
selinux:display_selinux_lables [2016/07/11 12:57] peterselinux:display_selinux_lables [2019/12/04 20:20] (current) – removed peter
Line 1: Line 1:
-===== SELinux Display SELinux Labels ===== 
- 
-See SELinux Labels. 
- 
-Type the following command: 
- 
-<code bash> 
-ls -lZ /path/to/file 
-ls -lZd /path/to/dir 
-ls -lZd /etc 
-ls -lZ /dev/ | grep deviceName 
-ls -lZ /etc/resolv.conf 
-</code> 
- 
-Sample outputs: 
- 
-<code> 
--rw-r--r--  root root system_u:object_r:net_conf_t     /etc/resolv.conf 
-</code> 
- 
- 
-<code bash> 
-ls -Z /etc/ 
-</code> 
- 
-Result: 
- 
-<code> 
--rw-r--r--  root root  system_u:object_r:etc_t:s0       a2ps.cfg 
--rw-r--r--  root root  system_u:object_r:adjtime_t:s0   adjtime 
--rw-r--r--  root root  system_u:object_r:etc_aliases_t:s0 aliases 
-drwxr-x---  root root  system_u:object_r:auditd_etc_t:s0 audit 
-drwxr-xr-x  root root  system_u:object_r:etc_runtime_t:s0 blkid 
-drwxr-xr-x  root root  system_u:object_r:bluetooth_conf_t:s0 bluetooth 
-drwx------  root root  system_u:object_r:system_cron_spool_t:s0 cron.d 
--rw-rw-r--  root disk  system_u:object_r:amanda_dumpdates_t:s0 dumpdates 
-</code> 
  
selinux/display_selinux_lables.1468241834.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki