mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
Pass back Solaris privs as "runas_privs" and "runas_limitprivs".
The "runas_" prefix got inadvertantly removed in the big sudoers_context refactor. --HG-- branch : 1.9
This commit is contained in:
parent
2fc78071c8
commit
f149dd2c8c
@ -1038,11 +1038,11 @@ sudoers_policy_store_result(struct sudoers_context *ctx, bool accepted,
|
||||
#endif /* HAVE_APPARMOR */
|
||||
#ifdef HAVE_PRIV_SET
|
||||
if (ctx->runas.privs != NULL) {
|
||||
if ((command_info[info_len++] = sudo_new_key_val("privs", ctx->runas.privs)) == NULL)
|
||||
if ((command_info[info_len++] = sudo_new_key_val("runas_privs", ctx->runas.privs)) == NULL)
|
||||
goto oom;
|
||||
}
|
||||
if (ctx->runas.limitprivs != NULL) {
|
||||
if ((command_info[info_len++] = sudo_new_key_val("limitprivs", ctx->runas.limitprivs)) == NULL)
|
||||
if ((command_info[info_len++] = sudo_new_key_val("runas_limitprivs", ctx->runas.limitprivs)) == NULL)
|
||||
goto oom;
|
||||
}
|
||||
#endif /* HAVE_PRIV_SET */
|
||||
|
Loading…
x
Reference in New Issue
Block a user