summarylogtreecommitdiffstats
path: root/brave-launcher
blob: 78b8899a5c765b66e0b8a617be6a7f1f62003934 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/sh

FLAG="--no-sandbox"

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
	FLAG=""
fi

exec /usr/lib/brave/brave "$FLAG" -- "$@"