From owner-freebsd-jail@FreeBSD.ORG Thu Aug 16 03:24:55 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF232106566C; Thu, 16 Aug 2012 03:24:55 +0000 (UTC) (envelope-from kuriyama.bsd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 82F758FC0C; Thu, 16 Aug 2012 03:24:55 +0000 (UTC) Received: by obbun3 with SMTP id un3so4003895obb.13 for ; Wed, 15 Aug 2012 20:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=HBnJLcILbPF4xSl08IJlGNxVE33TBcwWvtoXfECCu4k=; b=Zh0XXBEnyl9tfoLKSNgfK8qgsmKdrhyT9joGFa5nWuhkTgzD3Ut1fq9tUAyBBhaMwm AkquvJqr/x2RFYoPmzaWwdVIK6zrgUx+XBNtQeK1ERWIpIpiVYA7QZtAm1U5fhgvfZPO 48Y7o0V3zfI9VspU3gMqFKR0KDv3El5TKSNIMvA334GAjK4RZCZtlcgshqsn3zF3NRji 5CxxRMP85Y2kT5UcpjCf0VnUYYuaPaxDrqEeCPKtF04SJF6Gdtf38SKVZMsXZRkbNFl7 4fWPHt4C6eM7/y1/zu0v8l+esQR/YBBrMuG+RVc3GpwoJNB4KhrcU5LwmMdmkL4eoMOj rwnA== MIME-Version: 1.0 Received: by 10.60.11.104 with SMTP id p8mr3640293oeb.133.1345087494697; Wed, 15 Aug 2012 20:24:54 -0700 (PDT) Sender: kuriyama.bsd@gmail.com Received: by 10.76.121.41 with HTTP; Wed, 15 Aug 2012 20:24:54 -0700 (PDT) In-Reply-To: <502C65A0.2060606@FreeBSD.org> References: <7mlihf1vmg.wl%kuriyama@s2factory.co.jp> <502C65A0.2060606@FreeBSD.org> Date: Thu, 16 Aug 2012 12:24:54 +0900 X-Google-Sender-Auth: q1uJw6ypAu_EA7Wago6fcu01vhM Message-ID: From: Jun Kuriyama To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-jail@freebsd.org Subject: Re: [patch] etc/rc.d/jail: allow extra parameters for each jails X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2012 03:24:55 -0000 2012/8/16 Doug Barton : > On 08/15/2012 03:19 PM, Jun Kuriyama wrote: >> #jail_example_flags="-l -U root" # flags for jail(8) >> +#jail_example_parameters="allow.raw_sockets=1" # extra parameters for this jail > > Why not just use _flags for this? Current implementation of rc.d/jail uses old command line syntax which cannot pass parameters to jail(8), so main modifications of my patch is changing this to use new command line style to use with "-c" flag and named parameters. Then, you are right, these named parameters can be passed via _flags after my patch. I just want separate command line option flags and named parameters. I don't have strong argument to add _parameters variables. I just think adding _parameters may be easy to configure/understand. -- Jun Kuriyama // FreeBSD Project // S2 Factory, Inc.