[Buildroot] [PATCH 1/1] sudo: enable pam support

Peter Korsgaard peter at korsgaard.com
Tue Jun 23 20:56:46 UTC 2015


>>>>> "James" == James Knight <james.knight at rockwellcollins.com> writes:

 > Configure the sudo utility to support PAM if the framework is enabled.
 > Signed-off-by: James Knight <james.knight at rockwellcollins.com>
 > ---
 >  package/sudo/sudo.mk  | 13 ++++++++++++-
 >  package/sudo/sudo.pam | 12 ++++++++++++
 >  2 files changed, 24 insertions(+), 1 deletion(-)
 >  create mode 100644 package/sudo/sudo.pam

 > diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk
 > index a1a8328..9fa1cd6 100644
 > --- a/package/sudo/sudo.mk
 > +++ b/package/sudo/sudo.mk
 > @@ -16,9 +16,20 @@ SUDO_CONF_OPTS = \
 >  	--without-umask \
 >  	--with-logging=syslog \
 >  	--without-interfaces \
 > -	--without-pam \
 >  	--with-env-editor
 
 > +ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
 > +define SUDO_INSTALL_PAM_CONF
 > +	$(INSTALL) -m 0644 package/sudo/sudo.pam $(TARGET_DIR)/etc/pam.d/sudo

This should use the -D option to ensure the destination directories gets
created. Committed with that fixed, thanks!

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list