Home
last modified time | relevance | path

Searched refs:selabel_handle (Results 1 – 21 of 21) sorted by relevance

/third_party/selinux/libselinux/src/
Dlabel_internal.h26 int selabel_file_init(struct selabel_handle *rec,
29 int selabel_media_init(struct selabel_handle *rec,
32 int selabel_x_init(struct selabel_handle *rec,
35 int selabel_db_init(struct selabel_handle *rec,
38 int selabel_property_init(struct selabel_handle *rec,
41 int selabel_service_init(struct selabel_handle *rec,
78 struct selabel_handle { struct
84 struct selabel_lookup_rec *(*func_lookup) (struct selabel_handle *h, argument
86 void (*func_close) (struct selabel_handle *h); argument
87 void (*func_stats) (struct selabel_handle *h); argument
[all …]
Dlabel.c44 typedef int (*selabel_initfunc)(struct selabel_handle *rec,
124 int selabel_validate(struct selabel_handle *rec, in selabel_validate()
142 static int selabel_fini(struct selabel_handle *rec, in selabel_fini()
166 selabel_lookup_common(struct selabel_handle *rec, int translating, in selabel_lookup_common()
187 selabel_lookup_bm_common(struct selabel_handle *rec, int translating, in selabel_lookup_bm_common()
208 static void free_spec_files(struct selabel_handle *rec) in free_spec_files()
225 struct selabel_handle *selabel_open(unsigned int backend, in selabel_open()
229 struct selabel_handle *rec = NULL; in selabel_open()
241 rec = (struct selabel_handle *)malloc(sizeof(*rec)); in selabel_open()
267 int selabel_lookup(struct selabel_handle *rec, char **con, in selabel_lookup()
[all …]
Dlabel_backends_android.c83 static int process_line(struct selabel_handle *rec, in process_line()
143 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
231 static void closef(struct selabel_handle *rec) in closef()
250 static struct selabel_lookup_rec *property_lookup(struct selabel_handle *rec, in property_lookup()
285 static struct selabel_lookup_rec *service_lookup(struct selabel_handle *rec, in service_lookup()
317 static void stats(struct selabel_handle __attribute__((unused)) *rec) in stats()
322 int selabel_property_init(struct selabel_handle *rec, in selabel_property_init()
340 int selabel_service_init(struct selabel_handle *rec, in selabel_service_init()
Dlabel_media.c34 unsigned lineno, struct selabel_handle *rec) in process_line()
70 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
152 static void close(struct selabel_handle *rec) in close()
171 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
196 static void stats(struct selabel_handle *rec) in stats()
208 int selabel_media_init(struct selabel_handle *rec, in selabel_media_init()
Dlabel_x.c36 unsigned lineno, struct selabel_handle *rec) in process_line()
97 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
179 static void close(struct selabel_handle *rec) in close()
198 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
222 static void stats(struct selabel_handle *rec) in stats()
234 int selabel_x_init(struct selabel_handle *rec, const struct selinux_opt *opts, in selabel_x_init()
Dlabel_file.c98 struct selabel_handle *rec, const char *path) in process_text_file()
116 static int load_mmap(FILE *fp, size_t len, struct selabel_handle *rec, in load_mmap()
533 struct selabel_handle *rec, in process_file()
710 static void closef(struct selabel_handle *rec);
713 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, unsigned n) in init()
778 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
874 static void closef(struct selabel_handle *rec) in closef()
922 static struct spec **lookup_all(struct selabel_handle *rec, in lookup_all()
1065 static struct spec *lookup_common(struct selabel_handle *rec, in lookup_common()
1083 static bool get_digests_all_partial_matches(struct selabel_handle *rec, in get_digests_all_partial_matches()
[all …]
Dlabel_db.c175 db_close(struct selabel_handle *rec) in db_close()
194 db_lookup(struct selabel_handle *rec, const char *key, int type) in db_lookup()
221 db_stats(struct selabel_handle *rec) in db_stats()
238 struct selabel_handle *rec) in db_init()
359 int selabel_db_init(struct selabel_handle *rec, in selabel_db_init()
Dselinux_restorecon.c45 static struct selabel_handle *fc_sehandle = NULL;
96 struct selabel_handle *sehandle = NULL; in restorecon_init()
1399 void selinux_restorecon_set_sehandle(struct selabel_handle *hndl) in selinux_restorecon_set_sehandle()
1422 struct selabel_handle *selinux_restorecon_default_handle(void) in selinux_restorecon_default_handle()
1424 struct selabel_handle *sehandle; in selinux_restorecon_default_handle()
Dmatchpathcon.c38 int compat_validate(struct selabel_handle *rec, in compat_validate()
68 static __thread struct selabel_handle *hnd;
Dlabel_file.h434 static inline int process_line(struct selabel_handle *rec, in process_line()
/third_party/selinux/libselinux/include/selinux/
Dlabel.h22 struct selabel_handle;
76 extern struct selabel_handle *selabel_open(unsigned int backend,
87 extern void selabel_close(struct selabel_handle *handle);
102 extern int selabel_lookup(struct selabel_handle *handle, char **con,
104 extern int selabel_lookup_raw(struct selabel_handle *handle, char **con,
107 extern bool selabel_partial_match(struct selabel_handle *handle, const char *key);
109 extern bool selabel_get_digests_all_partial_matches(struct selabel_handle *rec,
114 extern bool selabel_hash_all_partial_matches(struct selabel_handle *rec,
117 extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con,
119 extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con,
[all …]
Drestorecon.h142 extern void selinux_restorecon_set_sehandle(struct selabel_handle *hndl);
152 extern struct selabel_handle *selinux_restorecon_default_handle(void);
/third_party/selinux/libselinux/utils/
Dmatchpathcon.c21 static int printmatchpathcon(struct selabel_handle *hnd, const char *path, int header, int mode, in… in printmatchpathcon()
80 struct selabel_handle *hnd; in main()
Dsefcontext_compile.c32 static int process_file(struct selabel_handle *rec, const char *filename) in process_file()
305 struct selabel_handle *rec = NULL; in main()
359 rec = (struct selabel_handle *)calloc(1, sizeof(*rec)); in main()
Dselabel_partial_match.c33 struct selabel_handle *hnd; in main()
Dselabel_lookup.c38 struct selabel_handle *hnd; in main()
Dselabel_lookup_best_match.c60 struct selabel_handle *hnd; in main()
Dselabel_get_digests_all_partial_matches.c42 struct selabel_handle *hnd; in main()
Dselabel_digest.c72 struct selabel_handle *hnd; in main()
/third_party/f2fs-tools/fsck/
Dfsck.h157 struct selabel_handle;
Dsload.c25 static struct selabel_handle *sehnd = NULL;