mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-07 14:01:28 +00:00
mk-sbuild: Only grant access to the admin group when it exists
(Closes: #642824)
This commit is contained in:
parent
7099f9d98d
commit
05b3f16f58
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
ubuntu-dev-tools (0.133) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* mk-sbuild: Only grant access to the admin group when it exists
|
||||||
|
(Closes: #642824)
|
||||||
|
|
||||||
|
-- Stefano Rivera <stefanor@debian.org> Sun, 25 Sep 2011 16:00:57 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.132) unstable; urgency=low
|
ubuntu-dev-tools (0.132) unstable; urgency=low
|
||||||
|
|
||||||
[ Benjamin Drung ]
|
[ Benjamin Drung ]
|
||||||
|
17
mk-sbuild
17
mk-sbuild
@ -555,18 +555,19 @@ if [ -r "${TYPED_TEMPLATE_SCHROOTCONF}" ]; then
|
|||||||
elif [ -r "${TEMPLATE_SCHROOT}" ]; then
|
elif [ -r "${TEMPLATE_SCHROOT}" ]; then
|
||||||
cat "$TEMPLATE_SCHROOTCONF" > "$TEMP_SCHROOTCONF"
|
cat "$TEMPLATE_SCHROOTCONF" > "$TEMP_SCHROOTCONF"
|
||||||
else
|
else
|
||||||
# Please do not remove the blank line above [CHROOT_NAME]
|
ADMIN_GROUPS="sbuild,root"
|
||||||
# it helps keep the schroot stanzas separated in the main
|
if getent group admin > /dev/null; then
|
||||||
# /etc/schroot/schroot.conf file.
|
ADMIN_GROUPS+=",admin"
|
||||||
|
fi
|
||||||
cat > "$TEMP_SCHROOTCONF" <<EOM
|
cat > "$TEMP_SCHROOTCONF" <<EOM
|
||||||
[CHROOT_NAME]
|
[CHROOT_NAME]
|
||||||
description=CHROOT_NAME
|
description=CHROOT_NAME
|
||||||
groups=sbuild,root,admin
|
groups=$ADMIN_GROUPS
|
||||||
root-groups=root,sbuild,admin
|
root-groups=$ADMIN_GROUPS
|
||||||
# Uncomment these lines to allow "sbuild" and "admin" users to access
|
# Uncomment these lines to allow members of these groups to access
|
||||||
# the -source chroots directly (useful for automated updates, etc).
|
# the -source chroots directly (useful for automated updates, etc).
|
||||||
#source-root-users=root,sbuild,admin
|
#source-root-users=$ADMIN_GROUPS
|
||||||
#source-root-groups=root,sbuild,admin
|
#source-root-groups=$ADMIN_GROUPS
|
||||||
type=SCHROOT_TYPE
|
type=SCHROOT_TYPE
|
||||||
EOM
|
EOM
|
||||||
case "$SCHROOT_TYPE" in
|
case "$SCHROOT_TYPE" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user