kheaders: explicitly define file modes for archived headers
authorMatthias Maennich <maennich@google.com>
Tue, 28 May 2024 11:32:43 +0000 (11:32 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 29 May 2024 16:13:20 +0000 (01:13 +0900)
commit3bd27a847a3a4827a948387cc8f0dbc9fa5931d5
tree53ddde051f763304464e8c9dda0be5c100275fe9
parente06a698ae62b9ee5ca98e65be2c90a61464192e6
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>
kernel/gen_kheaders.sh