mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Add limited support for "sudo -l -h other_host". Since group lookups
are done on the local host, rules that use group membership may be incorrect if the group database is not synchronized between hosts.
This commit is contained in:
@@ -68,6 +68,8 @@ struct sudo_user {
|
||||
char *ttypath;
|
||||
char *host;
|
||||
char *shost;
|
||||
char *runhost;
|
||||
char *srunhost;
|
||||
char *prompt;
|
||||
char *cmnd;
|
||||
char *cmnd_args;
|
||||
@@ -192,6 +194,8 @@ struct sudo_user {
|
||||
#define user_prompt (sudo_user.prompt)
|
||||
#define user_host (sudo_user.host)
|
||||
#define user_shost (sudo_user.shost)
|
||||
#define user_runhost (sudo_user.runhost)
|
||||
#define user_srunhost (sudo_user.srunhost)
|
||||
#define user_ccname (sudo_user.krb5_ccname)
|
||||
#define safe_cmnd (sudo_user.cmnd_safe)
|
||||
#define login_class (sudo_user.class_name)
|
||||
|
Reference in New Issue
Block a user