mirror of
git://git.yoctoproject.org/poky
synced 2026-09-16 23:15:40 +00:00
acpid.c in acpid before 2.0.9 does not properly handle a situation in which a process has connected to acpid.socket but is not reading any data, which allows local users to cause a denial of service (daemon hang) via a crafted application that performs a connect system call but no read system calls. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-1159 (From OE-Core master rev: e7b2b84dece29d16b8f05daf962b69e78dd64cb3) (From OE-Core rev: 56f1ea2cd8eeb189ee345f215deb5867a77cd0a1) Signed-off-by: Yue Tao <yue.tao@windriver.com> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
961 B
PHP
35 lines
961 B
PHP
DESCRIPTION = "A daemon for delivering ACPI events."
|
|
HOMEPAGE = "http://sourceforge.net/projects/acpid/"
|
|
BUGTRACKER = "http://sourceforge.net/tracker/?group_id=33140&atid=407341"
|
|
|
|
LICENSE="GPLv2+"
|
|
|
|
SECTION = "base"
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
|
|
file://init \
|
|
file://set_socket_noblock.patch "
|
|
|
|
inherit update-rc.d
|
|
|
|
INITSCRIPT_NAME = "acpid"
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
|
|
# Makefile ignores our CFLAGS, so override it.
|
|
#
|
|
EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'"
|
|
|
|
do_compile () {
|
|
oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}'
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${bindir}
|
|
oe_runmake 'INSTPREFIX=${D}' install
|
|
install -d ${D}${sysconfdir}/init.d
|
|
cat ${WORKDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/acpid
|
|
chmod 755 ${D}${sysconfdir}/init.d/acpid
|
|
|
|
install -d ${D}${sysconfdir}/acpi
|
|
install -d ${D}${sysconfdir}/acpi/events
|
|
}
|