From: Denys Dmytriyenko <denis@denix.org>
To: rs@ti.com
Cc: mathieu.dubois-briand@bootlin.com,
richard.purdie@linuxfoundation.org, ross.burton@arm.com,
alex@linutronix.de, otavio@ossystems.com.br,
kexin.hao@windriver.com, afd@ti.com, detheridge@ti.com,
reatmon@ti.com, openembedded-core@lists.openembedded.org,
vijayp@ti.com
Subject: Re: [oe-core][PATCHv4 1/5] libx11: create tmpfile dir for x11 domain socket
Date: Thu, 15 May 2025 18:54:08 -0400 [thread overview]
Message-ID: <20250515225408.GW18383@denix.org> (raw)
In-Reply-To: <20250515214919.1404453-2-rs@ti.com>
On Thu, May 15, 2025 at 04:49:15PM -0500, rs@ti.com wrote:
> From: Randolph Sapp <rs@ti.com>
>
> Register a tmpfile.d or volatile directory entry for the x11 domain
> socket so this will always be created with the correct permissions.
>
> Currently some x11 related applications will create this directory if it
> doesn't already exist, but this is not true for everything. In addition,
> if the application in question isn't started as root, it's possible this
> directory can be owned by a non-root user. This isn't an issue by
> itself, but it can potentially lead to problems in a multi-user
> environment.
>
> Signed-off-by: Randolph Sapp <rs@ti.com>
> ---
> meta/recipes-graphics/xorg-lib/libx11_1.8.12.bb | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/meta/recipes-graphics/xorg-lib/libx11_1.8.12.bb b/meta/recipes-graphics/xorg-lib/libx11_1.8.12.bb
> index 5ce5481743..59df95291a 100644
> --- a/meta/recipes-graphics/xorg-lib/libx11_1.8.12.bb
> +++ b/meta/recipes-graphics/xorg-lib/libx11_1.8.12.bb
> @@ -36,6 +36,19 @@ PACKAGECONFIG[xcms] = "--enable-xcms,--disable-xcms"
>
> PACKAGES =+ "${PN}-xcb"
>
> +do_install:append() {
> + # temporary directory required for x11 domain sockets
> + if ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'true', 'false', d)}; then
> + install -d ${D}${libdir}/tmpfiles.d
> + echo "D! /tmp/.X11-unix 1777 root root 10d" \
> + > ${D}${libdir}/tmpfiles.d/x11.conf
> + else
> + install -d ${D}${sysconfdir}/default/volatiles
> + echo "d root root 1777 /tmp/.X11-unix none" \
> + > ${D}${sysconfdir}/default/volatiles/99_x11
> + fi
Hmm, can we have these as actual files and install them accordingly, instead
of generating them on the fly? Otherwise it gets harder to modify or adjust
them downstream.
> +}
> +
> FILES:${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB ${datadir}/X11/Xcms.txt"
> FILES:${PN}-xcb += "${libdir}/libX11-xcb.so.*"
> FILES:${PN}-locale += "${datadir}/X11/locale ${libdir}/X11/locale"
> --
> 2.49.0
next prev parent reply other threads:[~2025-05-15 22:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-15 21:49 [oe-core][PATCHv4 0/5] Display manager proposal for x11 and wayland rs
2025-05-15 21:49 ` [oe-core][PATCHv4 1/5] libx11: create tmpfile dir for x11 domain socket rs
2025-05-15 22:54 ` Denys Dmytriyenko [this message]
2025-05-16 16:18 ` Mathieu Dubois-Briand
2025-05-15 21:49 ` [oe-core][PATCHv4 2/5] emptty: add version 0.14.0 rs
2025-05-15 21:49 ` [oe-core][PATCHv4 3/5] weston-init: convert to virtual-emptty-conf rs
2025-05-15 21:49 ` [oe-core][PATCHv4 4/5] weston: remove deprecated weston-start scripts rs
2025-05-15 21:49 ` [oe-core][PATCHv4 5/5] xserver-nodm-init: convert to virtual-emptty-conf rs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250515225408.GW18383@denix.org \
--to=denis@denix.org \
--cc=afd@ti.com \
--cc=alex@linutronix.de \
--cc=detheridge@ti.com \
--cc=kexin.hao@windriver.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=otavio@ossystems.com.br \
--cc=reatmon@ti.com \
--cc=richard.purdie@linuxfoundation.org \
--cc=ross.burton@arm.com \
--cc=rs@ti.com \
--cc=vijayp@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox