Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow relabeling of files/directories under /usr prefix
We already check to make sure users do not accidentily relabel these excluded paths: exclude_paths := map[string]bool{ "/": true, "/bin": true, "/boot": true, "/dev": true, "/etc": true, "/etc/passwd": true, "/etc/pki": true, "/etc/shadow": true, "/home": true, "/lib": true, "/lib64": true, "/media": true, "/opt": true, "/proc": true, "/root": true, "/run": true, "/sbin": true, "/srv": true, "/sys": true, "/tmp": true, "/usr": true, "/var": true, "/var/lib": true, "/var/log": true, } But some users put homedirectories under /usr, and I see no reason to block them from relabeling. At a certain point if users do something dumb with relableing we can not stop them. Signed-off-by: Daniel J Walsh <[email protected]>
- Loading branch information