mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 22:05:46 +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:
@@ -1038,11 +1038,11 @@ sudoers_policy_store_result(struct sudoers_context *ctx, bool accepted,
|
|||||||
#endif /* HAVE_APPARMOR */
|
#endif /* HAVE_APPARMOR */
|
||||||
#ifdef HAVE_PRIV_SET
|
#ifdef HAVE_PRIV_SET
|
||||||
if (ctx->runas.privs != NULL) {
|
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;
|
goto oom;
|
||||||
}
|
}
|
||||||
if (ctx->runas.limitprivs != NULL) {
|
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;
|
goto oom;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_PRIV_SET */
|
#endif /* HAVE_PRIV_SET */
|
||||||
|
Reference in New Issue
Block a user