Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kheaders: explicitly define file modes for archived headers

Build environments might be running with different umask settings
resulting in indeterministic file modes for the files contained in
kheaders.tar.xz. The file itself is served with 444, i.e. world
readable. Archive the files explicitly with 744,a+X to improve
reproducibility across build environments.

--mode=0444 is not suitable as directories need to be executable. Also,
444 makes it hard to delete all the readonly files after extraction.

Cc: stable@vger.kernel.org
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Matthias Maennich and committed by
Masahiro Yamada
3bd27a84 e06a698a

+1 -1
+1 -1
kernel/gen_kheaders.sh
··· 84 84 85 85 # Create archive and try to normalize metadata for reproducibility. 86 86 tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ 87 - --owner=0 --group=0 --sort=name --numeric-owner \ 87 + --owner=0 --group=0 --sort=name --numeric-owner --mode=u=rw,go=r,a+X \ 88 88 -I $XZ -cf $tarfile -C $cpio_dir/ . > /dev/null 89 89 90 90 echo $headers_md5 > kernel/kheaders.md5