Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /usr/include/sepol/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/include/sepol/module.h
#ifndef _SEPOL_MODULE_H_
#define _SEPOL_MODULE_H_

#include <stddef.h>
#include <stdio.h>
#include <stdint.h>

#include <sepol/handle.h>
#include <sepol/policydb.h>

#ifdef __cplusplus
extern "C" {
#endif

struct sepol_module_package;
typedef struct sepol_module_package sepol_module_package_t;

/* Module package public interfaces. */

extern int sepol_module_package_create(sepol_module_package_t ** p);

extern void sepol_module_package_free(sepol_module_package_t * p);

extern char *sepol_module_package_get_file_contexts(sepol_module_package_t * p);

extern size_t sepol_module_package_get_file_contexts_len(sepol_module_package_t
							 * p);

extern int sepol_module_package_set_file_contexts(sepol_module_package_t * p,
						  char *data, size_t len);

extern char *sepol_module_package_get_seusers(sepol_module_package_t * p);

extern size_t sepol_module_package_get_seusers_len(sepol_module_package_t * p);

extern int sepol_module_package_set_seusers(sepol_module_package_t * p,
					    char *data, size_t len);

extern char *sepol_module_package_get_user_extra(sepol_module_package_t * p);

extern size_t sepol_module_package_get_user_extra_len(sepol_module_package_t *
						      p);

extern int sepol_module_package_set_user_extra(sepol_module_package_t * p,
					       char *data, size_t len);

extern char *sepol_module_package_get_netfilter_contexts(sepol_module_package_t
							 * p);

extern size_t
sepol_module_package_get_netfilter_contexts_len(sepol_module_package_t * p);

extern int sepol_module_package_set_netfilter_contexts(sepol_module_package_t *
						       p, char *data,
						       size_t len);

extern sepol_policydb_t *sepol_module_package_get_policy(sepol_module_package_t
							 * p);

extern int sepol_link_packages(sepol_handle_t * handle,
			       sepol_module_package_t * base,
			       sepol_module_package_t ** modules,
			       int num_modules, int verbose);

extern int sepol_module_package_read(sepol_module_package_t * mod,
				     struct sepol_policy_file *file,
				     int verbose);

extern int sepol_module_package_info(struct sepol_policy_file *file,
				     int *type, char **name, char **version);

extern int sepol_module_package_write(sepol_module_package_t * p,
				      struct sepol_policy_file *file);

/* Module linking/expanding public interfaces. */

extern int sepol_link_modules(sepol_handle_t * handle,
			      sepol_policydb_t * base,
			      sepol_policydb_t ** modules,
			      size_t len, int verbose);

extern int sepol_expand_module(sepol_handle_t * handle,
			       sepol_policydb_t * base,
			       sepol_policydb_t * out, int verbose, int check);

#ifdef __cplusplus
}
#endif

#endif
Name
Size
Permissions
Options
cil
--
drwxr-xr-x
policydb
--
drwxr-xr-x
boolean_record.h
1.515 KB
-rw-r--r--
booleans.h
2.191 KB
-rw-r--r--
context.h
0.734 KB
-rw-r--r--
context_record.h
1.631 KB
-rw-r--r--
debug.h
0.952 KB
-rw-r--r--
errcodes.h
0.831 KB
-rw-r--r--
handle.h
1.36 KB
-rw-r--r--
ibendport_record.h
2.131 KB
-rw-r--r--
ibendports.h
1.354 KB
-rw-r--r--
ibpkey_record.h
2.247 KB
-rw-r--r--
ibpkeys.h
1.315 KB
-rw-r--r--
iface_record.h
1.797 KB
-rw-r--r--
interfaces.h
1.37 KB
-rw-r--r--
kernel_to_cil.h
0.122 KB
-rw-r--r--
kernel_to_conf.h
0.123 KB
-rw-r--r--
module.h
2.617 KB
-rw-r--r--
module_to_cil.h
0.321 KB
-rw-r--r--
node_record.h
2.74 KB
-rw-r--r--
nodes.h
1.281 KB
-rw-r--r--
policydb.h
4.585 KB
-rw-r--r--
port_record.h
1.968 KB
-rw-r--r--
ports.h
1.281 KB
-rw-r--r--
roles.h
0.331 KB
-rw-r--r--
sepol.h
0.842 KB
-rw-r--r--
user_record.h
2.328 KB
-rw-r--r--
users.h
1.976 KB
-rw-r--r--