Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/priv.h
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* mem(4) privileges. | * mem(4) privileges. | ||||
*/ | */ | ||||
#define PRIV_KMEM_READ 680 /* Open mem/kmem for reading. */ | #define PRIV_KMEM_READ 680 /* Open mem/kmem for reading. */ | ||||
#define PRIV_KMEM_WRITE 681 /* Open mem/kmem for writing. */ | #define PRIV_KMEM_WRITE 681 /* Open mem/kmem for writing. */ | ||||
/* | /* | ||||
* vmm(4) privileges. | |||||
*/ | |||||
#define PRIV_VMM_HOST_STAT 690 /* Read the sysctl hw.vmm.stat. */ | |||||
/* | |||||
* Track end of privilege list. | * Track end of privilege list. | ||||
*/ | */ | ||||
#define _PRIV_HIGHEST 682 | #define _PRIV_HIGHEST 691 | ||||
/* | /* | ||||
* Validate that a named privilege is known by the privilege system. Invalid | * Validate that a named privilege is known by the privilege system. Invalid | ||||
* privileges presented to the privilege system by a priv_check interface | * privileges presented to the privilege system by a priv_check interface | ||||
* will result in a panic. This is only approximate due to sparse allocation | * will result in a panic. This is only approximate due to sparse allocation | ||||
* of the privilege space. | * of the privilege space. | ||||
*/ | */ | ||||
#define PRIV_VALID(x) ((x) > _PRIV_LOWEST && (x) < _PRIV_HIGHEST) | #define PRIV_VALID(x) ((x) > _PRIV_LOWEST && (x) < _PRIV_HIGHEST) | ||||
Show All 16 Lines |