Hi, Quoting Raphael Hertzog (2015-09-03 10:33:34) > On Thu, 03 Sep 2015, Johannes Schauer wrote: > > Using sbuild-shell I opened a shell in a local sid chroot and changed the > > owner > > of /var/lib/sbuild/ to root and removed all read and write access for > > everybody. But even after that I was able to build a package! > > Did you change the owning group as well?
yes, I first ran sbuild-shell and then `chown -R root:root /var/lib/sbuild` > Because I can re-trigger it as easily as this: > $ sudo chown -R root:root /srv/chroots/sid-amd64-sbuild/var/lib/sbuild > $ sbuild -d unstable hello_2.10-1.dsc > > Note however that my unstable-amd64-sbuild chroot uses "union-type=overlay". > It might be relevant... and your path does not seem to be inside a tarball either. > $ cat /etc/schroot/chroot.d/sid-amd64-sbuild > # File managed by Salt. Do not edit manually. > [sid-amd64-sbuild] > type=directory > description=Debian sid/amd64 > directory=/srv/chroots/sid-amd64-sbuild > aliases=unstable-amd64-sbuild,experimental-amd64-sbuild > groups=root,sbuild > profile=sbuild > root-groups=root,sbuild > source-root-groups=root,sbuild > union-type=overlay okay, I never used union-type=overlay or type=directory. That might explain why I don't see the problem yet. > > Investigating further, this seems to be because `chown -R sbuild:sbuild > > /var/lib/sbuild` is already run in lib/Sbuild/ChrootSetup.pm (at least this > > explains why it works for me). > > Are you sure this doesn't occur after the try to create the apt.conf file? No I'm not. I was just trying to find the reason why me running chown as above did not trigger the problem you describe. I will see if I can recreate your setup. Thanks! cheers, josch
signature.asc
Description: signature

