Merge ~paride/ubuntu/+source/samba:lp1942195-bionic into ubuntu/+source/samba:ubuntu/bionic-devel

Proposed by Paride Legovini
Status: Merged
Merge reported by: Paride Legovini
Merged at revision: a9084b119e3e4f16772e0f3eee44dbacaaf7c42a
Proposed branch: ~paride/ubuntu/+source/samba:lp1942195-bionic
Merge into: ubuntu/+source/samba:ubuntu/bionic-devel
Diff against target: 40 lines (+7/-14)
2 files modified
debian/changelog (+7/-0)
debian/samba.postinst (+0/-14)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
Canonical Server Pending
Review via email: mp+411691@code.launchpad.net

Commit message

Bionic SRU for LP: #1942195, see the SRU template for more info testing instructions.
Test PPA: Test PPA: https://launchpad.net/~paride/+archive/ubuntu/samba-lp1942195.

Autopkgtest:

@@@@@@@@@@@@@@@@@@@@ summary
cifs-share-access SKIP Test requires machine-level isolation but testbed does not provide that
python-smoke PASS
smbclient-anonymous-share-list PASS
smbclient-authenticated-share-list PASS
smbclient-share-access PASS

Please review & sponsor. Thanks!

To post a comment you must log in.
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I can look at this one.

Revision history for this message
Paride Legovini (paride) wrote :

Thanks! Note that there are similar MPs for the other supported releases.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the MP, Paride.

I tested it locally and it solves the bug. I reviewed this same change on Debian, so I'm comfortable with it.

Uploaded:

$ dput samba_4.7.6+dfsg~ubuntu-0ubuntu2.24_source.changes
Trying to upload package to ubuntu
Checking signature on .changes
gpg: /home/sergio/work/samba/samba_4.7.6+dfsg~ubuntu-0ubuntu2.24_source.changes: Valid signature from 106DA1C8C3CBBF14
Checking signature on .dsc
gpg: /home/sergio/work/samba/samba_4.7.6+dfsg~ubuntu-0ubuntu2.24.dsc: Valid signature from 106DA1C8C3CBBF14
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading samba_4.7.6+dfsg~ubuntu-0ubuntu2.24.dsc: done.
  Uploading samba_4.7.6+dfsg~ubuntu-0ubuntu2.24.debian.tar.xz: done.
  Uploading samba_4.7.6+dfsg~ubuntu-0ubuntu2.24_source.buildinfo: done.
  Uploading samba_4.7.6+dfsg~ubuntu-0ubuntu2.24_source.changes: done.
Successfully uploaded packages.

review: Approve
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Ah, just a small comment about the autopkgtest: as you notice, some of the tests haven't been performed because you need to run autopkgtest using qemu as its driver. This is something worth doing for next time, IMO. Thanks.

Revision history for this message
Paride Legovini (paride) wrote :

Thanks! For completeness:

autopkgtest [11:31:28]: @@@@@@@@@@@@@@@@@@@@ summary
cifs-share-access PASS
python-smoke PASS
smbclient-anonymous-share-list PASS
smbclient-authenticated-share-list PASS
smbclient-share-access PASS

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

 samba | 2:4.7.6+dfsg~ubuntu-0ubuntu2.27 | bionic-updates | source, amd64, arm64, armhf, i386, ppc64el, s390x

https://launchpad.net/ubuntu/+source/samba/2:4.7.6+dfsg~ubuntu-0ubuntu2.27
Is later but includes the former
https://launchpad.net/ubuntu/+source/samba/2:4.7.6+dfsg~ubuntu-0ubuntu2.24

Completed, please set the MR to merged (plenty of pings today as I can't do that anymore nowadays :-/ )

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 20dfe5a..da36c1e 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.24) bionic; urgency=medium
7+
8+ * samba.postinst: do not populate sambashare from the Ubuntu admin group
9+ (LP: #1942195)
10+
11+ -- Paride Legovini <paride@ubuntu.com> Wed, 10 Nov 2021 15:29:48 +0100
12+
13 samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.23) bionic-security; urgency=medium
14
15 * SECURITY UPDATE: wrong group entries via negative idmap cache entries
16diff --git a/debian/samba.postinst b/debian/samba.postinst
17index 4749ce0..0f39464 100644
18--- a/debian/samba.postinst
19+++ b/debian/samba.postinst
20@@ -14,20 +14,6 @@ umask 022
21 if ! getent group sambashare > /dev/null 2>&1
22 then
23 addgroup --system sambashare
24- # Only on Ubuntu, use the "admin" group as a template for the
25- # initial users for this group; Debian has no equivalent group,
26- # so leaving the sambashare group empty is the more secure default
27- if [ -x "`which lsb_release 2>/dev/null`" ] \
28- && [ "`lsb_release -s -i`" = "Ubuntu" ]
29- then
30- OLDIFS="$IFS"
31- IFS=","
32- for USER in `getent group admin | cut -f4 -d:`; do
33- adduser "$USER" sambashare \
34- || ! getent passwd "$USER" >/dev/null
35- done
36- IFS="$OLDIFS"
37- fi
38 fi
39
40 if [ ! -e /var/lib/samba/usershares ]

Subscribers

People subscribed via source and target branches