[Piuparts-devel] [Git][debian/piuparts][develop] 5 commits: Override umask when creating device nodes

Nicolas Dandrimont (@olasd) gitlab at salsa.debian.org
Fri Mar 15 09:03:18 GMT 2024



Nicolas Dandrimont pushed to branch develop at Debian / piuparts


Commits:
c94c2a99 by Stefano Rivera at 2024-03-15T09:39:36+01:00
Override umask when creating device nodes

Closes: #1064842

- - - - -
73ec6764 by Helmut Grohne at 2024-03-15T09:40:20+01:00
/bin/sync moved to /usr, duplicate diversion

- - - - -
1dec2351 by Nicolas Dandrimont at 2024-03-15T09:56:36+01:00
Merge branch 'override-umask' into develop

- - - - -
45c12f1d by Nicolas Dandrimont at 2024-03-15T09:56:51+01:00
Merge branch 'helmutg/fix-usr-moved-sync' into develop

- - - - -
971f866e by Nicolas Dandrimont at 2024-03-15T09:57:22+01:00
piuparts-from-git-deps: pkg-config is deprecated in favor of pkgconf

- - - - -


4 changed files:

- custom-scripts/scripts/post_setup_force-unsafe-io
- debian/changelog
- debian/control
- piuparts.py


Changes:

=====================================
custom-scripts/scripts/post_setup_force-unsafe-io
=====================================
@@ -19,6 +19,7 @@ fi
 
 if [ ! -h /bin/sync ]
 then
-	dpkg-divert --rename /bin/sync
+	dpkg-divert --rename /usr/bin/sync
+	dpkg-divert --rename --divert /bin/sync.usr-is-merged /bin/sync
 	ln -sv true /bin/sync
 fi


=====================================
debian/changelog
=====================================
@@ -1,8 +1,13 @@
 piuparts (1.3.1) UNRELEASED; urgency=medium
 
+  [ Nicolas Dandrimont ]
   * Start 1.3.1 development. Use `gbp dch --since=1.3 --multimaint-merge`
     to generate a changelog for this release.
 
+  [ Stefano Rivera ]
+  * Explicitly set the mode on device nodes created by piuparts, overriding
+    umask. (Closes: #1064842)
+
  -- Nicolas Dandrimont <olasd at debian.org>  Sat, 13 Jan 2024 15:14:04 +0100
 
 piuparts (1.3) unstable; urgency=medium


=====================================
debian/control
=====================================
@@ -148,7 +148,7 @@ Architecture: all
 Depends:
  adequate,
  git,
- pkg-config,
+ pkgconf,
 # this list is synced from piuparts-slave
  adduser,
  openssh-client,


=====================================
piuparts.py
=====================================
@@ -1232,6 +1232,7 @@ class Chroot:
                 # mounting them individually.
                 try:
                     os.mknod(self.name + devname, stat.S_IFCHR | 0o666, devnum)
+                    os.chmod(self.name + devname, 0o666)  # Override umask
                     isdevice = True
                 except OSError as err:
                     if err.errno != errno.EPERM:



View it on GitLab: https://salsa.debian.org/debian/piuparts/-/compare/25fb48519a5eda4524beb6ccc8c90d712cebf981...971f866e02bf714f09f5a3f3169040ccd1ace773

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/compare/25fb48519a5eda4524beb6ccc8c90d712cebf981...971f866e02bf714f09f5a3f3169040ccd1ace773
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20240315/7af2b910/attachment-0001.htm>


More information about the Piuparts-devel mailing list