Home
last modified time | relevance | path

Searched refs:ranges (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/tools/
Dtest_genseccomp.py124 ranges = genseccomp.convert_NRs_to_ranges([("b", 2), ("a", 1)])
125 self.assertEquals(len(ranges), 1)
126 self.assertEquals(ranges[0].begin, 1)
127 self.assertEquals(ranges[0].end, 3)
128 self.assertItemsEqual(ranges[0].names, ["a", "b"])
130 ranges = genseccomp.convert_NRs_to_ranges([("b", 3), ("a", 1)])
131 self.assertEquals(len(ranges), 2)
132 self.assertEquals(ranges[0].begin, 1)
133 self.assertEquals(ranges[0].end, 2)
134 self.assertItemsEqual(ranges[0].names, ["a"])
[all …]
Dgenseccomp.py126 ranges = []
128 if not ranges:
129 ranges.append(SyscallRange(name, value))
132 last_range = ranges[-1]
136 ranges.append(SyscallRange(name, value))
137 return ranges
146 def convert_to_intermediate_bpf(ranges): argument
147 if len(ranges) == 1:
149 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") +
150 ", //" + "|".join(ranges[0].names)]
[all …]
/bionic/libc/bionic/
Dgrp_pwd.cpp165 static constexpr bool verify_user_ranges_ascending(T (&ranges)[N]) { in verify_user_ranges_ascending()
169 if (ranges[0].start > ranges[0].end) return false; in verify_user_ranges_ascending()
172 if (ranges[i].start > ranges[i].end) return false; in verify_user_ranges_ascending()
173 if (ranges[i - 1].end > ranges[i].start) return false; in verify_user_ranges_ascending()
207 auto ranges = is_group ? group_ranges : user_ranges; in is_valid_app_id() local
211 if (appid < ranges[0].start && platform_id_secondary_user_allowed(appid)) { in is_valid_app_id()
222 if (appid >= ranges[i].start && appid <= ranges[i].end) { in is_valid_app_id()
233 auto ranges = is_group ? group_ranges : user_ranges; in get_next_app_id() local
237 if (current_id < ranges[0].start) { in get_next_app_id()
238 return ranges[0].start; in get_next_app_id()
[all …]
/bionic/docs/
Delf-tls.md684 * On arm64, there are different sets of static LE relocations accommodating different ranges of