diff options
author | Paweł Hajdan <phajdan.jr@gentoo.org> | 2012-05-30 06:15:24 +0000 |
---|---|---|
committer | Paweł Hajdan <phajdan.jr@gentoo.org> | 2012-05-30 06:15:24 +0000 |
commit | 6491745a93a8307610ee097acd9a807e99ba8c3f (patch) | |
tree | 9a69aca6fb87ed6ca420fad9186c713856dd2484 /eclass/chromium.eclass | |
parent | marked x86 per bug 412663 (diff) | |
download | gentoo-2-6491745a93a8307610ee097acd9a807e99ba8c3f.tar.gz gentoo-2-6491745a93a8307610ee097acd9a807e99ba8c3f.tar.bz2 gentoo-2-6491745a93a8307610ee097acd9a807e99ba8c3f.zip |
Introduce chromium_suid_sandbox_check_kernel_config, deprecate chromium_check_kernel_config.
Diffstat (limited to 'eclass/chromium.eclass')
-rw-r--r-- | eclass/chromium.eclass | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/eclass/chromium.eclass b/eclass/chromium.eclass index 31edf55621fb..2f61be8b1b20 100644 --- a/eclass/chromium.eclass +++ b/eclass/chromium.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/chromium.eclass,v 1.4 2012/05/23 18:16:30 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/chromium.eclass,v 1.5 2012/05/30 06:15:24 phajdan.jr Exp $ # @ECLASS: chromium.eclass # @MAINTAINER: @@ -17,11 +17,11 @@ if [[ ${PN} == chromium ]]; then IUSE+=" custom-cflags" fi -# @FUNCTION: chromium_check_kernel_config +# @FUNCTION: chromium_suid_sandbox_check_kernel_config # @USAGE: # @DESCRIPTION: -# Ensures the system kernel is configured for full Chromium functionality. -chromium_check_kernel_config() { +# Ensures the system kernel supports features needed for SUID sandbox to work. +chromium_suid_sandbox_check_kernel_config() { has "${EAPI:-0}" 0 1 2 3 && die "EAPI=${EAPI} is not supported" if [[ "${MERGE_TYPE}" == "source" || "${MERGE_TYPE}" == "binary" ]]; then @@ -34,6 +34,16 @@ chromium_check_kernel_config() { fi } +# @FUNCTION: chromium_check_kernel_config +# @USAGE: +# @DESCRIPTION: +# Ensures the system kernel is configured for full Chromium functionality. +chromium_check_kernel_config() { + eqawarn "chromium_check_kernel_config is deprecated." + eqawarn "Please use chromium_suid_sandbox_check_kernel_config if applicable." + chromium_suid_sandbox_check_kernel_config +} + # @ECLASS-VARIABLE: CHROMIUM_LANGS # @DEFAULT_UNSET # @DESCRIPTION: |