Home
last modified time | relevance | path

Searched refs:aportcon (Results 1 – 2 of 2) sorted by relevance

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_post.c207 struct cil_portcon *aportcon; in test_cil_post_portcon_compare_atotal_greater_btotal() local
208 cil_portcon_init(&aportcon); in test_cil_post_portcon_compare_atotal_greater_btotal()
213 aportcon->port_low = 15; in test_cil_post_portcon_compare_atotal_greater_btotal()
214 aportcon->port_high = 30; in test_cil_post_portcon_compare_atotal_greater_btotal()
219 int rc = cil_post_portcon_compare(&aportcon, &bportcon); in test_cil_post_portcon_compare_atotal_greater_btotal()
224 struct cil_portcon *aportcon; in test_cil_post_portcon_compare_btotal_greater_atotal() local
225 cil_portcon_init(&aportcon); in test_cil_post_portcon_compare_btotal_greater_atotal()
230 aportcon->port_low = 5; in test_cil_post_portcon_compare_btotal_greater_atotal()
231 aportcon->port_high = 5; in test_cil_post_portcon_compare_btotal_greater_atotal()
236 int rc = cil_post_portcon_compare(&aportcon, &bportcon); in test_cil_post_portcon_compare_btotal_greater_atotal()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_post.c157 struct cil_portcon *aportcon = *(struct cil_portcon**)a; in cil_post_portcon_compare() local
160 rc = (aportcon->port_high - aportcon->port_low) in cil_post_portcon_compare()
163 if (aportcon->port_low < bportcon->port_low) { in cil_post_portcon_compare()
165 } else if (bportcon->port_low < aportcon->port_low) { in cil_post_portcon_compare()