mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/3] sudo: provide 'sudoers.d' for individual user files
@ 2017-09-28  8:37 Juergen Borleis
  2017-09-28  8:37 ` [ptxdist] [PATCH 2/3] sudo: add missing run-time dependencies Juergen Borleis
  2017-09-28  8:37 ` [ptxdist] [PATCH 3/3] sudo: force the system zlib Juergen Borleis
  0 siblings, 2 replies; 3+ messages in thread
From: Juergen Borleis @ 2017-09-28  8:37 UTC (permalink / raw)
  To: ptxdist

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 <jbe@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

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

end of thread, other threads:[~2017-09-28  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28  8:37 [ptxdist] [PATCH 1/3] sudo: provide 'sudoers.d' for individual user files Juergen Borleis
2017-09-28  8:37 ` [ptxdist] [PATCH 2/3] sudo: add missing run-time dependencies Juergen Borleis
2017-09-28  8:37 ` [ptxdist] [PATCH 3/3] sudo: force the system zlib Juergen Borleis

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