7.2.1.1. SELinux File Contexts

> ls -Z /
       system_u:object_r:bin_t:s0 bin
      system_u:object_r:boot_t:s0 boot
    system_u:object_r:device_t:s0 dev
       system_u:object_r:etc_t:s0 etc
 system_u:object_r:home_root_t:s0 home
       system_u:object_r:lib_t:s0 lib
       system_u:object_r:lib_t:s0 lib64
       system_u:object_r:mnt_t:s0 media
       system_u:object_r:mnt_t:s0 mnt
       system_u:object_r:usr_t:s0 opt
      system_u:object_r:proc_t:s0 proc
system_u:object_r:admin_home_t:s0 root
   system_u:object_r:var_run_t:s0 run
       system_u:object_r:bin_t:s0 sbin
       system_u:object_r:var_t:s0 srv
     system_u:object_r:sysfs_t:s0 sys
...
> semanage fcontext -l
SELinux fcontext        type               Context
/                       directory          system_u:object_r:root_t:s0
/.*                     all files          system_u:object_r:default_t:s0
/bin                    all files          system_u:object_r:bin_t:s0
/bin/.*                 all files          system_u:object_r:bin_t:s0
/bin/bash               regular file       system_u:object_r:shell_exec_t:s0
/bin/dmesg              regular file       system_u:object_r:dmesg_exec_t:s0
/bin/ip                 regular file       system_u:object_r:ifconfig_exec_t:s0
...
/dev                    directory          system_u:object_r:device_t:s0
/dev/.*                 all files          system_u:object_r:device_t:s0
/dev/.*mouse.*          character device   system_u:object_r:mouse_device_t:s0
/dev/[0-9].*            character device   system_u:object_r:usb_device_t:s0
/dev/[shmxv]d[^/]*      block device       system_u:object_r:fixed_disk_device_t:s0
...
/home                   directory          system_u:object_r:home_root_t:s0
/home/[^/]+             directory          unconfined_u:object_r:user_home_dir_t:s0
/home/[^/]+/www(/.+)?   all files          unconfined_u:object_r:httpd_user_content_t:s0
...