diff options
author | William A. Kennington III <wak@google.com> | 2021-03-09 07:59:13 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-03-09 07:59:39 +0300 |
commit | 35264c8e84abff3fa41979792855443a3f7f7a6d (patch) | |
tree | 6241b91b7a83502c7a716b67b7a1ceae9bdfa7c4 | |
parent | e619716718921577fc2094904fb0f4cfbea691be (diff) | |
download | openbmc-35264c8e84abff3fa41979792855443a3f7f7a6d.tar.xz |
meta-google: dropbear: Allow for DEV builds
Change-Id: I73cf1b4f0777080521180352124f6c271fab2815
Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r-- | meta-google/recipes-core/dropbear/dropbear_%.bbappend | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-google/recipes-core/dropbear/dropbear_%.bbappend b/meta-google/recipes-core/dropbear/dropbear_%.bbappend new file mode 100644 index 0000000000..20c53fecb1 --- /dev/null +++ b/meta-google/recipes-core/dropbear/dropbear_%.bbappend @@ -0,0 +1,11 @@ +# Allow SSH to the mgmt node on DEV builds +do_install_append_gbmc_dev() { + nftables_dir=${D}${sysconfdir}/nftables + rules=$nftables_dir/50-dropbear-dev.rules + install -d -m0755 $nftables_dir + echo 'table inet filter {' >"$rules" + echo ' chain mgmt_pub_input {' >>"$rules" + echo ' tcp dport 22 accept' >>"$rules" + echo ' }' >>"$rules" + echo '}' >>"$rules" +} |