[buildd-tools-devel] Bug#876703: schroot: Can't run schroot as normal user

Roger Leigh rleigh at codelibre.net
Tue Oct 3 20:57:21 UTC 2017


On 03/10/2017 19:43, APT Gatuno MX wrote:
> Ok, I still can't schroot as normal user, but adding some debugging 
> messages to schroot found that a chdir call fails, even if the directory 
> exists (example /, /tmp).
> 
> Running getcwd BEFORE doing the chdir return "/". That means that the 
> chroot call actually worked, but the next calls to chdir fails. Any 
> suggestions?

What are the permissions on the root directory of the chroot?  You might 
have permission to access it as root for the chroot call, but that might 
not apply to the user after we call setuid/setgid to switch the user and 
group.  But does the user or group have permission to access it?  The 
problem might possibly even lie in a higher up directory (not 100% sure, 
but worth checking to be certain).

If you're also using bind mounts, I'd suggest checking the permissions 
of the directories here as well.


Regards,
Roger



More information about the Buildd-tools-devel mailing list