Rename force_umask to override_umask and make it private to sudoers.c.

Add getter for policy.c.
This commit is contained in:
Todd C. Miller
2023-05-04 13:46:20 -06:00
parent 72489d7a83
commit c0fa3a4d24
3 changed files with 11 additions and 5 deletions

View File

@@ -946,7 +946,7 @@ sudoers_policy_store_result(bool accepted, char *argv[], char *envp[],
if (asprintf(&command_info[info_len++], "umask=0%o", (unsigned int)cmnd_umask) == -1)
goto oom;
}
if (force_umask) {
if (sudoers_override_umask()) {
if ((command_info[info_len++] = strdup("umask_override=true")) == NULL)
goto oom;
}