
changable at runtime (and on a global, per-host and per-user basis). Both the names and the internal representation are still subject to change. It was necessary to make sudo_user.runas but a char ** instead of a char * since this value can be changed by a Defaults line. There is a similar (but more complicated) issue with sudo_user.prompt but it is handled differently at the moment. Add a "-L" flag to list the name of options with their descriptions. This may only be temporary. Move some prototypes to parse.h Be much less restrictive on what is allowed for a username.
28 lines
543 B
C
28 lines
543 B
C
#define COMMAND 257
|
|
#define ALIAS 258
|
|
#define NTWKADDR 259
|
|
#define FQHOST 260
|
|
#define NETGROUP 261
|
|
#define USERGROUP 262
|
|
#define WORD 263
|
|
#define DEFAULTS 264
|
|
#define DEFAULTS_HOST 265
|
|
#define DEFAULTS_USER 266
|
|
#define RUNAS 267
|
|
#define NOPASSWD 268
|
|
#define PASSWD 269
|
|
#define ALL 270
|
|
#define COMMENT 271
|
|
#define HOSTALIAS 272
|
|
#define CMNDALIAS 273
|
|
#define USERALIAS 274
|
|
#define RUNASALIAS 275
|
|
#define ERROR 276
|
|
typedef union {
|
|
char *string;
|
|
int BOOLEAN;
|
|
struct sudo_command command;
|
|
int tok;
|
|
} YYSTYPE;
|
|
extern YYSTYPE yylval;
|