How to have SELinux relabeling in verbose mode

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux

Issue

  • At boot, I would like to have the SELinux relabeling be in verbose mode to see which file contexts are changed

Resolution

  • When creating the /.autorelabel file on the root filesystem, prior to rebooting, add the -vv option, as shown below

    # echo "-vv" > /.autorelabel
    
  • Reboot the system

SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.