summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-02 19:43:23 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-02 19:43:23 -0500
commitd405670716b948d5156db56e4fc4fb0af10d4fd7 (patch)
tree26cf85ca639abb817c3c5dd7774297745ffd78b9 /etc
parent60566d36329b86b204688b8a8fe5469b7a77425f (diff)
downloadvyatta-cfg-d405670716b948d5156db56e4fc4fb0af10d4fd7.tar.gz
vyatta-cfg-d405670716b948d5156db56e4fc4fb0af10d4fd7.zip
Add support for unambiguous top level commands for unpriviledged users; generate allowed-op short commands at boot time
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vyatta-router7
-rw-r--r--etc/shell/level/users/allowed-op.in (renamed from etc/shell/level/users/allowed-op)0
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router
index e10f054..43c9e29 100755
--- a/etc/init.d/vyatta-router
+++ b/etc/init.d/vyatta-router
@@ -186,6 +186,12 @@ mount_slash_config ()
fi
}
+generate_unpriv_cmds ()
+{
+ source /opt/vyatta/share/vyatta-op/functions/interpreter/vyatta-unpriv
+ vyatta_unpriv_gen_allowed
+}
+
start ()
{
log_action_begin_msg "Mounting Vyatta Config"
@@ -230,6 +236,7 @@ start ()
telinit q
bind_mount_boot
chmod g-w,o-w /
+ generate_unpriv_cmds
}
stop()
diff --git a/etc/shell/level/users/allowed-op b/etc/shell/level/users/allowed-op.in
index a45a92f..a45a92f 100644
--- a/etc/shell/level/users/allowed-op
+++ b/etc/shell/level/users/allowed-op.in