Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-uid-range.c22 assert_se(uid_range_covers(p, n, 0, 0)); in TEST()
23 assert_se(!uid_range_covers(p, n, 0, 1)); in TEST()
24 assert_se(!uid_range_covers(p, n, 100, UINT32_MAX)); in TEST()
36 assert_se(!uid_range_covers(p, n, 100, 150)); in TEST()
37 assert_se(!uid_range_covers(p, n, 400, 200)); in TEST()
38 assert_se(!uid_range_covers(p, n, 499, 1)); in TEST()
39 assert_se(uid_range_covers(p, n, 500, 1)); in TEST()
40 assert_se(uid_range_covers(p, n, 501, 10)); in TEST()
41 assert_se(uid_range_covers(p, n, 999, 1)); in TEST()
42 assert_se(!uid_range_covers(p, n, 999, 2)); in TEST()
[all …]
/systemd-251/src/shared/
Duid-range.h15 bool uid_range_covers(const UidRange *p, size_t n, uid_t start, uid_t nr);
18 return uid_range_covers(p, n, uid, 1); in uid_range_contains()
Duid-range.c182 bool uid_range_covers(const UidRange *p, size_t n, uid_t start, uid_t nr) { in uid_range_covers() function
/systemd-251/src/userdb/
Duserdbctl.c184 …!uid_range_covers(p, n, uid_range_table[i].first, uid_range_table[i].last - uid_range_table[i].fir… in table_add_uid_boundaries()
547 !uid_range_covers(p, n, uid_range_table[i].first, uid_range_table[i].last)) in table_add_gid_boundaries()
/systemd-251/src/core/
Dmanager.c4466 return !uid_range_covers(p, n, 0, 65535); in short_uid_range()