Date: Tue, 19 Oct 2010 16:48:49 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/geom geom_dev.c Message-ID: <201010191649.o9JGn9M9003772@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jh 2010-10-19 16:48:49 UTC FreeBSD src repository Modified files: sys/geom geom_dev.c Log: SVN rev 214063 on 2010-10-19 16:48:49Z by jh Use make_dev_p(9) with the MAKEDEV_CHECKNAME flag instead of make_dev(9) and print a diagnostic if the call fails. This avoids a panic when a device with an invalid name is attempted to be registered. For example the label class gets device names from untrusted input. Reviewed by: freebsd-geom Revision Changes Path 1.107 +10 -2 src/sys/geom/geom_dev.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010191649.o9JGn9M9003772>