Skip to content

Commit 778a887

Browse files
committed
fix(sshd): set root:root 755 permissions for /var/empty chroot directory
1 parent 5a9c0ec commit 778a887

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

machines/aarch64/android/common.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
PermitEmptyPasswords no
1111
ChallengeResponseAuthentication no
1212
PrintMotd no
13-
UsePrivilegeSeparation no
1413
StrictModes no
1514
UseDNS no
1615
AcceptEnv LANG LC_*
@@ -24,6 +23,8 @@
2423
${pkgs.openssh}/bin/ssh-keygen -t ed25519 -f "$HOST_KEY" -N ""
2524
fi
2625
$DRY_RUN_CMD mkdir -p /var/empty
26+
$DRY_RUN_CMD chown root:root /var/empty 2>/dev/null || true
27+
$DRY_RUN_CMD chmod 755 /var/empty
2728
'';
2829

2930
home.file.".termux/boot/start-sshd.sh" = {

0 commit comments

Comments
 (0)