mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
x11-volatiles: register x11 volatile directories
Add a volatiles entry for popular x11 and adjacent utilities. This is designed to mimic the systemd tmpfiles.d entries and prevent any one user from creating these directories with permissions that may negatively impact multi-user environments. (From OE-Core rev: 36473898f0a122880aaa2220fbf98732027d759f) Signed-off-by: Randolph Sapp <rs@ti.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
782cb75ae9
commit
c6fd6ec364
|
|
@ -886,6 +886,7 @@ RECIPE_MAINTAINER:pn-wic-tools = "Unassigned <unassigned@yoctoproject.org>"
|
|||
RECIPE_MAINTAINER:pn-wireless-regdb = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-wpa-supplicant = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-wpebackend-fdo = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-x11-volatiles = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-x11perf = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-x264 = "Unassigned <unassigned@yoctoproject.org>"
|
||||
RECIPE_MAINTAINER:pn-xauth = "Unassigned <unassigned@yoctoproject.org>"
|
||||
|
|
|
|||
20
meta/recipes-graphics/x11-common/x11-volatiles.bb
Normal file
20
meta/recipes-graphics/x11-common/x11-volatiles.bb
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
SUMMARY = "Xserver Volatile Directories"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
|
||||
SECTION = "x11"
|
||||
|
||||
SRC_URI = "file://02_x11"
|
||||
|
||||
S = "${UNPACKDIR}"
|
||||
|
||||
inherit bin_package features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
CONFLICT_DISTRO_FEATURES = "systemd"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sysconfdir}/default/volatiles
|
||||
install -m 0644 ${UNPACKDIR}/02_x11 ${D}${sysconfdir}/default/volatiles
|
||||
}
|
||||
|
||||
FILES:${PN} += "${sysconfdir}/default/volatiles"
|
||||
6
meta/recipes-graphics/x11-common/x11-volatiles/02_x11
Normal file
6
meta/recipes-graphics/x11-common/x11-volatiles/02_x11
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Volatile entries to match systemd
|
||||
# https://github.com/systemd/systemd/blob/main/tmpfiles.d/x11.conf
|
||||
d root root 1777 /tmp/.X11-unix none
|
||||
d root root 1777 /tmp/.ICE-unix none
|
||||
d root root 1777 /tmp/.XIM-unix none
|
||||
d root root 1777 /tmp/.font-unix none
|
||||
|
|
@ -26,3 +26,5 @@ RCONFLICTS:${PN} = "${PN}-extension-dri \
|
|||
${PN}-extension-extmod \
|
||||
${PN}-extension-dbe \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} += "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "", "x11-volatiles", d)}"
|
||||
|
|
|
|||
|
|
@ -47,4 +47,4 @@ do_install:append() {
|
|||
|
||||
FILES:${PN} += "${libdir}/xorg/protocol.txt"
|
||||
|
||||
RDEPENDS:${PN} += "xkbcomp"
|
||||
RDEPENDS:${PN} += "xkbcomp ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "", "x11-volatiles", d)}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user