• No LLMs were harmed in the making of this site.
  • Backup isn't important. Recovery is what matters.
  • No bugs were found in the making of this site; they were just feature requests with better names.
  • This code runs perfectly – the bugs were just user stories that got promoted.
  • We don’t debug; we rely on intentional chaos to surface hidden issues.

Tor dentro un container privilegiato

Tor non è in grado di girare in un container unprivileged, ma anche con un container normale ha qualche problemino.

Se avete appena installato e configurato tor, noterete che:

  • sotto /var/lib/tor/hidden_service/ non c’è nulla
  • sotto /var/log/tor non c’è nulla
  • systemctl status tor benchè dica che il demone è avviato, riporta un errore tipo Failure to reset devices.list, come se ci trovassimo in un container unpriviliged

Per ovviare, occorre disabilitare AppArmor per il demone tor:

mkdir /etc/systemd/system/tor@default.service.d/
(echo "[Service]"; echo "AppArmorProfile=") > etc/systemd/system/tor@default.service.d/override.conf
systemctl daemon-reload
service tor restart

Leave a Reply

Your email address will not be published. Required fields are marked *