Another possible improvement could be as follows (libsemanag): Fix a few calls to semanage_store_access_check() in the libsemanage tests so that a void function is called. --- selinux/libsemanage/tests/test_semanage_store.c 2011-09-09 20:12:56.017662440 +0200 +++ selinux-13092011-rebuild/libsemanage/tests/test_semanage_store.c 2011-09-14 01:19:05.547450022 +0200 @@ -163,7 +163,7 @@ void test_semanage_store_access_check(vo err = chmod(polpath, 0); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == -1); /* check with permissions 500 */ @@ -174,7 +174,7 @@ void test_semanage_store_access_check(vo err = chmod(modpath, S_IRUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == SEMANAGE_CAN_READ); /* check with permissions 700 */ @@ -185,7 +185,7 @@ void test_semanage_store_access_check(vo err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == SEMANAGE_CAN_WRITE); /* check with lock file 000 and others 500 */ @@ -196,7 +196,7 @@ void test_semanage_store_access_check(vo err = chmod(modpath, S_IRUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == 0); /* check with lock file 000 and others 700 */ @@ -207,7 +207,7 @@ void test_semanage_store_access_check(vo err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == 0); /* remove lock file */ @@ -222,7 +222,7 @@ void test_semanage_store_access_check(vo err = chmod(polpath, 0); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == -1); /* check with no lock file and 500 */ @@ -233,14 +233,14 @@ void test_semanage_store_access_check(vo err = chmod(modpath, S_IRUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == 0); /* check with no lock file but write in lockpath */ err = chmod(lockpath, S_IRUSR | S_IWUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == SEMANAGE_CAN_READ); /* check with no lock file and 700 */ @@ -249,7 +249,7 @@ void test_semanage_store_access_check(vo err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR); CU_ASSERT(err == 0); - err = semanage_store_access_check(sh); + err = semanage_store_access_check(); CU_ASSERT(err == SEMANAGE_CAN_WRITE); } -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.