Selaa lähdekoodia

Use kernel sandbox for ssh

Bob Mottram 7 vuotta sitten
vanhempi
commit
7438e6ffc3
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      src/freedombone-utils-ssh

+ 2
- 0
src/freedombone-utils-ssh Näytä tiedosto

@@ -88,6 +88,8 @@ function configure_ssh {
88 88
         echo "KexAlgorithms $SSH_KEX" >> /etc/ssh/sshd_config
89 89
     fi
90 90
     sed -i "s|#KexAlgorithms $SSH_KEX|KexAlgorithms $SSH_KEX|g" /etc/ssh/sshd_config
91
+    sed -i 's|#UsePrivilegeSeparation .*|UsePrivilegeSeparation sandbox|g' /etc/ssh/sshd_config
92
+    sed -i 's|UsePrivilegeSeparation .*|UsePrivilegeSeparation sandbox|g' /etc/ssh/sshd_config
91 93
 
92 94
     apt-get -yq install fail2ban vim-common
93 95