blob: 3058b5582812ad575deb998d061d1e7207aa894c [file] [log] [blame]
Patrick Williams213cb262021-08-07 19:21:33 -05001do_install:append_harden () {
Andrew Geisslercc589282020-09-18 13:34:40 -05002 # to hardend
3 sed -i -e 's:UMASK.*:UMASK 027:' ${D}${sysconfdir}/login.defs
4 sed -i -e 's:PASS_MAX_DAYS.*:PASS_MAX_DAYS 365:' ${D}${sysconfdir}/login.defs
5 sed -i -e 's:PASS_MIN_DAYS.*:PASS_MIN_DAYS 1:' ${D}${sysconfdir}/login.defs
6 sed -i -e 's:#PASS_MIN_LEN.*:PASS_MIN_LEN 11:' ${D}${sysconfdir}/login.defs
7 sed -i -e 's:PASS_WARN_AGE.*:PASS_WARN_AGE 14:' ${D}${sysconfdir}/login.defs
8 sed -i -e 's:LOGIN_RETRIES.*:LOGIN_RETRIES 3:' ${D}${sysconfdir}/login.defs
9 sed -i -e 's:LOGIN_TIMEOUT.*:LOGIN_TIMEOUT 30:' ${D}${sysconfdir}/login.defs
10}