Skip to content

Executable bits of /etc/hostname not set deterministically

During our call for reproduction it was reported that the executable bits (for all of ugo) of /etc/hostname is not set deterministically and hence breaks Tails’ reproducibility.

diffoscope report:

├── live/filesystem.squashfs
│ ├── unsquashfs -d '' -lls {}
│ │ @@ -1169,15 +1169,15 @@
│ │  -rw-r--r-- root/root               177 2016-12-04 20:37 /etc/gss/mech.d/README
│ │  drwxr-xr-x root/root                41 2017-08-05 13:25 /etc/gtk-2.0
│ │  -rw-r--r-- root/root               890 2017-01-26 16:59 /etc/gtk-2.0/im-multipress.conf
│ │  drwxr-xr-x root/root                41 2017-08-05 13:25 /etc/gtk-3.0
│ │  -rw-r--r-- root/root               890 2017-03-24 01:27 /etc/gtk-3.0/im-multipress.conf
│ │  -rw-r--r-- root/root              4781 2017-01-24 11:20 /etc/hdparm.conf
│ │  -rw-r--r-- root/root                 9 2006-08-07 17:14 /etc/host.conf
│ │ --rw-r--r-- root/root                22 2017-08-05 13:25 /etc/hostname
│ │ +-rwxr-xr-x root/root                22 2017-08-05 13:25 /etc/hostname
│ │  -rw-r--r-- root/root                 0 2017-08-05 13:25 /etc/hosts
│ │  -rw-r--r-- root/root               411 2017-08-05 13:25 /etc/hosts.allow
│ │  -rw-r--r-- root/root               711 2017-08-05 13:25 /etc/hosts.deny
│ │  drwxr-xr-x root/root                33 2017-08-05 13:25 /etc/hp
│ │  -rw-r--r-- root/root               961 2017-08-05 13:25 /etc/hp/hplip.conf
│ │  drwxr-xr-x root/root                31 2017-08-05 13:25 /etc/ifplugd
│ │  drwxr-xr-x root/root                33 2017-08-05 13:25 /etc/ifplugd/action.d

Feature Branch: bugfix/13623-reproducible-etc-hostname-permissions

Attachments

Parent Task: #5630 (closed)

Original created by @anonym on 13623 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information