/external/selinux/libselinux/src/ |
D | label_file.h | 251 int stem_len) in find_stem() argument 256 if (stem_len == data->stem_arr[i].len && in find_stem() 257 !strncmp(buf, data->stem_arr[i].buf, stem_len)) in find_stem() 265 static inline int store_stem(struct saved_data *data, char *buf, int stem_len) in store_stem() argument 279 data->stem_arr[num].len = stem_len; in store_stem() 292 int stem_len = get_stem_from_spec(buf); in find_stem_from_spec() local 296 if (!stem_len) in find_stem_from_spec() 299 stemid = find_stem(data, buf, stem_len); in find_stem_from_spec() 304 stem = strndup(buf, stem_len); in find_stem_from_spec() 308 return store_stem(data, stem, stem_len); in find_stem_from_spec()
|
D | label_file.c | 48 int stem_len = get_stem_from_file_name(*buf); in find_stem_from_file() local 50 if (!stem_len) in find_stem_from_file() 53 if (stem_len == data->stem_arr[i].len in find_stem_from_file() 54 && !strncmp(*buf, data->stem_arr[i].buf, stem_len)) { in find_stem_from_file() 55 *buf += stem_len; in find_stem_from_file() 223 uint32_t stem_len; in load_mmap() local 227 rc = next_entry(&stem_len, mmap_area, sizeof(uint32_t)); in load_mmap() 228 if (rc < 0 || !stem_len) { in load_mmap() 234 if (stem_len < UINT32_MAX) { in load_mmap() 237 rc = next_entry(NULL, mmap_area, (stem_len + 1)); in load_mmap() [all …]
|
/external/libselinux/src/ |
D | label_file.h | 254 int stem_len) in find_stem() argument 259 if (stem_len == data->stem_arr[i].len && in find_stem() 260 !strncmp(buf, data->stem_arr[i].buf, stem_len)) in find_stem() 268 static inline int store_stem(struct saved_data *data, char *buf, int stem_len) in store_stem() argument 282 data->stem_arr[num].len = stem_len; in store_stem() 295 int stem_len = get_stem_from_spec(buf); in find_stem_from_spec() local 299 if (!stem_len) in find_stem_from_spec() 302 stemid = find_stem(data, buf, stem_len); in find_stem_from_spec() 307 stem = strndup(buf, stem_len); in find_stem_from_spec() 311 return store_stem(data, stem, stem_len); in find_stem_from_spec()
|
D | label_file.c | 47 int stem_len = get_stem_from_file_name(*buf); in find_stem_from_file() local 49 if (!stem_len) in find_stem_from_file() 52 if (stem_len == data->stem_arr[i].len in find_stem_from_file() 53 && !strncmp(*buf, data->stem_arr[i].buf, stem_len)) { in find_stem_from_file() 54 *buf += stem_len; in find_stem_from_file() 221 uint32_t stem_len; in load_mmap() local 225 rc = next_entry(&stem_len, mmap_area, sizeof(uint32_t)); in load_mmap() 226 if (rc < 0 || !stem_len) { in load_mmap() 232 if (stem_len < UINT32_MAX) { in load_mmap() 235 rc = next_entry(NULL, mmap_area, (stem_len + 1)); in load_mmap() [all …]
|
/external/libselinux/utils/ |
D | sefcontext_compile.c | 121 uint32_t stem_len = data->stem_arr[i].len; in write_binary_file() local 124 len = fwrite(&stem_len, sizeof(uint32_t), 1, bin_file); in write_binary_file() 129 stem_len += 1; in write_binary_file() 130 len = fwrite(stem, sizeof(char), stem_len, bin_file); in write_binary_file() 131 if (len != stem_len) in write_binary_file()
|
/external/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 139 uint32_t stem_len = data->stem_arr[i].len; in write_binary_file() local 142 len = fwrite(&stem_len, sizeof(uint32_t), 1, bin_file); in write_binary_file() 147 stem_len += 1; in write_binary_file() 148 len = fwrite(stem, sizeof(char), stem_len, bin_file); in write_binary_file() 149 if (len != stem_len) in write_binary_file()
|
/external/selinux/libsepol/cil/src/ |
D | cil_post.h | 35 int stem_len; member
|
D | cil_post.c | 83 fc->stem_len = 0; in cil_post_fc_fill_data() 104 fc->stem_len++; in cil_post_fc_fill_data() 132 } else if (a_data->stem_len < b_data->stem_len) { in cil_post_filecon_compare() 134 } else if (b_data->stem_len < a_data->stem_len) { in cil_post_filecon_compare()
|