gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: netjail tweaks


From: gnunet
Subject: [taler-deployment] branch master updated: netjail tweaks
Date: Sun, 16 Feb 2020 19:31:53 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new eca7832  netjail tweaks
eca7832 is described below

commit eca7832242d4c5cedf9e3fc7627fb1a26fc9cc5e
Author: Florian Dold <address@hidden>
AuthorDate: Sun Feb 16 19:31:46 2020 +0100

    netjail tweaks
---
 netjail/netjail-init.sh | 3 +++
 netjail/netjail.sh      | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/netjail/netjail-init.sh b/netjail/netjail-init.sh
index a16eb82..7fd0dd5 100755
--- a/netjail/netjail-init.sh
+++ b/netjail/netjail-init.sh
@@ -9,6 +9,9 @@
 #
 set -eu
 
+# Be extra safe, even though sudo should already do this.
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+
 # Setup virtual bridge which we will use to connect all
 # of the builder networks to.
 
diff --git a/netjail/netjail.sh b/netjail/netjail.sh
index b07927b..df4df1a 100755
--- a/netjail/netjail.sh
+++ b/netjail/netjail.sh
@@ -48,4 +48,4 @@ ip netns exec "$NAME" ip route add default via 10.42.42.1
 
 # Finally, run whatever the user's command was
 ME=${SUDO_USER:?must run in sudo}
-exec unshare -pf -- ip netns exec "$NAME" sudo -u "$ME" -- "$@"
+exec unshare -pf --mount-proc -- ip netns exec "$NAME" sudo -u "$ME" -- "$@"

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]