From 978d8eb600f8feb9a8867d0caec2d7770dfe5541 Mon Sep 17 00:00:00 2001 From: Westley Argentum Hennigh-Palermo Date: Sat, 7 Mar 2020 11:14:07 +0100 Subject: [PATCH] Path for hostname randomization on fedora Specifies paths for the hostname randomization script that work on both fedora and debian systems --- external/privacy-guides/anonymizing-your-mac-address.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external/privacy-guides/anonymizing-your-mac-address.md b/external/privacy-guides/anonymizing-your-mac-address.md index 00bc8160..448e2a64 100644 --- a/external/privacy-guides/anonymizing-your-mac-address.md +++ b/external/privacy-guides/anonymizing-your-mac-address.md @@ -86,8 +86,9 @@ set -e -o pipefail # Set a random hostname for a VM session. # # Instructions: -# 1. This file must be placed and made executable as the file /etc/network/if-pre-up.d/00_hostname (owner: root) inside the template VM of your -# network VM. +# 1. This file must be placed and made executable (owner: root) inside the template VM of your network VM such that it will be run before your hostname is sent over a network. +# In a Fedora template, use `/etc/NetworkManager/dispatcher.d/pre-up.d/00_hostname`. +# In a Debian template, use `/etc/network/if-pre-up.d/00_hostname`. # 2. Execute `sudo touch /etc/hosts.lock` inside the template VM of your network VM. # 3. Execute inside your network VM: # `sudo bash -c 'mkdir -p /rw/config/protected-files.d/ && echo -e "/etc/hosts\n/etc/hostname" > /rw/config/protected-files.d/protect_hostname.txt'`