From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 7 08:47:47 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 277B8106564A; Thu, 7 Jun 2012 08:47:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7ED428FC1A; Thu, 7 Jun 2012 08:47:46 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q578ldJM057113; Thu, 7 Jun 2012 11:47:39 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q578lc8F027538; Thu, 7 Jun 2012 11:47:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q578lc2m027537; Thu, 7 Jun 2012 11:47:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 7 Jun 2012 11:47:38 +0300 From: Konstantin Belousov To: Andriy Gapon Message-ID: <20120607084738.GT85127@deviant.kiev.zoral.com.ua> References: <4FD05C16.9040905@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="D5tFrmRBv7YOLFOK" Content-Disposition: inline In-Reply-To: <4FD05C16.9040905@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: boot menu option to disable graphics mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 08:47:47 -0000 --D5tFrmRBv7YOLFOK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 07, 2012 at 10:45:26AM +0300, Andriy Gapon wrote: >=20 > It's long been a wish of mine to have an ability to decide at boot time t= hat a > system should boot in "console-only" mode. That is, that no graphics/X > applications like e.g. xdm/kdm/gdm are automatically started even when th= ey are > configured to do so. >=20 > Here is my attempt at implementing that: > https://gitorious.org/~avg/freebsd/avgbsd/commit/96f7051d63d4286ef6f0196d= 241e7855338a6ed7?format=3Dpatch >=20 > All the option does at boot time is setting of 'inhibit_gui' variable for= kernel > environment. I envision that this variable could be properly and gracefu= lly > handled in various startup scripts and/or application startup logic. > But to ensure that the option is always honored I've also added "ultimate > protection" to syscons that prohibits KDSETMODE/KD_GRAPHICS ioctl. This is too much, IMO. I understand why you may want to disable auto-start of login manager, but preventing a user from running X at all until she learns about kenv -u _and_ obscure code somewhere in the kernel, is unreasonable. --D5tFrmRBv7YOLFOK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/QaqoACgkQC3+MBN1Mb4g2qACeJ9mSp+p1G+Isbr5ouBZOYC1a UVEAn3Tka90jbzLIJ1CvC/GEKh68V5GF =OsvM -----END PGP SIGNATURE----- --D5tFrmRBv7YOLFOK--