Home
last modified time | relevance | path

Searched refs:stem_len (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libselinux/src/
Dlabel_file.h265 int stem_len) in find_stem() argument
270 if (stem_len == data->stem_arr[i].len && in find_stem()
271 !strncmp(buf, data->stem_arr[i].buf, stem_len)) in find_stem()
279 static inline int store_stem(struct saved_data *data, char *buf, int stem_len) in store_stem() argument
295 data->stem_arr[num].len = stem_len; in store_stem()
308 int stem_len = get_stem_from_spec(buf); in find_stem_from_spec() local
312 if (!stem_len) in find_stem_from_spec()
315 stemid = find_stem(data, buf, stem_len); in find_stem_from_spec()
320 stem = strndup(buf, stem_len); in find_stem_from_spec()
324 return store_stem(data, stem, stem_len); in find_stem_from_spec()
Dlabel_file.c46 int stem_len = get_stem_from_file_name(key); in find_stem_from_file() local
48 if (!stem_len) in find_stem_from_file()
51 if (stem_len == data->stem_arr[i].len in find_stem_from_file()
52 && !strncmp(key, data->stem_arr[i].buf, stem_len)) { in find_stem_from_file()
247 uint32_t stem_len; in load_mmap() local
251 rc = next_entry(&stem_len, mmap_area, sizeof(uint32_t)); in load_mmap()
252 if (rc < 0 || !stem_len) { in load_mmap()
258 if (stem_len < UINT32_MAX) { in load_mmap()
261 rc = next_entry(NULL, mmap_area, (stem_len + 1)); in load_mmap()
265 if (buf[stem_len] != '\0') { in load_mmap()
[all …]
/external/selinux/libselinux/utils/
Dsefcontext_compile.c157 uint32_t stem_len = data->stem_arr[i].len; in write_binary_file() local
160 len = fwrite(&stem_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
165 stem_len += 1; in write_binary_file()
166 len = fwrite(stem, sizeof(char), stem_len, bin_file); in write_binary_file()
167 if (len != stem_len) in write_binary_file()
/external/selinux/libsepol/cil/src/
Dcil_post.h35 int stem_len; member
Dcil_post.c163 fc->stem_len = 0; in cil_post_fc_fill_data()
185 fc->stem_len++; in cil_post_fc_fill_data()
213 } else if (a_data->stem_len < b_data->stem_len) { in cil_post_filecon_compare()
215 } else if (b_data->stem_len < a_data->stem_len) { in cil_post_filecon_compare()