From f773bb8bc0048d877b637eecbc31a2a891c5b996 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 12 May 2026 20:48:26 +0200 Subject: [PATCH] package/opendoas: add SUID bit to installed binary Signed-off-by: Francois Perrad Reviewed-by: Yann E. MORIN [Marcus: slightly reword commit title to mention SUID bit] Signed-off-by: Marcus Hoffmann --- package/opendoas/opendoas.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/opendoas/opendoas.mk b/package/opendoas/opendoas.mk index 06626508f4..4f36d20ca9 100644 --- a/package/opendoas/opendoas.mk +++ b/package/opendoas/opendoas.mk @@ -50,10 +50,14 @@ define OPENDOAS_BUILD_CMDS endef define OPENDOAS_INSTALL_TARGET_CMDS - $(INSTALL) -D -m 0755 $(@D)/doas $(TARGET_DIR)/usr/bin/doas + $(INSTALL) -D $(@D)/doas $(TARGET_DIR)/usr/bin/doas $(OPENDOAS_INSTALL_PAM_CONF) endef +define OPENDOAS_PERMISSIONS + /usr/bin/doas f 4755 0 0 - - - - - +endef + # NOTE: Even though this package has a "configure" script, it is not # generated using autotools, so we have to use the generic package # infrastructure.