Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/bird: add a unprivileged user
@ 2019-02-05 10:56 Adrien Gallouët
  2019-03-17 16:49 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Adrien Gallouët @ 2019-02-05 10:56 UTC (permalink / raw)
  To: buildroot

This commit add a specific unprivileged user for BIRD
to avoid full root privileges while running.

Signed-off-by: Adrien Gallou?t <adrien@gallouet.fr>
---
 package/bird/bird.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/bird/bird.mk b/package/bird/bird.mk
index da2f868070..8091644108 100644
--- a/package/bird/bird.mk
+++ b/package/bird/bird.mk
@@ -17,4 +17,12 @@ else
 BIRD_CONF_OPTS += --disable-client
 endif
 
+define BIRD_USERS
+	bird -1 bird -1 * - - - BIRD unprivileged user
+endef
+
+define BIRD_PERMISSIONS
+	/etc/bird.conf r 600 bird bird - - - - -
+endef
+
 $(eval $(autotools-package))
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-23 16:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-05 10:56 [Buildroot] [PATCH 1/1] package/bird: add a unprivileged user Adrien Gallouët
2019-03-17 16:49 ` Thomas Petazzoni
2019-03-17 19:56   ` Adrien Gallouët
2019-03-18 10:05     ` Thomas Petazzoni
2019-06-23 16:10       ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox