summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-11-28 19:42:30 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-11-28 19:42:30 +0100
commit45e885c439e825c19f3a51e46ef8210984bc0a9c (patch)
tree5d0afe03899823fdf00aec12803846c4de96f399 /scripts
parentMerge tag 'perf-tools-fixes-for-v5.10-2020-11-28' of git://git.kernel.org/pub... (diff)
parentbuilddeb: Fix rootless build in setuid/setgid directory (diff)
downloadlinux-45e885c439e825c19f3a51e46ef8210984bc0a9c.tar.xz
linux-45e885c439e825c19f3a51e46ef8210984bc0a9c.zip
Merge tag 'kbuild-fixes-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Remove unused OBJSIZE variable. - Fix rootless deb-pkg build in a setgid directory. * tag 'kbuild-fixes-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: builddeb: Fix rootless build in setuid/setgid directory kbuild: remove unused OBJSIZE
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package/builddeb2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 1b11f8993629..91a502bb97e8 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -45,6 +45,8 @@ create_package() {
chmod -R go-w "$pdir"
# in case we are in a restrictive umask environment like 0077
chmod -R a+rX "$pdir"
+ # in case we build in a setuid/setgid directory
+ chmod -R ug-s "$pdir"
# Create the package
dpkg-gencontrol -p$pname -P"$pdir"