[buildd-tools-devel] Bug#589889: Bug#589889: schroot: session names being inconsistently restricted

Roger Leigh rleigh at codelibre.net
Thu Jul 22 09:04:52 UTC 2010


On Wed, Jul 21, 2010 at 03:41:12PM -0700, Zach Carter wrote:
> schroot allows me to create a persistent session with a particular name, such as "zcarter-catalan-build-cb67j4yZoS-16646".   
> However, when I attempt to access it later on, it fails like this:
> 
> $  /usr/bin/schroot -p -v -r -c zcarter-catalan-build-cb67j4yZoS-16646 -- uname -a
> E: zcarter-catalan-build-cb67j4yZoS-16646: Chroot not found
> 
> I traced it down to the is_valid_filename() function defined in sbuild-util.cc
> 
> I see two solutions, either:
> - enforce the same restrictions when the chroot session is first created.
> - loosen the restrictions, since the run-parts() restrictions do not seem appropriate to restrict session names.
> 
> My vote would be for the latter solution.  
> 
> I'm attaching a patch that works for me.

Agreed on all counts and the patch looks great.  I'll review it in
more detail when I have time at the weekend and make a new release
then.


Many thanks!
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100722/e7a53a31/attachment.pgp>


More information about the Buildd-tools-devel mailing list