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 | |
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')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/chromium.eclass | 18 |
2 files changed, 19 insertions, 5 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 96ed61abd739..c6382b17b86c 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.275 2012/05/29 08:05:05 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.276 2012/05/30 06:15:24 phajdan.jr Exp $ + + 30 May 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> chromium.eclass: + Introduce chromium_suid_sandbox_check_kernel_config, deprecate + chromium_check_kernel_config. 29 May 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> gnustep-2.eclass, gnustep-base.eclass: 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: |