]> granicus.if.org Git - sudo/commit
Fix matching when no sudoRunAsUser is present in a sudoRole.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Sep 2016 12:19:49 +0000 (06:19 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Sep 2016 12:19:49 +0000 (06:19 -0600)
commit0a68d6799eab3a4c3b73e5bfff4c87c320cfb83e
tree1ad8e13d97efcfa31a5d16559a0ebb4004905cbb
parent1bccd1418009c469338a8908654cdac9d6015221
Fix matching when no sudoRunAsUser is present in a sudoRole.
If only a sudoRunAsGroup is present, match on the invoking user
if the -g option was specified and the group matched.
If no sudoRunAsGroup is present and the -g option was specified,
allow it if it matches the passwd gid of the runas user.
This matches the behavior of the sudoers backend.
plugins/sudoers/ldap.c
plugins/sudoers/sssd.c