summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-11-28 21:42:30 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-11-28 21:42:30 +0300
commit45e885c439e825c19f3a51e46ef8210984bc0a9c (patch)
tree5d0afe03899823fdf00aec12803846c4de96f399 /scripts
parentca579827c9a7ec1b6fbfd2f8b157acaf138be838 (diff)
parentd1889589a4f54b2d1d7075d608b596d6fcfd3d96 (diff)
downloadlinux-45e885c439e825c19f3a51e46ef8210984bc0a9c.tar.xz
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"