privilege.h - systemtap
Data types defined
Macros defined
Source code
#ifndef PRIVILEGE_H
#define PRIVILEGE_H
typedef enum privilege_t {
pr_none = 0x00000000, pr_unknown = 0x00000001, pr_stapusr = 0x00000002, pr_stapsys = 0x00000004, pr_stapdev = 0x00000008,
pr_highest = pr_stapdev,
pr_unprivileged = pr_stapusr,
pr_privileged = pr_stapsys | pr_stapdev,
pr_all = pr_stapusr | pr_stapsys | pr_stapdev
} privilege_t;
#define STAP_PRIVILEGE_SECTION ".stap_privilege"
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" {
#endif
const char *pr_name (privilege_t p);
int pr_contains (privilege_t actual, privilege_t required);
privilege_t get_privilege_credentials (void);
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif