Date: Wed, 25 Sep 2013 07:10:14 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: freebsd-fs@FreeBSD.org Subject: Why does devfs allow unlinking /dev/*? (kern/139014) Message-ID: <5242D2A6.1000002@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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 <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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5242D2A6.1000002>