Add a way to run a command without updating the cached credentials.

This can also be used to test for whether or not the user's
credentials are currently cached.
This commit is contained in:
Todd C. Miller
2022-08-02 14:28:28 -06:00
parent 2d94d329cf
commit 556dacf1ff
9 changed files with 115 additions and 49 deletions

View File

@@ -84,27 +84,28 @@
#define ARG_USER_SHELL 5
#define ARG_LOGIN_SHELL 6
#define ARG_IGNORE_TICKET 7
#define ARG_PROMPT 8
#define ARG_SELINUX_ROLE 9
#define ARG_SELINUX_TYPE 10
#define ARG_RUNAS_USER 11
#define ARG_PROGNAME 12
#define ARG_IMPLIED_SHELL 13
#define ARG_PRESERVE_GROUPS 14
#define ARG_NONINTERACTIVE 15
#define ARG_SUDOEDIT 16
#define ARG_CLOSEFROM 17
#define ARG_NET_ADDRS 18
#define ARG_MAX_GROUPS 19
#define ARG_PLUGIN_DIR 20
#define ARG_REMOTE_HOST 21
#define ARG_TIMEOUT 22
#define ARG_CHROOT 23
#define ARG_CWD 24
#define ARG_ASKPASS 25
#define ARG_INTERCEPT_SETID 26
#define ARG_INTERCEPT_PTRACE 27
#define ARG_APPARMOR_PROFILE 28
#define ARG_UPDATE_TICKET 8
#define ARG_PROMPT 9
#define ARG_SELINUX_ROLE 10
#define ARG_SELINUX_TYPE 11
#define ARG_RUNAS_USER 12
#define ARG_PROGNAME 13
#define ARG_IMPLIED_SHELL 14
#define ARG_PRESERVE_GROUPS 15
#define ARG_NONINTERACTIVE 16
#define ARG_SUDOEDIT 17
#define ARG_CLOSEFROM 18
#define ARG_NET_ADDRS 19
#define ARG_MAX_GROUPS 20
#define ARG_PLUGIN_DIR 21
#define ARG_REMOTE_HOST 22
#define ARG_TIMEOUT 23
#define ARG_CHROOT 24
#define ARG_CWD 25
#define ARG_ASKPASS 26
#define ARG_INTERCEPT_SETID 27
#define ARG_INTERCEPT_PTRACE 28
#define ARG_APPARMOR_PROFILE 29
/*
* Flags for tgetpass()