[Buildroot] [PATCH v7 13/22] openssh: selinux and pam support

Clayton Shotwell clayton.shotwell at rockwellcollins.com
Fri Jul 10 23:01:19 UTC 2015


Samuel,


>> diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
>> index 24af079..00cdf6c 100644
>> --- a/package/openssh/openssh.mk
>> +++ b/package/openssh/openssh.mk
>> @@ -30,8 +30,24 @@ endif
>>  OPENSSH_DEPENDENCIES = zlib openssl
>>
>>  ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
>> +define OPENSSH_INSTALL_PAM_CONF
>> +       $(INSTALL) -D -m 644 $(@D)/contrib/sshd.pam.generic $(TARGET_DIR)/etc/pam.d/sshd
>> +       sed -i '/password   required     \/lib\/security\/pam_cracklib.so/d' $(TARGET_DIR)/etc/pam.d/sshd
>> +       sed -i -e 's/\#UsePAM no/UsePAM yes/' $(TARGET_DIR)/etc/ssh/sshd_config
> nit: you could $(SED) here ;-)

Fixed.

Thanks,
Clayton

Clayton Shotwell
Senior Software Engineer, Rockwell Collins
clayton.shotwell at rockwellcollins.com


More information about the buildroot mailing list