Home
last modified time | relevance | path

Searched refs:selabel_handle (Results 1 – 24 of 24) 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()
157 selabel_lookup_common(struct selabel_handle *rec, int translating, in selabel_lookup_common()
178 selabel_lookup_bm_common(struct selabel_handle *rec, int translating, in selabel_lookup_bm_common()
202 struct selabel_handle *selabel_open(unsigned int backend, in selabel_open()
206 struct selabel_handle *rec = NULL; in selabel_open()
218 rec = (struct selabel_handle *)malloc(sizeof(*rec)); in selabel_open()
238 int selabel_lookup(struct selabel_handle *rec, char **con, in selabel_lookup()
251 int selabel_lookup_raw(struct selabel_handle *rec, char **con, in selabel_lookup_raw()
[all …]
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_backends_android.c83 static int process_line(struct selabel_handle *rec, in process_line()
145 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
233 static void closef(struct selabel_handle *rec) in closef()
252 static struct selabel_lookup_rec *property_lookup(struct selabel_handle *rec, in property_lookup()
287 static struct selabel_lookup_rec *service_lookup(struct selabel_handle *rec, in service_lookup()
319 static void stats(struct selabel_handle __attribute__((unused)) *rec) in stats()
324 int selabel_property_init(struct selabel_handle *rec, in selabel_property_init()
342 int selabel_service_init(struct selabel_handle *rec, in selabel_service_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);
712 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
807 static void closef(struct selabel_handle *rec) in closef()
855 static struct spec **lookup_all(struct selabel_handle *rec, in lookup_all()
993 static struct spec *lookup_common(struct selabel_handle *rec, in lookup_common()
1011 static bool get_digests_all_partial_matches(struct selabel_handle *rec, in get_digests_all_partial_matches()
1059 static bool hash_all_partial_matches(struct selabel_handle *rec, const char *key, uint8_t *digest) in hash_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()
353 int selabel_db_init(struct selabel_handle *rec, in selabel_db_init()
Dselinux_restorecon.c44 static struct selabel_handle *fc_sehandle = NULL;
89 struct selabel_handle *sehandle = NULL; in restorecon_init()
1167 void selinux_restorecon_set_sehandle(struct selabel_handle *hndl) in selinux_restorecon_set_sehandle()
1190 struct selabel_handle *selinux_restorecon_default_handle(void) in selinux_restorecon_default_handle()
1192 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.h118 extern void selinux_restorecon_set_sehandle(struct selabel_handle *hndl);
128 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/e2fsprogs/contrib/android/
Dperms.h32 struct selabel_handle;
Dperms.c25 struct selabel_handle *sehnd;
291 struct selabel_handle *sehnd, in __android_configure_fs()
337 struct selabel_handle *sehnd = NULL; in android_configure_fs()
/third_party/f2fs-tools/fsck/
Dfsck.h147 struct selabel_handle;
Dsload.c25 static struct selabel_handle *sehnd = NULL;
/third_party/eudev/src/shared/
Dselinux-util.c44 static struct selabel_handle *label_hnd = NULL;