diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-07 18:24:12 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-07 18:24:12 -0800 |
commit | c246e6fcb064318dab5b64f84e0b68e49cb80500 (patch) | |
tree | 31f84da4c46317bb91ef6a36e5dad8596eba9ac0 /vyatta-restricted.h | |
parent | f97fa562124a04296a567aadd535662e68c7f8f5 (diff) | |
download | vyatta-bash-c246e6fcb064318dab5b64f84e0b68e49cb80500.tar.gz vyatta-bash-c246e6fcb064318dab5b64f84e0b68e49cb80500.zip |
support external per-level policies controlling default restricted mode
and allowed op/cfg/pipe commands, i.e., no more hard-coded policies in bash.
Diffstat (limited to 'vyatta-restricted.h')
-rw-r--r-- | vyatta-restricted.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/vyatta-restricted.h b/vyatta-restricted.h index beda140..32888c8 100644 --- a/vyatta-restricted.h +++ b/vyatta-restricted.h @@ -19,23 +19,13 @@ This code was originally developed by Vyatta, Inc. Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc. */ -#include "command.h" - #if !defined(_VYATTA_RESTRICTED_H_) #define _VYATTA_RESTRICTED_H_ -#if defined(HAVE_UNISTD_H) -# include <unistd.h> -#endif +#include <stdio.h> -#include <pwd.h> -#include <dirent.h> - -#if defined(HAVE_GRP_H) -# include <grp.h> -#endif +#include "command.h" -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)); extern int is_vyatta_command __P((char *, COMMAND *)); |