From owner-freebsd-questions@FreeBSD.ORG Sat Jun 6 17:57:38 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B08B5106566C for ; Sat, 6 Jun 2009 17:57:38 +0000 (UTC) (envelope-from fam.vanderschaft@kpnplanet.nl) Received: from CPSMTPM-EML102.kpnxchange.com (cpsmtpm-eml102.kpnxchange.com [195.121.3.6]) by mx1.freebsd.org (Postfix) with ESMTP id 42C348FC0C for ; Sat, 6 Jun 2009 17:57:37 +0000 (UTC) (envelope-from fam.vanderschaft@kpnplanet.nl) Received: from dionysus ([86.94.74.244]) by CPSMTPM-EML102.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Sat, 6 Jun 2009 19:57:37 +0200 Message-ID: <083901c9e6d1$19e262f0$0302a8c0@VANDERSCHAFT.NET> From: "Familie van der Schaft" To: "Erik Norgaard" References: <077101c9e67d$2772b860$0302a8c0@VANDERSCHAFT.NET> <4A2A308A.8020606@locolomo.org> <079f01c9e694$3d9cbc00$0302a8c0@VANDERSCHAFT.NET> <4A2A4DC4.9060003@locolomo.org> Date: Sat, 6 Jun 2009 20:03:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1933 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1933 X-OriginalArrivalTime: 06 Jun 2009 17:57:37.0073 (UTC) FILETIME=[46B6A210:01C9E6D0] Cc: freebsd-questions@freebsd.org Subject: Re: cyrus-imapd2.3 in jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jun 2009 17:57:38 -0000 Erik, Thanks for your efforts. It works!! ,Danny ----- Original Message ----- From: "Erik Norgaard" To: "Familie van der Schaft" Cc: Sent: Saturday, June 06, 2009 1:06 PM Subject: Re: cyrus-imapd2.3 in jail > Familie van der Schaft wrote: > > Erik, > > > > I recieve the following message: > > > > /usr/local/cyrus/bin >./master -D > > No log handling enabled - turning on stderr logging > > init_kmem: kvm_openfiles failed: /dev/mem: No such file or directory > > > > I noticed that it is the same message coming from: > > > > /usr/local/cyrus/bin >netstat -rn > > netstat: kvm not available: /dev/mem: No such file or directory > > > > also within the jail. > > There are some sysctl options for the jail, maybe i must turn off or on an > > option? > > I have the following sysctl options: > > > > security.jail.jailed: 1 > > security.jail.jail_max_af_ips: 255 > > security.jail.mount_allowed: 0 > > security.jail.chflags_allowed: 0 > > security.jail.allow_raw_sockets: 1 > > security.jail.enforce_statfs: 2 > > security.jail.sysvipc_allowed: 0 > > security.jail.socket_unixiproute_only: 1 > > security.jail.set_hostname_allowed: 1 > > > > I changed the "raw_sockets" from 0 -> 1 (ping and tracroute). > > Any ideas? > > Seems like you need to mount a devfs inside the jail, > > # mount -t devfs devfs /path/to/jail/dev > > BR, Erik > > > -- > Erik N?rgaard > Ph: +34.666334818/+34.915211157 http://www.locolomo.org ---------------------------------------------------------------------------- ---- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.54/2157 - Release Date: 06/05/09 17:55:00