code: def restorecon(path, recursive=False):
      '''
      Reset the SELinux context on a given path
  
      CLI Example:
  
      .. code-block:: bash
  
           salt '*' file.restorecon /home/user/.ssh/authorized_keys
      '''
      if recursive:
          cmd = ['restorecon', '-FR', path]
      else:
          cmd = ['restorecon', '-F', path]
      return not __salt__['cmd.retcode'](cmd, python_shell=Falsef restorecon(path, recursive=False):
      '''
      Reset the SELinux context on a given path
  
      CLI Example:
  
      .. code-block:: bash
  
           salt '*' file.restorecon /home/user/.ssh/authorized_keys
      '''
      if recursive:
          cmd = ['restorecon', '-FR', path]
      else:
          cmd = ['restorecon', '-F', path]
      return not __salt__['cmd.retcode'](cmd, python_shell=False)
docs: Reset the SELinux context on a given path
  
      CLI Example:
  
      .. code-block:: bash
  
           salt '*' file.restorecon /home/user/.ssh/authorized_keys