[buildd-tools-devel] Bug#876703: schroot: Can't run schroot as normal user
APT Gatuno MX
apt at gatuno.mx
Tue Oct 3 21:27:36 UTC 2017
El 03/10/2017 3:57 pm, Roger Leigh escribió:
>
> 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
YES! You are right!
The problem lies in a higher up directory. There is a permission
problem. Just make a full functional root session and checked the
/var/run/schroot/mount dir and found this:
drwx------ 22 root root 4096 sep 22 14:09
stretch-amd64-sbuild-23013978-edff-4e90-a6d9-984da3bd4dd6
The normal users can't access that dir (the root dir).
Should this be fixed in /etc/schroot/setup.d/10mount?
--
Atte. Félix Arreola
«Sin firma GPG»
More information about the Buildd-tools-devel
mailing list