From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/3] sudo: provide 'sudoers.d' for individual user files
Date: Thu, 28 Sep 2017 10:37:03 +0200 [thread overview]
Message-ID: <20170928083705.13357-1-jbe@pengutronix.de> (raw)
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
next reply other threads:[~2017-09-28 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 8:37 Juergen Borleis [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170928083705.13357-1-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox