From owner-freebsd-jail@FreeBSD.ORG Fri Aug 23 15:42:14 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 866D9FA3 for ; Fri, 23 Aug 2013 15:42:14 +0000 (UTC) (envelope-from miguelmclara@gmail.com) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1B7B02F9C for ; Fri, 23 Aug 2013 15:42:13 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id e12so678526wgh.21 for ; Fri, 23 Aug 2013 08:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=74Wkv872qfOZkj32y3slffuNkcgqFmyp8CUF0ec74qs=; b=jWcclGfi2SSdDQKG9Or246Pg808MCIO2rHlvZQ5HXcLgA3f6CXlHyZIeJCv7ugtJse 3tEgkgz9sOUiN6VWWpVu+yJzLaT4nYuteC4NlLYO1I5cCEGAmjRuRiX1Es2dMM8Adp22 bNvIpxrjj6dWYJpgWRB9Ujq8/xzs94iNBDgpPVRtHL0VFGFuss7SBj3sf9xNAyn2lD35 iBaVgWN8WzHJ4cFSGhyF7kV9DuQIOL40r9vw+VNxLXVTG3JG7O/raF2mrNMyR1O2tDcr FtVJKZa5Sc92P/6YkQw2T7gR3Mu4IdYjoeyg8s8EolXWwex/x0APSag8XYQ+tS2+FQZh aHUw== X-Received: by 10.180.73.103 with SMTP id k7mr2649195wiv.24.1377272532411; Fri, 23 Aug 2013 08:42:12 -0700 (PDT) Received: from [10.10.50.70] (84.106.136.95.rev.vodafone.pt. [95.136.106.84]) by mx.google.com with ESMTPSA id eb3sm4829663wic.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 08:42:11 -0700 (PDT) Message-ID: <521790D1.8020705@gmail.com> Date: Fri, 23 Aug 2013 16:41:53 +0000 From: "Mike C." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130813 Thunderbird/17.0.8 MIME-Version: 1.0 To: lambert@lambertfam.org, freebsd-jail@freebsd.org Subject: Re: connect -1 errno 1 Operation not permitted with specific user (nagios) References: <20130823145305.GZ99960@www.jail.lambertfam.org> <52178F28.9010108@gmail.com> In-Reply-To: <52178F28.9010108@gmail.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 15:42:14 -0000 On 08/23/13 16:34, Mike C. wrote: > Yes I know about > >> security.jail.allow_raw_sockets=1 > > Like I said I can do this with "root" just not with the user nagios, I guess If raw_sockets was set to 0 on the host, I would have problems with any user! > > > > ---- > Putting this in /etc/rc.conf: > > jail_${JailName}_parameters="allow.raw_sockets=1" > > does not allow every jail access to raw sockets. There is an example in > /etc/defaults/rc.conf. > > [EDIT: better englih... sorry typing on smartphones sucks] Now this is something I wasn't aware of... very nice and thanks for the tip on ez-jails, I'm indeed using ez-jails! Is there any other setting that would forbid non root users to use raw sockets? Thanks