Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_post.c632 struct cil_fsuse *afsuse; in test_cil_post_fsuse_compare_type_a_greater_b() local
633 cil_fsuse_init(&afsuse); in test_cil_post_fsuse_compare_type_a_greater_b()
634 afsuse->type = CIL_FSUSE_XATTR; in test_cil_post_fsuse_compare_type_a_greater_b()
640 int rc = cil_post_fsuse_compare(&afsuse, &bfsuse); in test_cil_post_fsuse_compare_type_a_greater_b()
645 struct cil_fsuse *afsuse; in test_cil_post_fsuse_compare_type_b_greater_a() local
646 cil_fsuse_init(&afsuse); in test_cil_post_fsuse_compare_type_b_greater_a()
647 afsuse->type = CIL_FSUSE_TASK; in test_cil_post_fsuse_compare_type_b_greater_a()
653 int rc = cil_post_fsuse_compare(&afsuse, &bfsuse); in test_cil_post_fsuse_compare_type_b_greater_a()
658 struct cil_fsuse *afsuse; in test_cil_post_fsuse_compare_fsstr_a_greater_b() local
659 cil_fsuse_init(&afsuse); in test_cil_post_fsuse_compare_fsstr_a_greater_b()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_post.c316 struct cil_fsuse *afsuse; in cil_post_fsuse_compare() local
318 afsuse = *(struct cil_fsuse**)a; in cil_post_fsuse_compare()
320 if (afsuse->type < bfsuse->type) { in cil_post_fsuse_compare()
322 } else if (bfsuse->type < afsuse->type) { in cil_post_fsuse_compare()
325 rc = strcmp(afsuse->fs_str, bfsuse->fs_str); in cil_post_fsuse_compare()