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" -- "$@"