summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/def_data.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-09-28 15:10:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-09-28 15:10:52 +0000
commitb2ce21d7e22822255c394cc618c029fdcd31be4d (patch)
treeba0dcff50d70b05985ecb9590c0bf828c151a021 /usr.bin/sudo/def_data.h
parent6d2330fc528f6b282a6ed3bff15e92d30ee98805 (diff)
Update to sudo 1.6.8p1
Diffstat (limited to 'usr.bin/sudo/def_data.h')
-rw-r--r--usr.bin/sudo/def_data.h183
1 files changed, 124 insertions, 59 deletions
diff --git a/usr.bin/sudo/def_data.h b/usr.bin/sudo/def_data.h
index 9e9c5e44b68..40cdb8fc76e 100644
--- a/usr.bin/sudo/def_data.h
+++ b/usr.bin/sudo/def_data.h
@@ -1,59 +1,124 @@
-#define I_SYSLOG_IFAC 0
-#define I_SYSLOG_IGOODPRI 1
-#define I_SYSLOG_IBADPRI 2
-#define I_SYSLOG 3
-#define I_SYSLOG_GOODPRI 4
-#define I_SYSLOG_BADPRI 5
-#define I_LONG_OTP_PROMPT 6
-#define I_IGNORE_DOT 7
-#define I_MAIL_ALWAYS 8
-#define I_MAIL_BADPASS 9
-#define I_MAIL_NO_USER 10
-#define I_MAIL_NO_HOST 11
-#define I_MAIL_NO_PERMS 12
-#define I_TTY_TICKETS 13
-#define I_LECTURE 14
-#define I_AUTHENTICATE 15
-#define I_ROOT_SUDO 16
-#define I_LOG_HOST 17
-#define I_LOG_YEAR 18
-#define I_SHELL_NOARGS 19
-#define I_SET_HOME 20
-#define I_ALWAYS_SET_HOME 21
-#define I_PATH_INFO 22
-#define I_FQDN 23
-#define I_INSULTS 24
-#define I_REQUIRETTY 25
-#define I_ENV_EDITOR 26
-#define I_ROOTPW 27
-#define I_RUNASPW 28
-#define I_TARGETPW 29
-#define I_USE_LOGINCLASS 30
-#define I_SET_LOGNAME 31
-#define I_STAY_SETUID 32
-#define I_ENV_RESET 33
-#define I_PRESERVE_GROUPS 34
-#define I_LOGLINELEN 35
-#define I_TIMESTAMP_TIMEOUT 36
-#define I_PASSWD_TIMEOUT 37
-#define I_PASSWD_TRIES 38
-#define I_UMASK 39
-#define I_LOGFILE 40
-#define I_MAILERPATH 41
-#define I_MAILERFLAGS 42
-#define I_MAILTO 43
-#define I_MAILSUB 44
-#define I_BADPASS_MESSAGE 45
-#define I_TIMESTAMPDIR 46
-#define I_TIMESTAMPOWNER 47
-#define I_EXEMPT_GROUP 48
-#define I_PASSPROMPT 49
-#define I_RUNAS_DEFAULT 50
-#define I_EDITOR 51
-#define I_ENV_CHECK 52
-#define I_ENV_DELETE 53
-#define I_ENV_KEEP 54
-#define I_LISTPW_I 55
-#define I_VERIFYPW_I 56
-#define I_LISTPW 57
-#define I_VERIFYPW 58
+#define def_syslog (sudo_defs_table[0].sd_un.ival)
+#define I_SYSLOG 0
+#define def_syslog_goodpri (sudo_defs_table[1].sd_un.ival)
+#define I_SYSLOG_GOODPRI 1
+#define def_syslog_badpri (sudo_defs_table[2].sd_un.ival)
+#define I_SYSLOG_BADPRI 2
+#define def_long_otp_prompt (sudo_defs_table[3].sd_un.flag)
+#define I_LONG_OTP_PROMPT 3
+#define def_ignore_dot (sudo_defs_table[4].sd_un.flag)
+#define I_IGNORE_DOT 4
+#define def_mail_always (sudo_defs_table[5].sd_un.flag)
+#define I_MAIL_ALWAYS 5
+#define def_mail_badpass (sudo_defs_table[6].sd_un.flag)
+#define I_MAIL_BADPASS 6
+#define def_mail_no_user (sudo_defs_table[7].sd_un.flag)
+#define I_MAIL_NO_USER 7
+#define def_mail_no_host (sudo_defs_table[8].sd_un.flag)
+#define I_MAIL_NO_HOST 8
+#define def_mail_no_perms (sudo_defs_table[9].sd_un.flag)
+#define I_MAIL_NO_PERMS 9
+#define def_tty_tickets (sudo_defs_table[10].sd_un.flag)
+#define I_TTY_TICKETS 10
+#define def_lecture (sudo_defs_table[11].sd_un.tuple)
+#define I_LECTURE 11
+#define def_lecture_file (sudo_defs_table[12].sd_un.str)
+#define I_LECTURE_FILE 12
+#define def_authenticate (sudo_defs_table[13].sd_un.flag)
+#define I_AUTHENTICATE 13
+#define def_root_sudo (sudo_defs_table[14].sd_un.flag)
+#define I_ROOT_SUDO 14
+#define def_log_host (sudo_defs_table[15].sd_un.flag)
+#define I_LOG_HOST 15
+#define def_log_year (sudo_defs_table[16].sd_un.flag)
+#define I_LOG_YEAR 16
+#define def_shell_noargs (sudo_defs_table[17].sd_un.flag)
+#define I_SHELL_NOARGS 17
+#define def_set_home (sudo_defs_table[18].sd_un.flag)
+#define I_SET_HOME 18
+#define def_always_set_home (sudo_defs_table[19].sd_un.flag)
+#define I_ALWAYS_SET_HOME 19
+#define def_path_info (sudo_defs_table[20].sd_un.flag)
+#define I_PATH_INFO 20
+#define def_fqdn (sudo_defs_table[21].sd_un.flag)
+#define I_FQDN 21
+#define def_insults (sudo_defs_table[22].sd_un.flag)
+#define I_INSULTS 22
+#define def_requiretty (sudo_defs_table[23].sd_un.flag)
+#define I_REQUIRETTY 23
+#define def_env_editor (sudo_defs_table[24].sd_un.flag)
+#define I_ENV_EDITOR 24
+#define def_rootpw (sudo_defs_table[25].sd_un.flag)
+#define I_ROOTPW 25
+#define def_runaspw (sudo_defs_table[26].sd_un.flag)
+#define I_RUNASPW 26
+#define def_targetpw (sudo_defs_table[27].sd_un.flag)
+#define I_TARGETPW 27
+#define def_use_loginclass (sudo_defs_table[28].sd_un.flag)
+#define I_USE_LOGINCLASS 28
+#define def_set_logname (sudo_defs_table[29].sd_un.flag)
+#define I_SET_LOGNAME 29
+#define def_stay_setuid (sudo_defs_table[30].sd_un.flag)
+#define I_STAY_SETUID 30
+#define def_env_reset (sudo_defs_table[31].sd_un.flag)
+#define I_ENV_RESET 31
+#define def_preserve_groups (sudo_defs_table[32].sd_un.flag)
+#define I_PRESERVE_GROUPS 32
+#define def_loglinelen (sudo_defs_table[33].sd_un.ival)
+#define I_LOGLINELEN 33
+#define def_timestamp_timeout (sudo_defs_table[34].sd_un.ival)
+#define I_TIMESTAMP_TIMEOUT 34
+#define def_passwd_timeout (sudo_defs_table[35].sd_un.ival)
+#define I_PASSWD_TIMEOUT 35
+#define def_passwd_tries (sudo_defs_table[36].sd_un.ival)
+#define I_PASSWD_TRIES 36
+#define def_umask (sudo_defs_table[37].sd_un.mode)
+#define I_UMASK 37
+#define def_logfile (sudo_defs_table[38].sd_un.str)
+#define I_LOGFILE 38
+#define def_mailerpath (sudo_defs_table[39].sd_un.str)
+#define I_MAILERPATH 39
+#define def_mailerflags (sudo_defs_table[40].sd_un.str)
+#define I_MAILERFLAGS 40
+#define def_mailto (sudo_defs_table[41].sd_un.str)
+#define I_MAILTO 41
+#define def_mailsub (sudo_defs_table[42].sd_un.str)
+#define I_MAILSUB 42
+#define def_badpass_message (sudo_defs_table[43].sd_un.str)
+#define I_BADPASS_MESSAGE 43
+#define def_timestampdir (sudo_defs_table[44].sd_un.str)
+#define I_TIMESTAMPDIR 44
+#define def_timestampowner (sudo_defs_table[45].sd_un.str)
+#define I_TIMESTAMPOWNER 45
+#define def_exempt_group (sudo_defs_table[46].sd_un.str)
+#define I_EXEMPT_GROUP 46
+#define def_passprompt (sudo_defs_table[47].sd_un.str)
+#define I_PASSPROMPT 47
+#define def_runas_default (sudo_defs_table[48].sd_un.str)
+#define I_RUNAS_DEFAULT 48
+#define def_editor (sudo_defs_table[49].sd_un.str)
+#define I_EDITOR 49
+#define def_listpw (sudo_defs_table[50].sd_un.tuple)
+#define I_LISTPW 50
+#define def_verifypw (sudo_defs_table[51].sd_un.tuple)
+#define I_VERIFYPW 51
+#define def_noexec (sudo_defs_table[52].sd_un.flag)
+#define I_NOEXEC 52
+#define def_noexec_file (sudo_defs_table[53].sd_un.str)
+#define I_NOEXEC_FILE 53
+#define def_env_check (sudo_defs_table[54].sd_un.list)
+#define I_ENV_CHECK 54
+#define def_env_delete (sudo_defs_table[55].sd_un.list)
+#define I_ENV_DELETE 55
+#define def_env_keep (sudo_defs_table[56].sd_un.list)
+#define I_ENV_KEEP 56
+#define def_ignore_local_sudoers (sudo_defs_table[57].sd_un.flag)
+#define I_IGNORE_LOCAL_SUDOERS 57
+
+enum def_tupple {
+ never,
+ once,
+ always,
+ any,
+ all,
+};