2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Initialize intercept_allow_setid to true if we use ptrace(2) and seccomp(2).

This commit is contained in:
Todd C. Miller
2022-05-04 13:32:28 -06:00
parent e84fdd99fd
commit 4ab6a87b96
11 changed files with 66 additions and 43 deletions

View File

@@ -548,6 +548,8 @@ init_defaults(void)
#endif
if ((def_rlimit_core = strdup("0,0")) == NULL)
goto oom;
if (ISSET(sudo_user.flags, CAN_INTERCEPT_SETID))
def_intercept_allow_setid = true;
def_netgroup_tuple = false;
def_sudoedit_checkdir = true;
def_iolog_mode = S_IRUSR|S_IWUSR;