From f149dd2c8c0e955559b88cda4093aa0ed1048d50 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Dec 2023 13:31:56 -0700 Subject: [PATCH] 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 --- plugins/sudoers/policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c index 6d0f641c7..ac05dcfdc 100644 --- a/plugins/sudoers/policy.c +++ b/plugins/sudoers/policy.c @@ -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 */