diff options
Diffstat (limited to 'brave-bin.sh')
-rw-r--r-- | brave-bin.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/brave-bin.sh b/brave-bin.sh new file mode 100644 index 000000000000..912d67ffc121 --- /dev/null +++ b/brave-bin.sh @@ -0,0 +1,8 @@ +#!/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" -- "$@" |