
function that just sets error and returns -1. This adds a "noexec_file" option to load the filename as well as a "noexec" flag to enable it unconditionally. There is also a NOEXEC tag that can be attached to specific commands and an EXEC tag to disable it.
31 lines
606 B
C
31 lines
606 B
C
#define COMMAND 257
|
|
#define ALIAS 258
|
|
#define DEFVAR 259
|
|
#define NTWKADDR 260
|
|
#define NETGROUP 261
|
|
#define USERGROUP 262
|
|
#define WORD 263
|
|
#define DEFAULTS 264
|
|
#define DEFAULTS_HOST 265
|
|
#define DEFAULTS_USER 266
|
|
#define DEFAULTS_RUNAS 267
|
|
#define RUNAS 268
|
|
#define NOPASSWD 269
|
|
#define PASSWD 270
|
|
#define NOEXEC 271
|
|
#define EXEC 272
|
|
#define ALL 273
|
|
#define COMMENT 274
|
|
#define HOSTALIAS 275
|
|
#define CMNDALIAS 276
|
|
#define USERALIAS 277
|
|
#define RUNASALIAS 278
|
|
#define ERROR 279
|
|
typedef union {
|
|
char *string;
|
|
int BOOLEAN;
|
|
struct sudo_command command;
|
|
int tok;
|
|
} YYSTYPE;
|
|
extern YYSTYPE yylval;
|