version 1.1.1.3, 2012/10/09 09:29:52
|
version 1.1.1.5, 2014/06/15 16:12:54
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 1999-2005, 2008-2010 | * Copyright (c) 1999-2005, 2008-2013 |
* Todd C. Miller <Todd.Miller@courtesan.com> |
* Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
Line 19
|
Line 19
|
* Materiel Command, USAF, under agreement number F39502-99-1-0512. |
* Materiel Command, USAF, under agreement number F39502-99-1-0512. |
*/ |
*/ |
|
|
#ifndef _SUDO_DEFAULTS_H | #ifndef _SUDOERS_DEFAULTS_H |
#define _SUDO_DEFAULTS_H | #define _SUDOERS_DEFAULTS_H |
|
|
#include <def_data.h> |
#include <def_data.h> |
|
|
struct list_member { |
struct list_member { |
|
SLIST_ENTRY(list_member) entries; |
char *value; |
char *value; |
struct list_member *next; |
|
}; |
}; |
|
|
struct def_values { | SLIST_HEAD(list_members, list_member); |
char *sval; /* string value */ | |
int ival; /* actually an enum */ | |
}; | |
|
|
enum list_ops { |
enum list_ops { |
add, |
add, |
Line 40 enum list_ops {
|
Line 37 enum list_ops {
|
freeall |
freeall |
}; |
}; |
|
|
|
/* Mapping of tuple string value to enum def_tuple. */ |
|
struct def_values { |
|
char *sval; /* string value */ |
|
enum def_tuple nval;/* numeric value */ |
|
}; |
|
|
/* |
/* |
* Structure describing compile-time and run-time options. |
* Structure describing compile-time and run-time options. |
*/ |
*/ |
Line 52 struct sudo_defs_types {
|
Line 55 struct sudo_defs_types {
|
union { |
union { |
int flag; |
int flag; |
int ival; |
int ival; |
|
unsigned int uival; |
double fval; |
double fval; |
enum def_tuple tuple; |
enum def_tuple tuple; |
char *str; |
char *str; |
mode_t mode; |
mode_t mode; |
struct list_member *list; | struct list_members list; |
} sd_un; |
} sd_un; |
}; |
}; |
|
|
Line 113 bool check_defaults(int what, bool quiet);
|
Line 117 bool check_defaults(int what, bool quiet);
|
|
|
extern struct sudo_defs_types sudo_defs_table[]; |
extern struct sudo_defs_types sudo_defs_table[]; |
|
|
#endif /* _SUDO_DEFAULTS_H */ | #endif /* _SUDOERS_DEFAULTS_H */ |