summaryrefslogtreecommitdiff
path: root/shell.c
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 /shell.c
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 'shell.c')
-rw-r--r--shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell.c b/shell.c
index b8dcf32..36a9c66 100644
--- a/shell.c
+++ b/shell.c
@@ -528,6 +528,9 @@ main (argc, argv, env)
if (shopt_alist)
run_shopt_alist ();
+ /* check and set the default vyatta restricted mode */
+ set_vyatta_restricted_mode ();
+
/* From here on in, the shell must be a normal functioning shell.
Variables from the environment are expected to be set, etc. */
shell_initialize ();