Files
brave-bin/brave-bin.sh
2018-11-23 12:55:07 -04:00

9 lines
380 B
Bash

#!/usr/bin/env sh
if [[ ! (-r /proc/sys/kernel/unprivileged_userns_clone && $(< /proc/sys/kernel/unprivileged_userns_clone) == 1 && -n $(zcat /proc/config.gz | grep CONFIG_USER_NS=y) ) ]]; then
>&2 echo "User namespaces are not detected as enabled on your system, brave will run with the sandbox disabled"
FLAG="--no-sandbox"
fi
exec "/usr/lib/brave-bin/brave" $@ $FLAG