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

Add new fdexec sudoers setting to allow choose whether execve() or

fexecve() is used.
This commit is contained in:
Todd C. Miller
2017-01-22 18:56:16 -08:00
parent dde2b5eb2c
commit 413e1100b8
8 changed files with 308 additions and 68 deletions

View File

@@ -21,6 +21,13 @@ static struct def_values def_data_verifypw[] = {
{ NULL, 0 },
};
static struct def_values def_data_fdexec[] = {
{ "never", never },
{ "digest_only", digest_only },
{ "always", always },
{ NULL, 0 },
};
struct sudo_defs_types sudo_defs_table[] = {
{
"syslog", T_LOGFAC|T_BOOL,
@@ -434,6 +441,10 @@ struct sudo_defs_types sudo_defs_table[] = {
"iolog_mode", T_MODE,
N_("File mode to use for the I/O log files: 0%o"),
NULL,
}, {
"fdexec", T_TUPLE|T_BOOL,
N_("Execute commands by file descriptor instead of by path: %s"),
def_data_fdexec,
}, {
NULL, 0, NULL
}