rwatson 5eaa7f128c 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
2009-04-24 09:54:46 +00:00
..
2009-04-15 17:31:22 +00:00
2009-03-09 13:32:19 +00:00
2009-04-23 21:27:06 +00:00
2009-04-19 21:37:45 +00:00
2009-04-23 22:08:44 +00:00
2009-04-13 19:54:33 +00:00
2009-04-01 17:06:28 +00:00