selinux:display_selinux_lables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
selinux:display_selinux_lables [2016/07/11 12:57] – peter | selinux: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 / | ||
- | ls -lZd / | ||
- | ls -lZd /etc | ||
- | ls -lZ /dev/ | grep deviceName | ||
- | ls -lZ / | ||
- | </ | ||
- | |||
- | Sample outputs: | ||
- | |||
- | < | ||
- | -rw-r--r-- | ||
- | </ | ||
- | |||
- | |||
- | ===== Check /etc ===== | ||
- | |||
- | <code bash> | ||
- | ls -Z /etc/ | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | -rw-r--r-- | ||
- | -rw-r--r-- | ||
- | -rw-r--r-- | ||
- | drwxr-x--- | ||
- | drwxr-xr-x | ||
- | drwxr-xr-x | ||
- | drwx------ | ||
- | -rw-rw-r-- | ||
- | </ | ||
selinux/display_selinux_lables.1468241877.txt.gz · Last modified: 2020/07/15 09:30 (external edit)