From owner-freebsd-virtualization@freebsd.org Tue Oct 27 16:12:13 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43ECBA1EDBA for ; Tue, 27 Oct 2015 16:12:13 +0000 (UTC) (envelope-from doublef.mobile@gmail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D20A51944 for ; Tue, 27 Oct 2015 16:12:12 +0000 (UTC) (envelope-from doublef.mobile@gmail.com) Received: by wicfv8 with SMTP id fv8so169814620wic.0 for ; Tue, 27 Oct 2015 09:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+eUYrngjxEm32X/JXMBEMdb7iXIfm5AQN+5RBz1iAxk=; b=LtxmDCBxLqcDZXJzqlajt2QwIdJ7VdaILDiVxjaSU032XNJBEb5NwH14Cpbp56Qudp FGOE00ztGfv8jFxT2rprV4SXZbfndUqsYecZ+NcN1btzTOSQQ8Em3vykjgOjPB0/zMpS AZxbeBgExpOiMofCqL2llIKDeJBhaOyGcK8RDRWvvTzw8NVz0j5pbFyqdBM+eWmnyYnr LZfue+oENlKb69njujEcs8fGWK+BC9pDxsAR478hR8L2ns5QqBlF5znYrmx90ZsnFdMQ SsBIr5Ecgcqu3detRoGw/mszosIACTBvRMrdDd6EcpXWlekAb9XwDJuJRFXJeGwftLst SN+A== MIME-Version: 1.0 X-Received: by 10.194.61.13 with SMTP id l13mr34301776wjr.76.1445962331279; Tue, 27 Oct 2015 09:12:11 -0700 (PDT) Received: by 10.28.178.3 with HTTP; Tue, 27 Oct 2015 09:12:11 -0700 (PDT) Received: by 10.28.178.3 with HTTP; Tue, 27 Oct 2015 09:12:11 -0700 (PDT) In-Reply-To: <20151027145033.GA24588@dft-labs.eu> References: <20151027145033.GA24588@dft-labs.eu> Date: Tue, 27 Oct 2015 19:12:11 +0300 Message-ID: Subject: Re: Docker: jail: name cannot be numeric fix From: Sergey Zakharchenko To: Mateusz Guzik Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 16:12:13 -0000 Mateusz, > What's the significance of said names? None that I know of; I'm new to Docker so I might be wrong though. > The issue here is that said id may contain to letters, effectivley > looking like a number ..the probability of that being (10/16)^12, which isn't too high but still significant... > and that cannot be allowed due to jid/name > confusion. True; were it possible, I'd suggest naming them e.g. dkrXXX instead of XXX to make it easier to understand that those are Docker-created jails and not some abomination. In other words, seconded. But I suspect there could be some reasons why that wasn't done this (obviously better) way... > The bogus check with 0 is only a side issue, which may or may not make sense to be addressed. Well, it doesn't do what it's supposed to, so it should be fixed but I agree it's definitely not urgent if Docker can be fixed to name jails more appropriately. Best regards, -- DoubleF