diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 14:00:36 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 14:00:36 -0800 |
commit | 4c6c603798adc8412d0be8ad46e05a2553b6b9c7 (patch) | |
tree | 3f63a4931254c5b0eae1ac5248507025c5e6e607 /general.h | |
parent | 503d52cfaf14ec7068bb070a96ee5145516b747a (diff) | |
download | vyatta-bash-4c6c603798adc8412d0be8ad46e05a2553b6b9c7.tar.gz vyatta-bash-4c6c603798adc8412d0be8ad46e05a2553b6b9c7.zip |
set default restricted mode based on group (in "vyattacfg" => "output",
otherwise => "full").
Diffstat (limited to 'general.h')
-rw-r--r-- | general.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -43,6 +43,16 @@ # include <limits.h> #endif +#if defined(HAVE_UNISTD_H) +# include <unistd.h> +#endif + +#include <pwd.h> + +#if defined(HAVE_GRP_H) +# include <grp.h> +#endif + #include "xmalloc.h" /* NULL pointer type. */ @@ -317,6 +327,7 @@ extern int group_member __P((gid_t)); extern char **get_group_list __P((int *)); extern int *get_group_array __P((int *)); +extern void set_vyatta_restricted_mode __P((void)); enum vyatta_restricted_type { OUTPUT, FULL }; extern int in_vyatta_restricted_mode __P((enum vyatta_restricted_type)); |