summaryrefslogtreecommitdiff
path: root/general.h
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 14:00:36 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 14:00:36 -0800
commit4c6c603798adc8412d0be8ad46e05a2553b6b9c7 (patch)
tree3f63a4931254c5b0eae1ac5248507025c5e6e607 /general.h
parent503d52cfaf14ec7068bb070a96ee5145516b747a (diff)
downloadvyatta-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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/general.h b/general.h
index 52b2ed1..397264f 100644
--- a/general.h
+++ b/general.h
@@ -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));