D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
include
/
selinux
/
Filename :
context.h
back
Copy
#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 *); /* * 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 char *context_str(context_t); /* Free the storage used by a context */ extern void context_free(context_t); /* Get a pointer to the string value of a context component */ extern const char *context_type_get(context_t); extern const char *context_range_get(context_t); extern const char *context_role_get(context_t); extern const char *context_user_get(context_t); /* Set a context component. Returns nonzero if unsuccessful */ extern int context_type_set(context_t, const char *); extern int context_range_set(context_t, const char *); extern int context_role_set(context_t, const char *); extern int context_user_set(context_t, const char *); #ifdef __cplusplus } #endif #endif
Name
Size
Last Modified
Owner
Permissions
Actions
av_permissions.h
63.766
KB
March 11 2025 12:11:55
root
0644
avc.h
16.061
KB
March 11 2025 12:11:55
root
0644
context.h
1.181
KB
March 11 2025 12:11:55
root
0644
flask.h
6.25
KB
March 11 2025 12:11:55
root
0644
get_context_list.h
2.852
KB
March 11 2025 12:11:55
root
0644
get_default_type.h
0.614
KB
March 11 2025 12:11:55
root
0644
label.h
5.838
KB
March 11 2025 12:11:55
root
0644
restorecon.h
5.896
KB
March 11 2025 12:11:55
root
0644
selinux.h
26.894
KB
March 11 2025 12:11:55
root
0644
2017 © D7net | D704T team