Home
last modified time | relevance | path

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

12

/external/selinux/libselinux/src/
Dlabel_internal.h27 int selabel_file_init(struct selabel_handle *rec,
30 int selabel_media_init(struct selabel_handle *rec,
33 int selabel_x_init(struct selabel_handle *rec,
36 int selabel_db_init(struct selabel_handle *rec,
39 int selabel_property_init(struct selabel_handle *rec,
42 int selabel_exact_match_init(struct selabel_handle *rec,
79 struct selabel_handle { struct
85 struct selabel_lookup_rec *(*func_lookup) (struct selabel_handle *h, argument
87 void (*func_close) (struct selabel_handle *h); argument
88 void (*func_stats) (struct selabel_handle *h); argument
[all …]
Dlabel.c50 typedef int (*selabel_initfunc)(struct selabel_handle *rec,
131 int selabel_validate(struct selabel_handle *rec, in selabel_validate()
149 static int selabel_fini(struct selabel_handle *rec, in selabel_fini()
168 selabel_lookup_common(struct selabel_handle *rec, int translating, in selabel_lookup_common()
189 selabel_lookup_bm_common(struct selabel_handle *rec, int translating, in selabel_lookup_bm_common()
213 struct selabel_handle *selabel_open(unsigned int backend, in selabel_open()
217 struct selabel_handle *rec = NULL; in selabel_open()
229 rec = (struct selabel_handle *)malloc(sizeof(*rec)); in selabel_open()
247 int selabel_lookup(struct selabel_handle *rec, char **con, in selabel_lookup()
260 int selabel_lookup_raw(struct selabel_handle *rec, char **con, in selabel_lookup_raw()
[all …]
Dlabel_backends_android.c85 static int process_line(struct selabel_handle *rec, in process_line()
142 static int process_file(struct selabel_handle *rec, const char *path) in process_file()
208 static void closef(struct selabel_handle *rec);
210 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
275 static void closef(struct selabel_handle *rec) in closef()
295 static struct selabel_lookup_rec *property_lookup(struct selabel_handle *rec, in property_lookup()
330 static struct selabel_lookup_rec *lookup_exact_match(struct selabel_handle *rec, in lookup_exact_match()
362 static void stats(struct selabel_handle __attribute__((unused)) *rec) in stats()
367 int selabel_property_init(struct selabel_handle *rec, in selabel_property_init()
385 int selabel_exact_match_init(struct selabel_handle *rec, in selabel_exact_match_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()
153 static void close(struct selabel_handle *rec) in close()
172 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
197 static void stats(struct selabel_handle *rec) in stats()
209 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()
180 static void close(struct selabel_handle *rec) in close()
199 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
223 static void stats(struct selabel_handle *rec) in stats()
235 int selabel_x_init(struct selabel_handle *rec, const struct selinux_opt *opts, in selabel_x_init()
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()
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()
530 struct selabel_handle *rec, in process_file()
709 static void closef(struct selabel_handle *rec);
711 static int init(struct selabel_handle *rec, const struct selinux_opt *opts, in init()
844 static void closef(struct selabel_handle *rec) in closef()
898 static const struct spec **lookup_all(struct selabel_handle *rec, in lookup_all()
1012 static struct spec *lookup_common(struct selabel_handle *rec, in lookup_common()
1030 static bool get_digests_all_partial_matches(struct selabel_handle *rec, in get_digests_all_partial_matches()
1078 static bool hash_all_partial_matches(struct selabel_handle *rec, const char *key, uint8_t *digest) in hash_all_partial_matches()
[all …]
Dselinux_restorecon.c44 static struct selabel_handle *fc_sehandle = NULL;
88 struct selabel_handle *sehandle = NULL; in restorecon_init()
1140 void selinux_restorecon_set_sehandle(struct selabel_handle *hndl) in selinux_restorecon_set_sehandle()
1146 fc_sehandle = (struct selabel_handle *) hndl; in selinux_restorecon_set_sehandle()
1161 struct selabel_handle *selinux_restorecon_default_handle(void) in selinux_restorecon_default_handle()
1163 struct selabel_handle *sehandle; in selinux_restorecon_default_handle()
/external/selinux/libselinux/include/selinux/
Dlabel.h22 struct selabel_handle;
78 extern struct selabel_handle *selabel_open(unsigned int backend,
89 extern void selabel_close(struct selabel_handle *handle);
104 extern int selabel_lookup(struct selabel_handle *handle, char **con,
106 extern int selabel_lookup_raw(struct selabel_handle *handle, char **con,
109 extern bool selabel_partial_match(struct selabel_handle *handle, const char *key);
111 extern bool selabel_get_digests_all_partial_matches(struct selabel_handle *rec,
116 extern bool selabel_hash_all_partial_matches(struct selabel_handle *rec,
119 extern int selabel_lookup_best_match(struct selabel_handle *rec, char **con,
121 extern int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con,
[all …]
Dandroid.h14 extern struct selabel_handle* selinux_android_file_context_handle(void);
16 extern struct selabel_handle* selinux_android_service_context_handle(void);
18 extern struct selabel_handle* selinux_android_hw_service_context_handle(void);
20 extern struct selabel_handle* selinux_android_vendor_service_context_handle(void);
22 extern struct selabel_handle* selinux_android_keystore2_key_context_handle(void);
24 extern void selinux_android_set_sehandle(const struct selabel_handle *hndl);
Drestorecon.h113 extern void selinux_restorecon_set_sehandle(struct selabel_handle *hndl);
123 extern struct selabel_handle *selinux_restorecon_default_handle(void);
/external/selinux/libselinux/src/android/
Dandroid.c80 struct selabel_handle* selinux_android_service_open_context_handle(const struct selinux_opt* seopts… in selinux_android_service_open_context_handle()
83 struct selabel_handle* sehandle; in selinux_android_service_open_context_handle()
100 struct selabel_handle* selinux_android_keystore2_key_open_context_handle(const struct selinux_opt* … in selinux_android_keystore2_key_open_context_handle()
103 struct selabel_handle* sehandle; in selinux_android_keystore2_key_open_context_handle()
120 struct selabel_handle* selinux_android_service_context_handle(void) in selinux_android_service_context_handle()
153 struct selabel_handle* selinux_android_hw_service_context_handle(void) in selinux_android_hw_service_context_handle()
191 struct selabel_handle* selinux_android_vendor_service_context_handle(void) in selinux_android_vendor_service_context_handle()
203 struct selabel_handle* selinux_android_keystore2_key_context_handle(void) in selinux_android_keystore2_key_context_handle()
/external/squashfs-tools/squashfs-tools/
Dandroid.c63 struct selabel_handle *get_sehnd(const char *context_file) { in get_sehnd()
70 struct selabel_handle *sehnd = in get_sehnd()
81 char *set_selabel(const char *path, unsigned int mode, struct selabel_handle *sehnd) { in set_selabel()
Dandroid.h26 struct selabel_handle *get_sehnd(const char *context_file);
27 char *set_selabel(const char *path, unsigned int mode, struct selabel_handle *sehnd);
/external/selinux/policycoreutils/setfiles/
Drestore.h41 struct selabel_handle *hnd;
/external/selinux/libselinux/fuzzers/
Dselabel_lookup_fuzzer.cpp25 selabel_handle *GetHandle(FuzzedDataProvider &fdp) { in GetHandle()
/external/selinux/restorecond/
Drestore.h47 struct selabel_handle *hnd;
/external/erofs-utils/include/erofs/
Dconfig.h46 struct selabel_handle *sehnd;
/external/selinux/libselinux/utils/
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()
/external/e2fsprogs/contrib/android/
Dperms.h32 struct selabel_handle;
Dperms.c24 struct selabel_handle *sehnd;
290 struct selabel_handle *sehnd, in __android_configure_fs()
336 struct selabel_handle *sehnd = NULL; in android_configure_fs()

12