* [Buildroot] [PATCH 1/1] package/chrony: set the permissions with CHRONY_PERMISSIONS
@ 2024-09-19 12:58 TIAN Yuanhao
2024-10-26 19:03 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: TIAN Yuanhao @ 2024-09-19 12:58 UTC (permalink / raw)
To: buildroot; +Cc: TIAN Yuanhao
Fixes:
chronyd[241]: Could not open /var/lib/chrony/chrony.drift.tmp : Permission denied
Refs:
https://github.com/jens-maus/RaspberryMatic/blob/3.77.7.20240826/buildroot-external/overlay/base/etc/init.d/S46chrony#L44
https://github.com/troglobit/myLinux/blob/5ab2ec53d70904b1c3f2570afaa31eeaa4c4487b/package/skeleton-init-finit/skeleton/etc/tmpfiles.d/chrony.conf
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
---
package/chrony/chrony.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/chrony/chrony.mk b/package/chrony/chrony.mk
index 9ed9dcff56..11270206bd 100644
--- a/package/chrony/chrony.mk
+++ b/package/chrony/chrony.mk
@@ -24,6 +24,10 @@ define CHRONY_USERS
chrony -1 chrony -1 * /run/chrony - - Time daemon
endef
+define CHRONY_PERMISSIONS
+ /var/lib/chrony d 755 chrony chrony - - - - -
+endef
+
ifeq ($(BR2_PACKAGE_LIBNSS),y)
CHRONY_DEPENDENCIES += libnss
else
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/chrony: set the permissions with CHRONY_PERMISSIONS
2024-09-19 12:58 [Buildroot] [PATCH 1/1] package/chrony: set the permissions with CHRONY_PERMISSIONS TIAN Yuanhao
@ 2024-10-26 19:03 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-10-26 19:03 UTC (permalink / raw)
To: TIAN Yuanhao; +Cc: buildroot
On Thu, 19 Sep 2024 05:58:20 -0700
TIAN Yuanhao <tianyuanhao3@163.com> wrote:
> Fixes:
> chronyd[241]: Could not open /var/lib/chrony/chrony.drift.tmp : Permission denied
>
> Refs:
> https://github.com/jens-maus/RaspberryMatic/blob/3.77.7.20240826/buildroot-external/overlay/base/etc/init.d/S46chrony#L44
> https://github.com/troglobit/myLinux/blob/5ab2ec53d70904b1c3f2570afaa31eeaa4c4487b/package/skeleton-init-finit/skeleton/etc/tmpfiles.d/chrony.conf
>
> Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
> ---
> package/chrony/chrony.mk | 4 ++++
> 1 file changed, 4 insertions(+)
Applied to master, thanks. It would be good to add a runtime test in
support/testing/ for chrony.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-26 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-19 12:58 [Buildroot] [PATCH 1/1] package/chrony: set the permissions with CHRONY_PERMISSIONS TIAN Yuanhao
2024-10-26 19:03 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox