7 items
NAME ↑ SIZE MODIFIED PERMS ACTIONS
.. / Parent Directory
avc.h — 16.48 KB
2025-03-12 23:36 · rw-r--r--
16.48 KB 2025-03-12 23:36 rw-r--r--
context.h — 1.25 KB
2025-03-12 23:36 · rw-r--r--
1.25 KB 2025-03-12 23:36 rw-r--r--
get_context_list.h — 2.93 KB
2025-03-12 23:36 · rw-r--r--
2.93 KB 2025-03-12 23:36 rw-r--r--
get_default_type.h — 643 B
2025-03-12 23:36 · rw-r--r--
643 B 2025-03-12 23:36 rw-r--r--
label.h — 6.26 KB
2025-03-12 23:36 · rw-r--r--
6.26 KB 2025-03-12 23:36 rw-r--r--
restorecon.h — 7.3 KB
2025-03-12 23:36 · rw-r--r--
7.3 KB 2025-03-12 23:36 rw-r--r--
selinux.h — 28.47 KB
2025-03-12 23:36 · rw-r--r--
28.47 KB 2025-03-12 23:36 rw-r--r--
ONLINE
selinux
7 items
18:34:34
TERMINAL FM
Edit
Preview
Download
Rename
Copy
Chmod
Delete
#ifndef _SELINUX_CONTEXT_H_ #define _SELINUX_CONTEXT_H_ #ifdef __cplusplus extern "C" { #endif /* * Functions to deal with security contexts in user space. */ typedef struct { void *ptr; } context_s_t; typedef context_s_t *context_t; /* Return a new context initialized to a context string */ extern context_t context_new(const char *str); /* * Return a pointer to the string value of the context_t * Valid until the next call to context_str or context_free * for the same context_t* */ extern const char *context_str(context_t con); /* Free the storage used by a context */ extern void context_free(context_t con); /* Get a pointer to the string value of a context component */ extern const char *context_type_get(context_t con); extern const char *context_range_get(context_t con); extern const char *context_role_get(context_t con); extern const char *context_user_get(context_t con); /* Set a context component. Returns nonzero if unsuccessful */ extern int context_type_set(context_t con, const char *type); extern int context_range_set(context_t con, const char *range); extern int context_role_set(context_t con, const char *role); extern int context_user_set(context_t con, const char *user); #ifdef __cplusplus } #endif #endif