* [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
* [ptxdist] [PATCH 2/3] sudo: add missing run-time dependencies 2017-09-28 8:37 [ptxdist] [PATCH 1/3] sudo: provide 'sudoers.d' for individual user files Juergen Borleis @ 2017-09-28 8:37 ` Juergen Borleis 2017-09-28 8:37 ` [ptxdist] [PATCH 3/3] sudo: force the system zlib Juergen Borleis 1 sibling, 0 replies; 3+ messages in thread From: Juergen Borleis @ 2017-09-28 8:37 UTC (permalink / raw) To: ptxdist libutil and libdl must be present at run-time. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> --- rules/sudo.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules/sudo.in b/rules/sudo.in index f3531425f..154be73d0 100644 --- a/rules/sudo.in +++ b/rules/sudo.in @@ -3,6 +3,8 @@ menuconfig SUDO tristate prompt "sudo " select LIBC_CRYPT + select LIBC_UTIL + select LIBC_DL help Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log -- 2.11.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 3+ messages in thread
* [ptxdist] [PATCH 3/3] sudo: force the system zlib 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 ` Juergen Borleis 1 sibling, 0 replies; 3+ messages in thread From: Juergen Borleis @ 2017-09-28 8:37 UTC (permalink / raw) To: ptxdist 'sudo' uses zlib compression for its logs. It brings its own local version of zlib, but prefers the system zlib if present. This change forces the presence of the system zlib to avoid the internal variant by accident depending on the build order. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> --- rules/sudo.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/sudo.in b/rules/sudo.in index 154be73d0..480c90cd9 100644 --- a/rules/sudo.in +++ b/rules/sudo.in @@ -5,6 +5,7 @@ menuconfig SUDO select LIBC_CRYPT select LIBC_UTIL select LIBC_DL + select ZLIB help Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log -- 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