summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-10 18:56:21 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-10 18:56:21 -0800
commit688433f5c3da09c9de19fec8d6217764bb5a036c (patch)
treeec1b5e77872e26640d39cf740774ee430806e0ab /debian
parentf6ec442f339611df91a79c770483d0e6b13566ff (diff)
downloadvyatta-op-688433f5c3da09c9de19fec8d6217764bb5a036c.tar.gz
vyatta-op-688433f5c3da09c9de19fec8d6217764bb5a036c.zip
add wrappers/symlinks for pipe commands (wrappers are needed for command
matching in restricted modes).
Diffstat (limited to 'debian')
-rw-r--r--debian/vyatta-op.postinst.in4
-rw-r--r--debian/vyatta-op.postrm.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/vyatta-op.postinst.in b/debian/vyatta-op.postinst.in
index 4f0b3b4..626ace2 100644
--- a/debian/vyatta-op.postinst.in
+++ b/debian/vyatta-op.postinst.in
@@ -8,4 +8,8 @@ bindir=@bindir@
ln -sf /usr/sbin/ethtool ${bindir}/sudo-users/ethtool
ln -sf /usr/sbin/dmidecode ${bindir}/sudo-users/dmidecode
ln -sf /sbin/iptables ${bindir}/sudo-users/iptables
+ln -sf ${bindir}/count /usr/bin/
+ln -sf ${bindir}/match /usr/bin/
+ln -sf ${bindir}/no-match /usr/bin/
+ln -sf ${bindir}/no-more /usr/bin/
diff --git a/debian/vyatta-op.postrm.in b/debian/vyatta-op.postrm.in
index f86a7ba..34f21ed 100644
--- a/debian/vyatta-op.postrm.in
+++ b/debian/vyatta-op.postrm.in
@@ -9,5 +9,9 @@ if [ "$1" = "purge" ]; then
rm -f ${bindir}/sudo-users/ethtool
rm -f ${bindir}/sudo-users/dmidecode
rm -f ${bindir}/sudo-users/iptables
+ rm -f /usr/bin/count
+ rm -f /usr/bin/match
+ rm -f /usr/bin/no-match
+ rm -f /usr/bin/no-more
fi