chromium.eclass: add a kernel config check for CONFIG_ADVISE_SYSCALLS
authorPawel Hajdan, Jr <phajdan.jr@gentoo.org>
Sun, 20 Sep 2015 18:23:05 +0000 (20:23 +0200)
committerPawel Hajdan, Jr <phajdan.jr@gentoo.org>
Sun, 20 Sep 2015 18:25:43 +0000 (20:25 +0200)
This option is required for the renderer to work.

This fixes bug #552576 by Fernando (likewhoa).

Stack traces and other helpful debugging info has been provided by
sagredo.

eclass/chromium.eclass

index cd641251a31244b83a8d15412955e4e7173ac731..38bcc9e50579d0377eaa8627310fcb9e472be0b9 100644 (file)
@@ -33,7 +33,10 @@ chromium_suid_sandbox_check_kernel_config() {
                ERROR_NET_NS="NET_NS is required for sandbox to work"
                ERROR_USER_NS="USER_NS is required for sandbox to work"
                ERROR_SECCOMP_FILTER="SECCOMP_FILTER is required for sandbox to work"
-               CONFIG_CHECK="~PID_NS ~NET_NS ~SECCOMP_FILTER ~USER_NS"
+               # Warn if the kernel does not support features needed for the browser to work
+               # (bug #552576).
+               ERROR_CONFIG_ADVISE_SYSCALLS="CONFIG_ADVISE_SYSCALLS is required for the renderer (bug #552576)"
+               CONFIG_CHECK="~PID_NS ~NET_NS ~SECCOMP_FILTER ~USER_NS ~CONFIG_ADVISE_SYSCALLS"
                check_extra_config
        fi
 }