12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

KAUTH (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> KAUTH (9)KAUTH_NETWORK_ROUTEChecks if a routing-related request is allowed.arg1 is the struct rt_msghdr ∗ for the request.KAUTH_NETWORK_SOCKETChecks if a socket related operation is allowed.req allows to indicate the type of the request to structure listeners and callers easier. Supportedrequest types:KAUTH_REQ_NETWORK_SOCKET_RAWSOCKChecks if opening a raw socket is allowed.KAUTH_REQ_NETWORK_SOCKET_OPENChecks if opening a socket is allowed. arg1, arg2, and arg3 are allint parameters describing the domain, socket type, and protocol, respectively.KAUTH_REQ_NETWORK_SOCKET_CANSEEChecks if looking at the socket passed is allowed.arg1 is a struct socket ∗ describing the socket.Machine-dependent ScopeThe machine-dependent (machdep) scope, “org.netbsd.kauth.machdep”, manages machine-dependent authorizationrequests in the kernel.The authorization wrapper for this scope is declared asint kauth_authorize_machdep(kauth_cred_t cred , kauth_action_t op , void∗arg0 , void ∗arg1 , void ∗arg2 , void ∗arg3)The actions on this scope provide a set that may or may not affect all platforms. Below isalist of availableactions, along with which platforms are affected by each.KAUTH_MACHDEP_IOPERM_GETRequest to get the I/O permission level. Affects amd64, i386, xen.KAUTH_MACHDEP_IOPERM_SETRequest to set the I/O permission level. Affects amd64, i386, xen.KAUTH_MACHDEP_IOPLRequest to set the I/O privilege level. Affects amd64, i386, xen.KAUTH_MACHDEP_LDT_GETRequest to get the LDT (local descriptor table). Affects amd64, i386, xen.KAUTH_MACHDEP_LDT_SETRequest to set the LDT (local descriptor table). Affects amd64, i386, xen.KAUTH_MACHDEP_MTRR_GETRequest to get the MTRR (memory type range registers). Affects amd64, i386, xen.KAUTH_MACHDEP_MTRR_SETRequest to set the MTRR (memory type range registers). Affects amd64, i386, xen.KAUTH_MACHDEP_UNMANAGEDMEMRequest to access unmanaged memory. Affects alpha, amd64, arm, i386, powerpc, sh3, vax,xen.<strong>NetBSD</strong> 3.0 February 28, 2008 8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!