]> git.ipfire.org Git - thirdparty/krb5.git/commit
In ksu, without the -e flag, also check .k5users
authorNalin Dahyabhai <nalin@redhat.com>
Wed, 30 Jul 2014 21:12:31 +0000 (17:12 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 6 Aug 2014 15:54:13 +0000 (11:54 -0400)
commit3a32e1e6e644c6092f48cf6b6f2d0b8635b3dd52
tree9d6e9973505d01680dadd84e889a3fd5331a8307
parent18333f731b8cb3b4610b1d623caef9347c785f7b
In ksu, without the -e flag, also check .k5users

When ksu was explicitly told to spawn a shell, a line in .k5users which
listed "*" as the allowed command would cause the principal named on the
line to be considered as a candidate for authentication.

When ksu was not passed a command to run, which implicitly meant that
the invoking user wanted to run the target user's login shell, knowledge
that the principal was a valid candidate was ignored, which could cause
a less optimal choice of the default target principal.

This doesn't impact the authorization checks which we perform later.

ticket: 7983 (new)
src/clients/ksu/heuristic.c