* [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp
@ 2024-11-21 14:01 Nikita Kiryushin
2025-01-03 22:40 ` Thomas Petazzoni via buildroot
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Nikita Kiryushin @ 2024-11-21 14:01 UTC (permalink / raw)
To: buildroot; +Cc: Nikita Kiryushin
dbus has a session socket directory configuration setting,
that, if not set, will be autodeducted based on env vars
during configuration time.
Becuse of that, builder's environment variables may be used,
which will lead to an image with a broken session bus while
leaking builder's details to the image.
Add an explicit setting of session-socket-dir to /tmp dir.
Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
---
package/dbus/dbus.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index c60bf473cd..2002e707f0 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -34,6 +34,7 @@ DBUS_CONF_OPTS = \
--disable-doxygen-docs \
--with-system-socket=/run/dbus/system_bus_socket \
--with-system-pid-file=/run/messagebus.pid \
+ --with-session-socket-dir=/tmp \
--runstatedir=/run
ifeq ($(BR2_STATIC_LIBS),y)
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp
2024-11-21 14:01 [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp Nikita Kiryushin
@ 2025-01-03 22:40 ` Thomas Petazzoni via buildroot
2025-01-05 11:29 ` Fiona Klute via buildroot
2025-05-16 16:33 ` Arnout Vandecappelle via buildroot
2025-05-18 14:42 ` Arnout Vandecappelle via buildroot
2 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-01-03 22:40 UTC (permalink / raw)
To: Nikita Kiryushin; +Cc: buildroot, Fiona Klute
Hello Nikita,
+Fiona in Cc.
On Thu, 21 Nov 2024 17:01:34 +0300
Nikita Kiryushin <kiryushin@ancud.ru> wrote:
> dbus has a session socket directory configuration setting,
> that, if not set, will be autodeducted based on env vars
> during configuration time.
>
> Becuse of that, builder's environment variables may be used,
> which will lead to an image with a broken session bus while
> leaking builder's details to the image.
>
> Add an explicit setting of session-socket-dir to /tmp dir.
>
> Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
This looks reasonable to me. It also fixes
https://gitlab.com/buildroot.org/buildroot/-/issues/67 where a
few more details are given.
Fiona, could you review this patch, and give your opinion? It would be
much appreciated!
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp
2025-01-03 22:40 ` Thomas Petazzoni via buildroot
@ 2025-01-05 11:29 ` Fiona Klute via buildroot
2025-01-05 11:31 ` Fiona Klute via buildroot
0 siblings, 1 reply; 6+ messages in thread
From: Fiona Klute via buildroot @ 2025-01-05 11:29 UTC (permalink / raw)
To: Thomas Petazzoni, Nikita Kiryushin; +Cc: buildroot
Am 04.01.25 um 00:40 schrieb Thomas Petazzoni:
> Hello Nikita,
>
> +Fiona in Cc.
>
> On Thu, 21 Nov 2024 17:01:34 +0300
> Nikita Kiryushin <kiryushin@ancud.ru> wrote:
>
>> dbus has a session socket directory configuration setting,
>> that, if not set, will be autodeducted based on env vars
>> during configuration time.
>>
>> Becuse of that, builder's environment variables may be used,
>> which will lead to an image with a broken session bus while
>> leaking builder's details to the image.
>>
>> Add an explicit setting of session-socket-dir to /tmp dir.
>>
>> Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
>
> This looks reasonable to me. It also fixes
> https://gitlab.com/buildroot.org/buildroot/-/issues/67 where a
> few more details are given.
>
> Fiona, could you review this patch, and give your opinion? It would be
> much appreciated!
Looks reasonable to me, all it does is set the default (see
DEFAULT_SOCKET_DIR in dbus' configure.ac) explicitly so it won't be
overwritten by environment variables of the build system. Allowing
override from environment in the first place seems like an odd choice to
me, but that's an upstream decision, maybe it's convenient during
development.
Best regards,
Fiona
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp
2025-01-05 11:29 ` Fiona Klute via buildroot
@ 2025-01-05 11:31 ` Fiona Klute via buildroot
0 siblings, 0 replies; 6+ messages in thread
From: Fiona Klute via buildroot @ 2025-01-05 11:31 UTC (permalink / raw)
To: Thomas Petazzoni, Nikita Kiryushin; +Cc: buildroot
Am 05.01.25 um 13:29 schrieb Fiona Klute:
> Am 04.01.25 um 00:40 schrieb Thomas Petazzoni:
>> Hello Nikita,
>>
>> +Fiona in Cc.
>>
>> On Thu, 21 Nov 2024 17:01:34 +0300
>> Nikita Kiryushin <kiryushin@ancud.ru> wrote:
>>
>>> dbus has a session socket directory configuration setting,
>>> that, if not set, will be autodeducted based on env vars
>>> during configuration time.
>>>
>>> Becuse of that, builder's environment variables may be used,
>>> which will lead to an image with a broken session bus while
>>> leaking builder's details to the image.
>>>
>>> Add an explicit setting of session-socket-dir to /tmp dir.
>>>
>>> Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
>>
>> This looks reasonable to me. It also fixes
>> https://gitlab.com/buildroot.org/buildroot/-/issues/67 where a
>> few more details are given.
>>
>> Fiona, could you review this patch, and give your opinion? It would be
>> much appreciated!
>
> Looks reasonable to me, all it does is set the default (see
> DEFAULT_SOCKET_DIR in dbus' configure.ac) explicitly so it won't be
> overwritten by environment variables of the build system. Allowing
> override from environment in the first place seems like an odd choice to
> me, but that's an upstream decision, maybe it's convenient during
> development.
Sorry about the extra mail, forgot to add:
Reviewed-by: Fiona Klute <fiona.klute@gmx.de>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp
2024-11-21 14:01 [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp Nikita Kiryushin
2025-01-03 22:40 ` Thomas Petazzoni via buildroot
@ 2025-05-16 16:33 ` Arnout Vandecappelle via buildroot
2025-05-18 14:42 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 6+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-05-16 16:33 UTC (permalink / raw)
To: Nikita Kiryushin, buildroot
On 21/11/2024 15:01, Nikita Kiryushin wrote:
> dbus has a session socket directory configuration setting,
> that, if not set, will be autodeducted based on env vars
> during configuration time.
>
> Becuse of that, builder's environment variables may be used,
> which will lead to an image with a broken session bus while
> leaking builder's details to the image.
>
> Add an explicit setting of session-socket-dir to /tmp dir.
>
> Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
Finally applied to master, thanks!
Regards,
Arnout
> ---
> package/dbus/dbus.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
> index c60bf473cd..2002e707f0 100644
> --- a/package/dbus/dbus.mk
> +++ b/package/dbus/dbus.mk
> @@ -34,6 +34,7 @@ DBUS_CONF_OPTS = \
> --disable-doxygen-docs \
> --with-system-socket=/run/dbus/system_bus_socket \
> --with-system-pid-file=/run/messagebus.pid \
> + --with-session-socket-dir=/tmp \
> --runstatedir=/run
>
> ifeq ($(BR2_STATIC_LIBS),y)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp
2024-11-21 14:01 [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp Nikita Kiryushin
2025-01-03 22:40 ` Thomas Petazzoni via buildroot
2025-05-16 16:33 ` Arnout Vandecappelle via buildroot
@ 2025-05-18 14:42 ` Arnout Vandecappelle via buildroot
2 siblings, 0 replies; 6+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-05-18 14:42 UTC (permalink / raw)
To: Nikita Kiryushin, buildroot
On 21/11/2024 15:01, Nikita Kiryushin wrote:
> dbus has a session socket directory configuration setting,
> that, if not set, will be autodeducted based on env vars
> during configuration time.
>
> Becuse of that, builder's environment variables may be used,
> which will lead to an image with a broken session bus while
> leaking builder's details to the image.
>
> Add an explicit setting of session-socket-dir to /tmp dir.
>
> Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
Applied to 2025.02.x, thanks.
Regards,
Arnout
> ---
> package/dbus/dbus.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
> index c60bf473cd..2002e707f0 100644
> --- a/package/dbus/dbus.mk
> +++ b/package/dbus/dbus.mk
> @@ -34,6 +34,7 @@ DBUS_CONF_OPTS = \
> --disable-doxygen-docs \
> --with-system-socket=/run/dbus/system_bus_socket \
> --with-system-pid-file=/run/messagebus.pid \
> + --with-session-socket-dir=/tmp \
> --runstatedir=/run
>
> ifeq ($(BR2_STATIC_LIBS),y)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-05-18 14:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21 14:01 [Buildroot] [PATCH 1/1] package/dbus: set session-socket-dir to /tmp Nikita Kiryushin
2025-01-03 22:40 ` Thomas Petazzoni via buildroot
2025-01-05 11:29 ` Fiona Klute via buildroot
2025-01-05 11:31 ` Fiona Klute via buildroot
2025-05-16 16:33 ` Arnout Vandecappelle via buildroot
2025-05-18 14:42 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox