Commit d3ccb69
committed
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]>1 parent 85331a8 commit d3ccb69
1 file changed
+0
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | 1075 | | |
1091 | 1076 | | |
1092 | 1077 | | |
| |||
1097 | 1082 | | |
1098 | 1083 | | |
1099 | 1084 | | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | 1085 | | |
1104 | 1086 | | |
1105 | 1087 | | |
| |||
0 commit comments