diff options
5 files changed, 8 insertions, 8 deletions
diff --git a/meta-hardening/recipes-connectivity/openssh/openssh_%.bbappend b/meta-hardening/recipes-connectivity/openssh/openssh_%.bbappend index 17c06ed..e192d3d 100644 --- a/meta-hardening/recipes-connectivity/openssh/openssh_%.bbappend +++ b/meta-hardening/recipes-connectivity/openssh/openssh_%.bbappend | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | do_install:append_harden () { | 1 | do_install:append:harden () { |
| 2 | # to hardend | 2 | # to hardend |
| 3 | sed -i -e 's:#AllowTcpForwarding yes:AllowTcpForwarding no:' ${D}${sysconfdir}/ssh/sshd_config | 3 | sed -i -e 's:#AllowTcpForwarding yes:AllowTcpForwarding no:' ${D}${sysconfdir}/ssh/sshd_config |
| 4 | sed -i -e 's:ClientAliveCountMax 4:ClientAliveCountMax 2:' ${D}${sysconfdir}/ssh/sshd_config | 4 | sed -i -e 's:ClientAliveCountMax 4:ClientAliveCountMax 2:' ${D}${sysconfdir}/ssh/sshd_config |
diff --git a/meta-hardening/recipes-core/base-files/base-files_%.bbappend b/meta-hardening/recipes-core/base-files/base-files_%.bbappend index 0f0384f..4710b49 100644 --- a/meta-hardening/recipes-core/base-files/base-files_%.bbappend +++ b/meta-hardening/recipes-core/base-files/base-files_%.bbappend | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 1 | ||
| 2 | do_install:append_harden () { | 2 | do_install:append:harden () { |
| 3 | sed -i 's/umask.*/umask 027/g' ${D}/${sysconfdir}/profile | 3 | sed -i 's/umask.*/umask 027/g' ${D}/${sysconfdir}/profile |
| 4 | } | 4 | } |
diff --git a/meta-hardening/recipes-core/initscripts/initscripts_1.0.bbappend b/meta-hardening/recipes-core/initscripts/initscripts_1.0.bbappend index b27dee9..92e364c 100644 --- a/meta-hardening/recipes-core/initscripts/initscripts_1.0.bbappend +++ b/meta-hardening/recipes-core/initscripts/initscripts_1.0.bbappend | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | FILESEXTRAPATHS:prepend_harden := "${THISDIR}/files:" | 1 | FILESEXTRAPATHS:prepend:harden := "${THISDIR}/files:" |
| 2 | 2 | ||
| 3 | SRC_URI:append_harden = " file://mountall.sh" | 3 | SRC_URI:append:harden = " file://mountall.sh" |
| 4 | 4 | ||
| 5 | do_install:append_harden() { | 5 | do_install:append:harden() { |
| 6 | install -d ${D}${sysconfdir}/init.d | 6 | install -d ${D}${sysconfdir}/init.d |
| 7 | install -m 0755 ${WORKDIR}/mountall.sh ${D}${sysconfdir}/init.d | 7 | install -m 0755 ${WORKDIR}/mountall.sh ${D}${sysconfdir}/init.d |
| 8 | } | 8 | } |
diff --git a/meta-hardening/recipes-extended/shadow/shadow_%.bbappend b/meta-hardening/recipes-extended/shadow/shadow_%.bbappend index 3058b55..793a075 100644 --- a/meta-hardening/recipes-extended/shadow/shadow_%.bbappend +++ b/meta-hardening/recipes-extended/shadow/shadow_%.bbappend | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | do_install:append_harden () { | 1 | do_install:append:harden () { |
| 2 | # to hardend | 2 | # to hardend |
| 3 | sed -i -e 's:UMASK.*:UMASK 027:' ${D}${sysconfdir}/login.defs | 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 | 4 | sed -i -e 's:PASS_MAX_DAYS.*:PASS_MAX_DAYS 365:' ${D}${sysconfdir}/login.defs |
diff --git a/meta-hardening/recipes-extended/sudo/sudo_%.bbappend b/meta-hardening/recipes-extended/sudo/sudo_%.bbappend index 97c5f49..2860e8a 100644 --- a/meta-hardening/recipes-extended/sudo/sudo_%.bbappend +++ b/meta-hardening/recipes-extended/sudo/sudo_%.bbappend | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | 1 | ||
| 2 | PACKAGECONFIG:append_harden = " pam-wheel" | 2 | PACKAGECONFIG:append:harden = " pam-wheel" |
| 3 | do_install:append_harden () { | 3 | do_install:append:harden () { |
| 4 | if [ "${@bb.utils.contains('DISABLE_ROOT', 'True', 'yes', 'no', d)}" = "yes" ]; then | 4 | if [ "${@bb.utils.contains('DISABLE_ROOT', 'True', 'yes', 'no', d)}" = "yes" ]; then |
| 5 | sed -i -e 's:root ALL=(ALL) ALL:#root ALL=(ALL) ALL:' ${D}${sysconfdir}/sudoers | 5 | sed -i -e 's:root ALL=(ALL) ALL:#root ALL=(ALL) ALL:' ${D}${sysconfdir}/sudoers |
| 6 | fi | 6 | fi |
