Project

General

Profile

Bug #3323 ยป 0001-Do-not-insert-env_reset-setting-if-it-already-exists-in-sudoers.patch

patch - Michael Gliwinski, 2013-02-27 10:20

View differences:

techniques/systemSettings/userManagement/sudoParameters/1.0/sudoParameters.st
"all_lines_defined" expression => isvariable("all_lines");
replace_patterns:
"^(?!Defaults env_reset$)Defaults\s+env_reset$"
comment => "Normalize env_reset setting",
replace_with => value("Defaults env_reset"),
classes => always("replace_attempted_env_reset");
insert_lines:
"Defaults env_reset";
"Defaults env_reset"
ifvarclass => "replace_attempted_env_reset";
check_sudo_parameters_sudo_add_line_vars_defined::
"$(lines[$(index)])"
-
    (1-1/1)