code: def _SetSELinuxContext(path):
    
    restorecon = '/sbin/restorecon'
    if os.path.isfile(restorecon) and os.access(restorecon, os.X_OK):
      subprocess.call([restorecon, path])
docs: Set the appropriate SELinux context, if SELinux tools are installed.
  
    Calls /sbin/restorecon on the provided path to set the SELinux context as
    specified by policy. This call does not operate recursively.
  
    Only some OS configurations use SELinux. It is therefore acceptable for
    restorecon to be missing, in which case we do nothing.
  
    Args:
      path: string, the path on which to fix the SELinux context.