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_service_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,
130 int selabel_validate(struct selabel_handle *rec, in selabel_validate()
148 static int selabel_fini(struct selabel_handle *rec, in selabel_fini()
167 selabel_lookup_common(struct selabel_handle *rec, int translating, in selabel_lookup_common()
188 selabel_lookup_bm_common(struct selabel_handle *rec, int translating, in selabel_lookup_bm_common()
212 struct selabel_handle *selabel_open(unsigned int backend, in selabel_open()
216 struct selabel_handle *rec = NULL; in selabel_open()
228 rec = (struct selabel_handle *)malloc(sizeof(*rec)); in selabel_open()
246 int selabel_lookup(struct selabel_handle *rec, char **con, in selabel_lookup()
259 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 *service_lookup(struct selabel_handle *rec, in service_lookup()
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_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()
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()
1011 static struct spec *lookup_common(struct selabel_handle *rec, in lookup_common()
1024 static bool hash_all_partial_matches(struct selabel_handle *rec, const char *key, uint8_t *digest) in hash_all_partial_matches()
1055 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec, in lookup()
[all …]
Dselinux_restorecon.c47 static struct selabel_handle *fc_sehandle = NULL;
93 struct selabel_handle *sehandle = NULL; in restorecon_init()
1050 void selinux_restorecon_set_sehandle(struct selabel_handle *hndl) in selinux_restorecon_set_sehandle()
1055 fc_sehandle = (struct selabel_handle *) hndl; in selinux_restorecon_set_sehandle()
1071 struct selabel_handle *selinux_restorecon_default_handle(void) in selinux_restorecon_default_handle()
1073 struct selabel_handle *sehandle; in selinux_restorecon_default_handle()
/external/selinux/libselinux/include/selinux/
Dlabel.h22 struct selabel_handle;
76 struct selabel_handle *selabel_open(unsigned int backend,
87 void selabel_close(struct selabel_handle *handle);
102 int selabel_lookup(struct selabel_handle *handle, char **con,
104 int selabel_lookup_raw(struct selabel_handle *handle, char **con,
107 bool selabel_partial_match(struct selabel_handle *handle, const char *key);
109 bool selabel_hash_all_partial_matches(struct selabel_handle *rec,
112 int selabel_lookup_best_match(struct selabel_handle *rec, char **con,
114 int selabel_lookup_best_match_raw(struct selabel_handle *rec, char **con,
130 int selabel_digest(struct selabel_handle *rec,
[all …]
Dandroid.h14 extern struct selabel_handle* selinux_android_file_context_handle(void);
16 extern struct selabel_handle* selinux_android_prop_context_handle(void);
18 extern struct selabel_handle* selinux_android_service_context_handle(void);
20 extern struct selabel_handle* selinux_android_hw_service_context_handle(void);
22 extern struct selabel_handle* selinux_android_vendor_service_context_handle(void);
24 extern void selinux_android_set_sehandle(const struct selabel_handle *hndl);
Drestorecon.h108 extern void selinux_restorecon_set_sehandle(struct selabel_handle *hndl);
118 extern struct selabel_handle *selinux_restorecon_default_handle(void);
/external/selinux/libselinux/src/android/
Dandroid.c54 struct selabel_handle* selinux_android_service_open_context_handle(const struct selinux_opt* seopts… in selinux_android_service_open_context_handle()
57 struct selabel_handle* sehandle; in selinux_android_service_open_context_handle()
74 struct selabel_handle* selinux_android_service_context_handle(void) in selinux_android_service_context_handle()
101 struct selabel_handle* selinux_android_hw_service_context_handle(void) in selinux_android_hw_service_context_handle()
133 struct selabel_handle* selinux_android_vendor_service_context_handle(void) in selinux_android_vendor_service_context_handle()
Dandroid_vendor.c10 struct selabel_handle* selinux_android_prop_context_handle(void) in selinux_android_prop_context_handle()
Dandroid_platform.c145 static struct selabel_handle* selinux_android_file_context(const struct selinux_opt *opts, in selinux_android_file_context()
148 struct selabel_handle *sehandle; in selinux_android_file_context()
171 struct selabel_handle* selinux_android_file_context_handle(void) in selinux_android_file_context_handle()
203 struct selabel_handle* selinux_android_prop_context_handle(void) in selinux_android_prop_context_handle()
205 struct selabel_handle* sehandle; in selinux_android_prop_context_handle()
1236 static struct selabel_handle *fc_sehandle = NULL;
1801 void selinux_android_set_sehandle(const struct selabel_handle *hndl) in selinux_android_set_sehandle()
1803 fc_sehandle = (struct selabel_handle *) hndl; in selinux_android_set_sehandle()
/external/squashfs-tools/squashfs-tools/
Dandroid.c62 struct selabel_handle *get_sehnd(const char *context_file) { in get_sehnd()
69 struct selabel_handle *sehnd = in get_sehnd()
80 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/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()
/external/e2fsprogs/contrib/android/
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()
Dperms.h32 struct selabel_handle;
/external/selinux/policycoreutils/setfiles/
Drestore.h41 struct selabel_handle *hnd;
/external/selinux/restorecond/
Drestore.h47 struct selabel_handle *hnd;
/external/toybox/toys/android/
Dgetprop.c29 struct selabel_handle *handle;

12