Lines Matching full:path
23 def restorecon(path, recursive=False, verbose=False, force=False, nthreads=1):
24 """ Restore SELinux context on a given path
27 path -- The pathname for the file or directory to be relabeled.
46 selinux_restorecon_parallel(os.path.expanduser(path), restorecon_flags, nthreads)
48 def chcon(path, context, recursive=False):
49 """ Set the SELinux context on a given path """
50 lsetfilecon(path, context)
52 for root, dirs, files in os.walk(path):
54 lsetfilecon(os.path.join(root, name), context)