The 'sudoers.d' provides a more flexible way to install individual and
independent permission files without using a shared single '/etc/sudoers'
file.

Signed-off-by: Juergen Borleis <j...@pengutronix.de>
---
 projectroot/etc/sudoers | 3 +++
 rules/sudo.make         | 1 +
 2 files changed, 4 insertions(+)

diff --git a/projectroot/etc/sudoers b/projectroot/etc/sudoers
index c57a3ef44..b04419c9d 100644
--- a/projectroot/etc/sudoers
+++ b/projectroot/etc/sudoers
@@ -31,3 +31,6 @@ root  ALL=(ALL) ALL
 # Samples
 # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
 # %users  localhost=/sbin/shutdown -h now
+
+# include other dedicated settings
+#includedir /etc/sudoers.d
diff --git a/rules/sudo.make b/rules/sudo.make
index 6fedc232a..87ebd2c14 100644
--- a/rules/sudo.make
+++ b/rules/sudo.make
@@ -113,6 +113,7 @@ $(STATEDIR)/sudo.targetinstall:
 
 ifdef PTXCONF_SUDO_INSTALL_ETC_SUDOERS
        @$(call install_alternative, sudo, 0, 0, 0440, /etc/sudoers, n)
+       @$(call install_copy, sudo, 0, 0, 755, /etc/sudoers.d)
 endif
 
 ifdef PTXCONF_SUDO_INSTALL_VISUDO
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to