HEX
Server: LiteSpeed
System: Linux sarajevo.maychu.cloud 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
User: inqua407 (1189)
PHP: 8.3.17
Disabled: exec,execl,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,ini_alter,proc_open,dl,popen,show_source,posix_getpwuid,getpwuid,posix_geteuid,posix_getegid,posix_getgrgid,open_basedir,safe_mode_include_dir,pcntl_exec,pcntl_fork,proc_get_status,proc_nice,proc_terminate,pclose,virtual,openlog,popen,pclose,virtual,openlog,escapeshellcmd,escapeshellarg,dl,show_source,symlink,mail
Upload Files
File: //usr/include/selinux/context.h
#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