Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Commit

Permalink
security: disable execution of xterm (and any term), related to #18 (…
Browse files Browse the repository at this point in the history
…just disabling directly w/o apparmor)

also set http_proxy and https_proxy globally
  • Loading branch information
ikreymer committed Dec 10, 2015
1 parent 8041e1f commit 73efea7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion browsers/base-browser/entry_point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ Xvfb $DISPLAY -screen 0 $GEOMETRY -ac +extension RANDR &
bash /novnc/utils/launch.sh --vnc localhost:5900 &


http_proxy=http://netcapsule_pywb_1:8080 wget -O /tmp/res "http://set.pywb.proxy/setts?ts=$TS"
export http_proxy=http://netcapsule_pywb_1:8080
export https_proxy=http://netcapsule_pywb_1:8080
wget -O /dev/null "http://set.pywb.proxy/setts?ts=$TS"


function shutdown {
kill -s SIGTERM $NODE_PID
wait $NODE_PID
}

# disable any terms
sudo chmod a-x /usr/bin/*term
sudo chmod a-x /bin/*term

# Run browser here
eval "$@" &

Expand Down
2 changes: 2 additions & 0 deletions browsers/mosaic/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

unset http_proxy
unset https_proxy
#fluxbox -display $DISPLAY -log /tmp/fluxbox.log &
fvwm -d $DISPLAY &

Expand Down

0 comments on commit 73efea7

Please sign in to comment.