From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 20:55:31 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED81F1065675 for ; Mon, 1 Mar 2010 20:55:31 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5B58FC18 for ; Mon, 1 Mar 2010 20:55:30 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id AA06945EB2; Mon, 1 Mar 2010 21:55:28 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 3284545E90; Mon, 1 Mar 2010 21:55:23 +0100 (CET) Date: Mon, 1 Mar 2010 21:55:20 +0100 From: Pawel Jakub Dawidek To: Subbsd Message-ID: <20100301205520.GB1946@garage.freebsd.pl> References: <8237b2241002281515q5e953a48l4ac8a981fed407ab@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LpQ9ahxlCli8rRTG" Content-Disposition: inline In-Reply-To: <8237b2241002281515q5e953a48l4ac8a981fed407ab@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-current@freebsd.org Subject: Re: check for jailed environment for adjkerntz X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 20:55:32 -0000 --LpQ9ahxlCli8rRTG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 01, 2010 at 02:15:41AM +0300, Subbsd wrote: > jail with "complete" type have standard crontab a file of tasks. However = not > all standard task are adapted for work in jail an environment. For example > adjkerntz which generates >=20 > adjkerntz [46733]: sysctl (set: "machdep.wall_cmos_clock"): Operation not > permitted >=20 > I suggest to give adjkerntz concept about jail in which to it it is not > necessary to work: [...] I also always was finding that annoying, but only your e-mail made me to think about ways to fix it and that maybe simple patch like the one below will do? --- etc/crontab (wersja 204363) +++ etc/crontab (kopia robocza) @@ -22,4 +22,4 @@ # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. -1,31 0-5 * * * root adjkerntz -a +1,31 0-5 * * * root [ `sysctl -n security.jail.jailed` -eq 0 ] && adjkernt= z -a --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --LpQ9ahxlCli8rRTG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuMKbcACgkQForvXbEpPzQCVwCcDMWOLge0JqM+CIsuKEtCpy3u EgYAoLn569cpfALq/AsMhoY45oAm3/Sh =u3mY -----END PGP SIGNATURE----- --LpQ9ahxlCli8rRTG--