mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
https://gitlab.freedesktop.org/dbus/dbus/-/issues/198
6072f8b241
Currently, if the "dbus" security class or the associated AV doesn't
exist, dbus-daemon fails to initialize and exits immediately. Also the
security classes or access vector cannot be reordered in the policy.
This can be a problem for people developing their own policy or trying
to access a machine where, for some reasons, there is not policy defined
at all.
The code here copy the behaviour of the selinux_check_access() function.
We cannot use this function here as it doesn't allow us to define the
AVC entry reference.
See the discussion at https://marc.info/?l=selinux&m=152163374332372&w=2
(From OE-Core rev: 0441b53d55a919b5ac42e997f4092053b017b553)
Signed-off-by: Nisha Parrakat <nishaparrakat@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
36 lines
1.7 KiB
PHP
36 lines
1.7 KiB
PHP
inherit autotools pkgconfig gettext upstream-version-is-even
|
|
|
|
LICENSE = "AFL-2.1 | GPLv2+"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
|
|
file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c"
|
|
|
|
SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
|
|
file://tmpdir.patch \
|
|
file://dbus-1.init \
|
|
file://clear-guid_from_server-if-send_negotiate_unix_f.patch \
|
|
file://stop_using_selinux_set_mapping.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "dfe8a71f412e0b53be26ed4fbfdc91c4"
|
|
SRC_URI[sha256sum] = "f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe"
|
|
|
|
EXTRA_OECONF = "--disable-xml-docs \
|
|
--disable-doxygen-docs \
|
|
--enable-largefile \
|
|
--with-system-socket=/run/dbus/system_bus_socket \
|
|
"
|
|
EXTRA_OECONF:append:class-target = " SYSTEMCTL=${base_bindir}/systemctl"
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \
|
|
user-session \
|
|
"
|
|
PACKAGECONFIG:class-native = ""
|
|
PACKAGECONFIG:class-nativesdk = ""
|
|
|
|
PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--disable-systemd --without-systemdsystemunitdir,systemd"
|
|
PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm"
|
|
PACKAGECONFIG[user-session] = "--enable-user-session --with-systemduserunitdir=${systemd_user_unitdir},--disable-user-session"
|
|
PACKAGECONFIG[verbose-mode] = "--enable-verbose-mode,,,"
|
|
PACKAGECONFIG[audit] = "--enable-libaudit,--disable-libaudit,audit"
|
|
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
|