From 6ca790e55f9e66c7ccffde8790a96d2803e0b6da Mon Sep 17 00:00:00 2001
From: Tyler Amick <tyleramick01@gmail.com>
Date: Wed, 17 Jul 2024 21:18:18 +0000
Subject: [PATCH] community/lldpd: allow members of lldpd group to access lldpd
 socket

Members of the lldpd group are unable to use lldpcli and related tools because the permissions on the socket directory are incorrect. Corrected permissions to 770 and updated checksum in APKBUILD.
---
 community/lldpd/APKBUILD    | 2 +-
 community/lldpd/lldpd.initd | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/community/lldpd/APKBUILD b/community/lldpd/APKBUILD
index 8b837019c6c9..0ccf40aad7d7 100644
--- a/community/lldpd/APKBUILD
+++ b/community/lldpd/APKBUILD
@@ -71,5 +71,5 @@ package() {
 sha512sums="
 d468479796a01c5bc6da78b3dfe9d062d7c84de4176647909b9b0e72b7da10d628f4fc934ebf78026f5103bce2d0c21e325612bc5f2110c57860fb609822ca37  lldpd-1.0.18.tar.gz
 a2a4c85068a6b8b80c92fe56af7799a8b8cb2516e5a65b3ae4cb28f278e5acc72402da2a35f0c48a6048fd4a8536061142cafaa49a4bae8e52ca0a5d9ed38b4c  lldpd.confd
-8d88e2a21efee6389d4de4f1ce2fcc9da8bd8ab3cb5a2bf2d322bde577e255662d027688065282146b389b3b8076fb883897e600fd931bcdc30d757fc7191e34  lldpd.initd
+ffe1b3ca2dcd1c2c1d7ac24f2b90bd5324596bb4252be64a8be36d562df402b38341952fb00ab909706ae2fe854e205e2f48746a4b718b39d7e72ddee4af445c  lldpd.initd
 "
diff --git a/community/lldpd/lldpd.initd b/community/lldpd/lldpd.initd
index 9cebc81cc08b..5c44f15c0865 100644
--- a/community/lldpd/lldpd.initd
+++ b/community/lldpd/lldpd.initd
@@ -14,6 +14,6 @@ depend() {
 }
 
 start_pre() {
-	checkpath --directory /run/lldpd -o lldpd -m 0700
+	checkpath --directory /run/lldpd -o lldpd -m 0770
 }
 
-- 
GitLab