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

Add support for parsing an empty Runas_List, which only allows the

command to be run as the invoking user.  This can be used in
conjunction with the Solaris Privilege Set support to grant privileges
without changing the user.
This commit is contained in:
Todd C. Miller
2012-08-02 14:02:54 -04:00
parent acba09fbbf
commit e2d210a340
9 changed files with 237 additions and 192 deletions

View File

@@ -650,6 +650,9 @@ _print_member(struct lbuf *lbuf, char *name, int type, int negated,
case ALL:
lbuf_append(lbuf, "%sALL", negated ? "!" : "");
break;
case MYSELF:
lbuf_append(lbuf, "%s%s", negated ? "!" : "", user_name);
break;
case COMMAND:
c = (struct sudo_command *) name;
if (negated)