Date: Fri, 24 Apr 2009 09:54:46 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet in.c Message-ID: <200904240954.n3O9soq4024975@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2009-04-24 09:54:46 UTC FreeBSD src repository Modified files: sys/netinet in.c Log: SVN rev 191456 on 2009-04-24 09:54:46Z by rwatson Relocate permissions checking code in in_control() to before the body of the implementation of ioctls. This makes the mapping of ioctls to specific privileges more explicit, and also simplifies the implementation by reducing the use of FALLTHROUGH handling in switch. While this is not intended to be a functional change, it does mean that certain privilege checks are now performed earlier, so EPERM might be returned in preference to EADDRNOTAVAIL for management ioctls that could have failed for both reasons. MFC after: 3 weeks Revision Changes Path 1.127 +25 -14 src/sys/netinet/in.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904240954.n3O9soq4024975>