From owner-freebsd-fs@FreeBSD.ORG Wed Sep 25 12:10:22 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 81AB2C6B for ; Wed, 25 Sep 2013 12:10:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4E0F42075 for ; Wed, 25 Sep 2013 12:10:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8PCAMBT096528 for ; Wed, 25 Sep 2013 12:10:22 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8PCAL1Q096527 for freebsd-fs@FreeBSD.org; Wed, 25 Sep 2013 12:10:21 GMT (envelope-from bdrewery) Received: (qmail 48289 invoked from network); 25 Sep 2013 07:10:20 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 25 Sep 2013 07:10:20 -0500 Message-ID: <5242D2A6.1000002@FreeBSD.org> Date: Wed, 25 Sep 2013 07:10:14 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-fs@FreeBSD.org Subject: Why does devfs allow unlinking /dev/*? (kern/139014) X-Enigmail-Version: 1.5.2 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3ot1bEbiFTNApI8rSxQlO4wOVBSWpv9Kq" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 12:10:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3ot1bEbiFTNApI8rSxQlO4wOVBSWpv9Kq Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I see that devfs_remove() allows anything to be removed and always returns 0. This causes problems for package building as many ports will run 'gcc -o /dev/null file.c' which removes /dev/null. Simple rm /dev/null also works. Of course 'rm /dev/*' works as well. After this is done, 'dev rule apply path unhide' is needed to restore the files. Why is this allowed? Does this belong on arch@ instead? --=20 Regards, Bryan Drewery --3ot1bEbiFTNApI8rSxQlO4wOVBSWpv9Kq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSQtKmAAoJEG54KsA8mwz5jccP/jh7GlRrTXyN/9brt3wkDURA fOwHrlFDdaz+wlNFxZqGhqI0E+CvATpXIf4qoHP1vDnjqJUAznoFfuOyUPkZai3Y g4Ab6lrn4625Jyy3WKUxkJmWFKR7y8TyTm2I2ONY9TO5MyYpyFcrO7Bfytvj/l/l yIQOHO90KzNrTIgG2G3Qc/NjgoMp7atYX0Pwx1bUdPY/sUAEPCE0NKcGOs61lswI OKZWo3kq89IUvlnLPALS5yyXqnD540F2qPU2IgaubPszyXnlKB+bWDowsnnJycFt 9DbyploVnzLBsGr4nI37STOB8YYrIlkT2cVRVb2vxfnNXEZW21dsyhtt7/16mYpf h6873Q0tgEl+NJtHQiVkG+Ps4LIq/ZBSkY2MnEQndJX2daNSZHGgNtOoMw15xK65 X1Hwx2X35ec6ngmWpNBb17QqEOttpok3SP6uY5sGmtYkiMkT634tlEfjU2cBuSgJ AUkfUJDsgX5KUo3EjxgYo3U85HAlpgyKk9FsPAAVUwvOB7JEk2GHmnPGRN1iIJBS zlEMScLgH4a54gH/B+5lOzIwYHNuKgBKk3Kt1UvZ8HQX4jdv0JKju6YQQFv5Yg5X rksc1uYzO8VfWfQmO7dRHzJ/Cftgz1HbRyTb+px2O6g9SJDmMn8gPLIjqnaButZr tmmoOFhuJ5zlJMHK0Zjo =bgbo -----END PGP SIGNATURE----- --3ot1bEbiFTNApI8rSxQlO4wOVBSWpv9Kq--