All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.