[Vmdebootstrap-devel] Bug#822180: Please reset umask before creating files

Christian Kastner ckk at debian.org
Thu Apr 21 20:44:28 UTC 2016


Package: vmdebootstrap
Version: 1.5-1
Severity: normal

The umask of the invoking user currently affects how files within the VM
are created. Side effects may include various services failing to start,
eg networking:

> [FAILED] Failed to start Network Service.
> See 'systemctl status systemd-networkd.service' for details.

The log says:
> adt-sid-amd64 systemd-networkd[283]: Could not load configuration files: Permission denied

Use a simple "ls -l $1/etc/network/interfaces.d/*" as a --customize
script, I see
> -rw-r----- 1 root root 63 Apr 21 22:36 /tmp/tmp9c3rY1/etc/network/interfaces.d/setup

The above is the result of a umask of 0027.

Setting umask to 0022 before invoking vmdebootstrap resolves the issue,
however this is a factor that should probably be sanitized by vmdebootstrap.

Regards,
Christian

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 'oldstable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vmdebootstrap depends on:
ii  debootstrap         1.0.80
ii  extlinux            3:6.03+dfsg-11
ii  kpartx              0.5.0+git1.656f8865-9
ii  libjs-sphinxdoc     1.3.4-1~bpo8+1
ii  mbr                 1.1.11-5+b1
ii  parted              3.2-15
ii  python-cliapp       1.20160316-1
ii  python-distro-info  0.14
ii  python2.7           2.7.11-8
pn  python:any          <none>
ii  qemu-utils          1:2.5+dfsg-5+b1

Versions of packages vmdebootstrap recommends:
ii  grub2-common      2.02~beta2-36
ii  python-guestfs    1:1.32.4-1
ii  qemu-system       1:2.5+dfsg-5+b1
ii  qemu-user-static  1:2.5+dfsg-5+b1
ii  squashfs-tools    1:4.3-3

Versions of packages vmdebootstrap suggests:
pn  cmdtest       <none>
pn  pandoc        <none>
pn  u-boot:armhf  <none>

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20160421/8edb6dca/attachment.sig>


More information about the Vmdebootstrap-devel mailing list