Searched refs:ranges (Results 1 – 5 of 5) sorted by relevance
/bionic/libc/tools/ |
D | test_genseccomp.py | 11 ranges = genseccomp.convert_NRs_to_ranges([("b", 2), ("a", 1)]) 12 self.assertEqual(len(ranges), 1) 13 self.assertEqual(ranges[0].begin, 1) 14 self.assertEqual(ranges[0].end, 3) 15 self.assertEqual(set(ranges[0].names), {"a", "b"}) 17 ranges = genseccomp.convert_NRs_to_ranges([("b", 3), ("a", 1)]) 18 self.assertEqual(len(ranges), 2) 19 self.assertEqual(ranges[0].begin, 1) 20 self.assertEqual(ranges[0].end, 2) 21 self.assertEqual(set(ranges[0].names), {"a"}) [all …]
|
D | genseccomp.py | 134 ranges = [] 136 if not ranges: 137 ranges.append(SyscallRange(name, value)) 140 last_range = ranges[-1] 144 ranges.append(SyscallRange(name, value)) 145 return ranges 154 def convert_to_intermediate_bpf(ranges): argument 155 if len(ranges) == 1: 157 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") + 158 ", //" + "|".join(ranges[0].names)] [all …]
|
/bionic/libc/bionic/ |
D | grp_pwd.cpp | 171 static constexpr bool verify_user_ranges_ascending(T (&ranges)[N]) { in verify_user_ranges_ascending() 175 if (ranges[0].start > ranges[0].end) return false; in verify_user_ranges_ascending() 178 if (ranges[i].start > ranges[i].end) return false; in verify_user_ranges_ascending() 179 if (ranges[i - 1].end > ranges[i].start) return false; in verify_user_ranges_ascending() 214 auto ranges = is_group ? group_ranges : user_ranges; in is_valid_app_id() local 218 if (appid < ranges[0].start && platform_id_secondary_user_allowed(appid)) { in is_valid_app_id() 229 if (appid >= ranges[i].start && appid <= ranges[i].end) { in is_valid_app_id() 246 auto ranges = is_group ? group_ranges : user_ranges; in get_next_app_id() local 250 if (current_id < ranges[0].start) { in get_next_app_id() 251 return ranges[0].start; in get_next_app_id() [all …]
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | kvm.h | 190 struct kvm_msr_filter_range ranges[KVM_MSR_FILTER_MAX_RANGES]; member
|
/bionic/docs/ |
D | elf-tls.md | 684 * On arm64, there are different sets of static LE relocations accommodating different ranges of
|