Skip to content

Commit f149dd2

Browse files
committed
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
1 parent 2fc7807 commit f149dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/sudoers/policy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,11 +1038,11 @@ sudoers_policy_store_result(struct sudoers_context *ctx, bool accepted,
10381038
#endif /* HAVE_APPARMOR */
10391039
#ifdef HAVE_PRIV_SET
10401040
if (ctx->runas.privs != NULL) {
1041-
if ((command_info[info_len++] = sudo_new_key_val("privs", ctx->runas.privs)) == NULL)
1041+
if ((command_info[info_len++] = sudo_new_key_val("runas_privs", ctx->runas.privs)) == NULL)
10421042
goto oom;
10431043
}
10441044
if (ctx->runas.limitprivs != NULL) {
1045-
if ((command_info[info_len++] = sudo_new_key_val("limitprivs", ctx->runas.limitprivs)) == NULL)
1045+
if ((command_info[info_len++] = sudo_new_key_val("runas_limitprivs", ctx->runas.limitprivs)) == NULL)
10461046
goto oom;
10471047
}
10481048
#endif /* HAVE_PRIV_SET */

0 commit comments

Comments
 (0)