Skip to contentSkip to conversation

Se-Linux Updates for LTP

DISCUSSION Subrata Modak 4 participants 19 messages Dec 7, 2007 – Dec 17, 2007 3 messages not in the archive SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Regards--
Subrata

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Quoted 6 lines

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Can somebody give me some direction on this ??

--Subrata

Quoted 11 lines

Regards--
Subrata

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
Quoted 9 lines · Subrata Modak
Quoted 8 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Quoted 8 lines
Quoted 6 lines

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Anyway I think there is value to having the selinux testsuite. Though one problem with having it in LTP is that most LTP runs are done on machines which are not set up right for selinux. I personally haven't had enough potential target machines to be able to run the tests regularly. So I don't even know whether anyone has run ltp/testcases/kernel/security/selinux-testsuite/ in the last year. Joy might know though.

So given that I personally don't know who to pin down, and given that I don't have time to maintain the testsuite by myself, if I could get two or three other people to volunteer to help out, I wouldn't mind being part of a group responsible for the maintenance.

For starters, I finally have a fedora 8 vm set up which once I'm done with another test i can use to try out the existing testsuite. Hopefully that'll be later this week (no guarantees). I'll report on the results.

-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebodyś alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Now i myself has never executed these test case, so not aware of them much. But that should not prevent me from requesting updates of the same. I would be extremely happy even if we can reach the final updates through some pointer-to-pointer and that will serve my purpose of having all updates in LTP.

Just to cite an example, i recently found out that there are updates being made to pounder21 test suite(present inside LTP), by somebody for his/her internal project use. Now, the same has never been updated in LTP for quite long time. I immediately mailed to him requesting him for updates. Now my purpose will be served if i get updates from him, let alone it comes to me after long time is not the question.

Quoted 14 lines

Anyway I think there is value to having the selinux testsuite. Though one problem with having it in LTP is that most LTP runs are done on machines which are not set up right for selinux. I personally haven't had enough potential target machines to be able to run the tests regularly. So I don't even know whether anyone has run ltp/testcases/kernel/security/selinux-testsuite/ in the last year. Joy might know though.

So given that I personally don't know who to pin down, and given that I don't have time to maintain the testsuite by myself, if I could get two or three other people to volunteer to help out, I wouldn't mind being part of a group responsible for the maintenance.

Quoted 6 lines

For starters, I finally have a fedora 8 vm set up which once I'm done with another test i can use to try out the existing testsuite. Hopefully that'll be later this week (no guarantees). I'll report on the results.

-serge

Thanks Serge. Will wait for your results.

Regards--
Subrata

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw
Quoted 69 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the

Quoted 8 lines

author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Reasonable. And it looks like the prod was needed.

Quoted 27 lines

Now i myself has never executed these test case, so not aware of them much. But that should not prevent me from requesting updates of the same. I would be extremely happy even if we can reach the final updates through some pointer-to-pointer and that will serve my purpose of having all updates in LTP.

Just to cite an example, i recently found out that there are updates being made to pounder21 test suite(present inside LTP), by somebody for his/her internal project use. Now, the same has never been updated in LTP for quite long time. I immediately mailed to him requesting him for updates. Now my purpose will be served if i get updates from him, let alone it comes to me after long time is not the question.

Quoted 14 lines

Anyway I think there is value to having the selinux testsuite. Though one problem with having it in LTP is that most LTP runs are done on machines which are not set up right for selinux. I personally haven't had enough potential target machines to be able to run the tests regularly. So I don't even know whether anyone has run ltp/testcases/kernel/security/selinux-testsuite/ in the last year. Joy might know though.

So given that I personally don't know who to pin down, and given that I don't have time to maintain the testsuite by myself, if I could get two or three other people to volunteer to help out, I wouldn't mind being part of a group responsible for the maintenance.

Quoted 8 lines
Quoted 6 lines

For starters, I finally have a fedora 8 vm set up which once I'm done with another test i can use to try out the existing testsuite. Hopefully that'll be later this week (no guarantees). I'll report on the results.

-serge

Thanks Serge. Will wait for your results.

thanks,
-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#6 lore raw
Quoted 79 lines · Serge E. Hallyn
Quoted 69 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the

Quoted 8 lines

author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Quoted 1 line

Reasonable. And it looks like the prod was needed.

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

Regards--
Subrata

Quoted 37 lines
Quoted 28 lines

Now i myself has never executed these test case, so not aware of them much. But that should not prevent me from requesting updates of the same. I would be extremely happy even if we can reach the final updates through some pointer-to-pointer and that will serve my purpose of having all updates in LTP.

Just to cite an example, i recently found out that there are updates being made to pounder21 test suite(present inside LTP), by somebody for his/her internal project use. Now, the same has never been updated in LTP for quite long time. I immediately mailed to him requesting him for updates. Now my purpose will be served if i get updates from him, let alone it comes to me after long time is not the question.

Quoted 14 lines

Anyway I think there is value to having the selinux testsuite. Though one problem with having it in LTP is that most LTP runs are done on machines which are not set up right for selinux. I personally haven't had enough potential target machines to be able to run the tests regularly. So I don't even know whether anyone has run ltp/testcases/kernel/security/selinux-testsuite/ in the last year. Joy might know though.

So given that I personally don't know who to pin down, and given that I don't have time to maintain the testsuite by myself, if I could get two or three other people to volunteer to help out, I wouldn't mind being part of a group responsible for the maintenance.

Quoted 8 lines
Quoted 6 lines

For starters, I finally have a fedora 8 vm set up which once I'm done with another test i can use to try out the existing testsuite. Hopefully that'll be later this week (no guarantees). I'll report on the results.

-serge

Thanks Serge. Will wait for your results.

Quoted 7 lines

thanks,
-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#7 lore raw
Quoted 80 lines · Subrata Modak
Quoted 79 lines · Serge E. Hallyn
Quoted 77 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Quoted 5 lines
Quoted 1 line

Reasonable. And it looks like the prod was needed.

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

No. I thought I'd made it clear that I was going to try running them under FC8 later this week or early next and report back. No one has any updates at the moment. (which is why the prod was needed :)

-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#9 lore raw
In reply to Subrata Modak
Quoted 80 lines · Subrata Modak
Quoted 79 lines · Serge E. Hallyn
Quoted 77 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Quoted 5 lines
Quoted 1 line

Reasonable. And it looks like the prod was needed.

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

Patch attached.

Signature · 2 lines
Stephen Smalley
National Security Agency

Apply some fixes to the selinux testsuite's test policy.

---

 kernel/security/selinux-testsuite/README                         |   10 +++-
 kernel/security/selinux-testsuite/refpolicy/test_capable_file.te |    2 
 kernel/security/selinux-testsuite/refpolicy/test_capable_net.te  |   22 +++++-----
 kernel/security/selinux-testsuite/refpolicy/test_file.te         |    6 +-
 kernel/security/selinux-testsuite/refpolicy/test_global.te       |   22 +++++++++-
 kernel/security/selinux-testsuite/refpolicy/test_ioctl.te        |    2 
 kernel/security/selinux-testsuite/refpolicy/test_readlink.te     |    6 ++
 kernel/security/selinux-testsuite/refpolicy/test_rxdir.te        |    6 ++
 kernel/security/selinux-testsuite/refpolicy/test_setnice.te      |    2 
 kernel/security/selinux-testsuite/refpolicy/test_stat.te         |    6 ++
 kernel/security/selinux-testsuite/refpolicy/test_sysctl.te       |    6 +-
 kernel/security/selinux-testsuite/refpolicy/test_task_create.te  |    4 -
 kernel/security/selinux-testsuite/refpolicy/test_task_setpgid.te |    2 
 13 files changed, 65 insertions(+), 31 deletions(-)

Index: testcases/kernel/security/selinux-testsuite/README
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/README,v retrieving revision 1.2

kernel/security/selinux-testsuite/README +7 -3
diff -u -r1.2 README
@@ -6,6 +6,10 @@
 such as getenforce are found. The test_selinux.sh script adds /usr/sbin
 to the PATH. 
 
+You must also add expand-check=0 to your /etc/selinux/semanage.conf file
+as the test policy will violate some of the neverallow rules in the
+base policy.
+
 There are two ways to run the SELinux testcases:
 	1. testsuite - all testcases
 	2. individual testcases
@@ -62,8 +66,8 @@
 Run Individual Testcases
 --------------------------
 First build the test policy manually. Do this by first changing 
-to the selinux-testsuite policy directory (cd to 
-$LTPROOT/testcases/kernel/security/selinux-testsuite/policy)
+to the selinux-testsuite refpolicy directory (cd to 
+$LTPROOT/testcases/kernel/security/selinux-testsuite/refpolicy)
 and build the policy by doing a, 
 	make load
 
@@ -88,7 +92,7 @@
 testcase directory of the testcase being debugged.	
 
 To remove the test policy and restore original policy,
-cd to selinux-testsuite/policy directory and execute,
+cd to selinux-testsuite/refpolicy directory and execute,
 	make cleanup
 
 Remember to remove test policy and restore original policy after

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_file.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_file.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_capable_file.te +1 -1
diff -u -r1.2 test_capable_file.te
@@ -35,7 +35,7 @@
 
 # Allow execution of helper programs.
 corecmd_exec_bin(capabledomain)
-corecmd_exec_sbin(capabledomain)
+corecmd_exec_bin(capabledomain)
 domain_exec_all_entry_files(capabledomain)
 files_exec_etc_files(capabledomain)
 libs_use_ld_so(capabledomain)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_capable_net.te +11 -11
diff -u -r1.2 test_capable_net.te
@@ -32,21 +32,21 @@
 corenet_tcp_bind_all_nodes(capabledomain)
 corenet_udp_bind_all_nodes(capabledomain)
 sysnet_read_config(capabledomain)
-optional_policy(`mount', `
-	mount_send_nfs_client_request(capabledomain)
-')
+#optional_policy(`mount', `
+#	mount_send_nfs_client_request(capabledomain)
+#')
 
 corenet_tcp_bind_reserved_port(capabledomain)
 
-# Allow sbin_t to be entered from admin via certain utils.
-corecmd_sbin_entry_type(capabledomain)
-userdom_sysadm_sbin_spec_domtrans_to(capabledomain)
+# Allow bin_t to be entered from admin via certain utils.
+corecmd_bin_entry_type(capabledomain)
+userdom_sysadm_bin_spec_domtrans_to(capabledomain)
 
-#TODO: Need ifconfig_exec_t to be an entrypoint in order for domain
-# transition to succeed. How to do this with refpolicy???
-#ifdef(`sysnetwork.te', `
-#	domain_trans(sysadm_t, ifconfig_exec_t, capabledomain)
-#')
+require {
+	type ifconfig_exec_t;
+}
+domain_trans(sysadm_t, ifconfig_exec_t, capabledomain)
+domain_entry_file(capabledomain, ifconfig_exec_t)
 
 # Permissions for the good domain
 allow test_ncap_t self:capability { dac_override net_admin net_raw };

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_file.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_file.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_file.te +3 -3
diff -u -r1.2 test_file.te
@@ -43,7 +43,7 @@
 
 # Allow execution of helper programs.
 corecmd_exec_bin(fileopdomain)
-corecmd_exec_sbin(fileopdomain)
+corecmd_exec_bin(fileopdomain)
 domain_exec_all_entry_files(fileopdomain)
 libs_use_ld_so(fileopdomain)
 libs_use_shared_libs(fileopdomain)
@@ -57,8 +57,8 @@
 corecmd_bin_entry_type(fileopdomain)
 userdom_sysadm_bin_spec_domtrans_to(fileopdomain)
 
-corecmd_sbin_entry_type(fileopdomain)
-userdom_sysadm_sbin_spec_domtrans_to(fileopdomain)
+corecmd_bin_entry_type(fileopdomain)
+userdom_sysadm_bin_spec_domtrans_to(fileopdomain)
 
 allow fileop_t fileop_exec_t:file entrypoint;
 domain_auto_trans(test_fileop_t, fileop_exec_t, fileop_t)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_global.te +20 -2
diff -u -r1.2 test_global.te
@@ -11,6 +11,12 @@
 role sysadm_r types testdomain;
 role system_r types testdomain;
 
+allow sysadm_t test_file_t:dir_file_class_set *;
+allow testdomain sysadm_t:fd use;
+allow testdomain sysadm_t:process sigchld;
+
+allow testdomain self:process setfscreate;
+
 # Allow the test domains to access the sysadm terminal.
 # This allows read and write sysadm ttys and ptys.
 userdom_use_sysadm_terms(testdomain)
@@ -27,7 +33,7 @@
 miscfiles_read_test_files(testdomain)
 
 # Let the test domains set their current, exec and fscreate contexts.
-#allow testdomain self:process setcurrent;
+allow testdomain self:process setcurrent;
 # domain_dyntrans_type(testdomain)
 selinux_get_fs_mount(testdomain)
 allow testdomain self:process setexec;
@@ -51,7 +57,19 @@
 files_list_home(testdomain)
 dev_read_rand(testdomain)
 files_list_pids(testdomain)
-allow testdomain { root_t etc_t bin_t sbin_t lib_t usr_t devpts_t }:dir r_dir_perms;
+require {
+	type root_t;
+	type etc_t;
+	type bin_t;
+	type bin_t;
+	type lib_t;
+	type usr_t;
+	type devpts_t;
+	type devtty_t;
+	type null_device_t;
+	type zero_device_t;
+}
+allow testdomain { root_t etc_t bin_t bin_t lib_t usr_t devpts_t }:dir r_dir_perms;
 allow testdomain lib_t:{ file lnk_file } r_file_perms;
 allow testdomain etc_t:file r_file_perms;
 allow testdomain { devtty_t null_device_t zero_device_t }:chr_file rw_file_perms;

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_ioctl.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_ioctl.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_ioctl.te +1 -1
diff -u -r1.2 test_ioctl.te
@@ -23,7 +23,7 @@
 
 # Allow execution of helper programs.
 corecmd_exec_bin(ioctldomain)
-corecmd_exec_sbin(ioctldomain)
+corecmd_exec_bin(ioctldomain)
 domain_exec_all_entry_files(ioctldomain)
 files_exec_etc_files(ioctldomain)
 libs_use_ld_so(ioctldomain)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te,v retrieving revision 1.1

kernel/security/selinux-testsuite/refpolicy/test_readlink.te +5 -1
diff -u -r1.1 test_readlink.te
@@ -29,4 +29,8 @@
 
 # TODO: Needs to be translated into refpolicy... how?
 # Allow all of these domains to be entered from sysadm domain
-#domain_trans(sysadm_t, ls_exec_t, test_readlink_domain)
+require {
+	type ls_exec_t;
+}
+domain_trans(sysadm_t, ls_exec_t, test_readlink_domain)
+domain_entry_file(test_readlink_domain, ls_exec_t)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te,v retrieving revision 1.1

kernel/security/selinux-testsuite/refpolicy/test_rxdir.te +5 -1
diff -u -r1.1 test_rxdir.te
@@ -27,4 +27,8 @@
 
 # TODO: How to translate this into refpolicy????
 # Allow all of these domains to be entered from sysadm domain
-#domain_trans(sysadm_t, ls_exec_t, test_rxdir_domain)
+require {
+	type ls_exec_t;
+}
+domain_entry_file(test_rxdir_domain, ls_exec_t)
+domain_trans(sysadm_t, ls_exec_t, test_rxdir_domain)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_setnice.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_setnice.te,v retrieving revision 1.1

kernel/security/selinux-testsuite/refpolicy/test_setnice.te +1 -1
diff -u -r1.1 test_setnice.te
@@ -25,7 +25,7 @@
 
 # Allow execution of helper programs.
 corecmd_exec_bin(setnicedomain)
-corecmd_exec_sbin(setnicedomain)
+corecmd_exec_bin(setnicedomain)
 domain_exec_all_entry_files(setnicedomain)
 files_exec_etc_files(setnicedomain)
 libs_use_ld_so(setnicedomain)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te,v retrieving revision 1.1

kernel/security/selinux-testsuite/refpolicy/test_stat.te +5 -1
diff -u -r1.1 test_stat.te
@@ -24,4 +24,8 @@
 
 # TODO: what is a replacement for this in refpolicy???
 # Allow all of these domains to be entered from sysadm domain
-#domain_trans(sysadm_t, ls_exec_t, test_stat_domain)
+require {
+	type ls_exec_t;
+}
+domain_trans(sysadm_t, ls_exec_t, test_stat_domain)
+domain_entry_file(test_stat_domain, ls_exec_t)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_sysctl.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_sysctl.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_sysctl.te +3 -3
diff -u -r1.2 test_sysctl.te
@@ -18,9 +18,9 @@
 typeattribute test_nosysctl_t testdomain;
 
 # Allow all of these domains to be entered from sysadm domain
-# via /sbin/sysctl.
-corecmd_sbin_entry_type(sysctldomain)
-userdom_sysadm_sbin_spec_domtrans_to(sysctldomain)
+# via /bin/sysctl.
+corecmd_bin_entry_type(sysctldomain)
+userdom_sysadm_bin_spec_domtrans_to(sysctldomain)
 
 # Allow the first domain to perform sysctl operations.
 kernel_rw_all_sysctls(test_sysctl_t)

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_task_create.te +2 -2
diff -u -r1.2 test_task_create.te
@@ -22,7 +22,7 @@
 # process_fork. Something needs to be done such that test_create_no_t
 # does not have fork permissions, but all the other necessary
 # "domain" permissions.
-#allow test_create_no_t self:process ~fork;
+allow test_create_no_t self:process ~fork;
 allow test_create_no_t proc_t:dir r_dir_perms;
 allow test_create_no_t proc_t:lnk_file read;
 allow test_create_no_t self:dir r_dir_perms;
@@ -34,7 +34,7 @@
 allow test_create_no_t self:process setexec;
 selinux_get_fs_mount(test_create_no_t)
 
-allow test_create_no_t { root_t bin_t sbin_t lib_t locale_t usr_t devpts_t home_root_t }:dir r_dir_perms;
+allow test_create_no_t { root_t bin_t bin_t lib_t locale_t usr_t devpts_t home_root_t }:dir r_dir_perms;
 allow test_create_no_t lib_t:lnk_file r_file_perms;
 allow test_create_no_t { devtty_t null_device_t zero_device_t }:chr_file rw_file_perms;
 allow test_create_no_t locale_t:dir r_dir_perms;

Index: testcases/kernel/security/selinux-testsuite/refpolicy/test_task_setpgid.te
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_setpgid.te,v retrieving revision 1.2

kernel/security/selinux-testsuite/refpolicy/test_task_setpgid.te +1 -1
diff -u -r1.2 test_task_setpgid.te
@@ -28,7 +28,7 @@
 allow test_setpgid_no_t self:process setexec;
 selinux_get_fs_mount(test_setpgid_no_t)
 
-allow test_setpgid_no_t { root_t bin_t sbin_t lib_t locale_t usr_t devpts_t home_root_t }:dir r_dir_perms;
+allow test_setpgid_no_t { root_t bin_t bin_t lib_t locale_t usr_t devpts_t home_root_t }:dir r_dir_perms;
 allow test_setpgid_no_t lib_t:lnk_file r_file_perms;
 allow test_setpgid_no_t { devtty_t null_device_t zero_device_t }:chr_file rw_file_perms;
 allow test_setpgid_no_t locale_t:dir r_dir_perms;
#20 lore raw
In reply to Subrata Modak

My apologies for the delay in responding.
I would like to consult with a colleague
about status of the selinux testcases in LTP,
but he is out for rest of year.

Is it ok if I get back to you with a conclusion at the beginning of the new year?

regards,
Joy

Quoted 135 lines · Subrata Modak
Quoted 79 lines · Serge E. Hallyn
Quoted 69 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the

Quoted 8 lines

author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Quoted 1 line

Reasonable. And it looks like the prod was needed.

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

Regards--
Subrata

Quoted 37 lines
Quoted 28 lines

Now i myself has never executed these test case, so not aware of them much. But that should not prevent me from requesting updates of the same. I would be extremely happy even if we can reach the final updates through some pointer-to-pointer and that will serve my purpose of having all updates in LTP.

Just to cite an example, i recently found out that there are updates being made to pounder21 test suite(present inside LTP), by somebody for his/her internal project use. Now, the same has never been updated in LTP for quite long time. I immediately mailed to him requesting him for updates. Now my purpose will be served if i get updates from him, let alone it comes to me after long time is not the question.

Quoted 14 lines

Anyway I think there is value to having the selinux testsuite. Though one problem with having it in LTP is that most LTP runs are done on machines which are not set up right for selinux. I personally haven't had enough potential target machines to be able to run the tests regularly. So I don't even know whether anyone has run ltp/testcases/kernel/security/selinux-testsuite/ in the last year. Joy might know though.

So given that I personally don't know who to pin down, and given that I don't have time to maintain the testsuite by myself, if I could get two or three other people to volunteer to help out, I wouldn't mind being part of a group responsible for the maintenance.

Quoted 8 lines
Quoted 6 lines

For starters, I finally have a fedora 8 vm set up which once I'm done with another test i can use to try out the existing testsuite. Hopefully that'll be later this week (no guarantees). I'll report on the results.

-serge

Thanks Serge. Will wait for your results.

Quoted 7 lines

thanks,
-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

Quoted 4 lines

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#10 lore raw
In reply to Stephen Smalley
Quoted 81 lines · Stephen Smalley
Quoted 80 lines · Subrata Modak
Quoted 79 lines · Serge E. Hallyn
Quoted 77 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Reasonable. And it looks like the prod was needed.

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

Patch attached.

Thanks. Thatś going to help a lot.

--Subrata

Quoted 1 line

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#8 lore raw
In reply to Serge E. Hallyn
Quoted 83 lines · Serge E. Hallyn
Quoted 82 lines · Subrata Modak
Quoted 80 lines · Serge E. Hallyn
Quoted 69 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the

Quoted 8 lines

author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Reasonable. And it looks like the prod was needed.

Quoted 8 lines
Quoted 3 lines

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

No. I thought I'd made it clear that I was going to try running them under FC8 later this week or early next and report back. No one has any updates at the moment. (which is why the prod was needed :)

Please apply Stephenś Patch and then share your test results.

--Subrata

Quoted 1 line

-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#21 lore raw
In reply to Joy Latten
Quoted 7 lines · Joy Latten

My apologies for the delay in responding.
I would like to consult with a colleague
about status of the selinux testcases in LTP,
but he is out for rest of year.

Is it ok if I get back to you with a conclusion at the beginning of the new year?

Thatś OK. Now Stephen has already given the Patch. Now i know that i need to turn to you/Stephen for any updates on se-linux. Please do update us for anything and everything.

--Subrata

Quoted 145 lines

regards,
Joy

Quoted 139 lines · Subrata Modak
Quoted 79 lines · Serge E. Hallyn
Quoted 69 lines · Subrata Modak
Quoted 18 lines · Serge E. Hallyn
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Subrata Modak
Quoted 14 lines · Subrata Modak

Hi All,

Today i had the opportunity to meet James Morris from Red Hat at FOSS.in held at Bangalore, India. After his talks on Se-Linux, we were discussing about the Policy Reference support for Se-linux available in LTP under the directory:
ltp/testcases/kernel/security/selinux-testsuite/

Though i have released RHEL5 EAL4+ Certification Testsuites from IBM, i have not seen the testcases under:
ltp/testcases/kernel/security/selinux-testsuite/
updated for more than an year. I am not aware exactly about the reason for the same. I would like to request you send me any updates that you may want to give to LTP for your selinux-testsuite.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Can somebody give me some direction on this ??

What kind of direction are you seeking?

We gave the selinux testsuite to IBM at their request, and they ported it over to the LTP and submitted it there. Joy Latten was involved in the porting; I've cc'd her above.

Well i have not received any selinux testcases updates for reference policy for the last 3 quarters. What i have received and released is EAL4+ Certification Test Suite, which includes rhel5_ibm_eal4_cert_suite2.tgz. I drilled down in to this and tried to find whether there are any se-linux testcases included here, which are apparently present in ltp/testcases/kernel/security/selinux-testsuite/ directory of ltp-full-20073011.tgz (can be downloaded from
http://prdownloads.sourceforge.net/ltp/ltp-full-20071130.tgz?download).
I did not find either of them. They seemed different to me.

Quoted 12 lines

So the question is who should update the testsuite. This is not just an issue for selinux, but for all the ltp tests.

One could say it's Joy because she submitted the testcases. But let me warn you that that attitude will definitely decrease the likelyhood of testcases being submitted to LTP. (It'll certainly deter me)

One could say it should be the selinux community in general, but that community is too large for such an answer to be helpful, and it may not be fair since they can say "we didn't submit that."

Quoted 7 lines

One could say it should be the reference policy maintainer, because I suspect refpolicy updates will be the biggest cause of breakage - but that isn't fair to him since again he didn't submit it.

One might say it should be the ltp community - after the biggest advantage of submitting to LTP should be some free maintenance. However it likely doesn't have the needed expertise.

Ok. This is i would say as a collective responsibility rather than somebody?? alone. It is the responsibility of the maintainer (here LTP and hence myself) to find out the validity of test cases in his/her project he/she is maintaining, and, then try to contact the author(s) of that particular test case component to provide updates if even he/she (Author(s)) has the updates themselves. Now it is upto their (Author(s)) interest to write back if they are interested. Else the Maintainer is helpless.
I initiated this mail as i found it my responsibility to find out authors who actually wrote these reference policy test cases for se-linux, and which are part of LTP in ltp/testcases/kernel/security/selinux-testsuite/ directory. Now if the

Quoted 8 lines

author(s) respond, then i would work hard to integrate the same. After interaction with James Morris at FOSS.in, Bangalore, India, i came to know that he is also working on se-linux and he mentioned about the presence of reference policy support in LTP. I pointed him the release that i made this year (EAL4+ Certification Test Suite) and also requested him whether he can update me on the se-linux reference policy test cases of se-linux available inside Main LTP, he pointed me to write to se-linux test suite mailing list. Hence this mail.

Quoted 1 line

Reasonable. And it looks like the prod was needed.

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

Regards--
Subrata

Quoted 37 lines
Quoted 28 lines

Now i myself has never executed these test case, so not aware of them much. But that should not prevent me from requesting updates of the same. I would be extremely happy even if we can reach the final updates through some pointer-to-pointer and that will serve my purpose of having all updates in LTP.

Just to cite an example, i recently found out that there are updates being made to pounder21 test suite(present inside LTP), by somebody for his/her internal project use. Now, the same has never been updated in LTP for quite long time. I immediately mailed to him requesting him for updates. Now my purpose will be served if i get updates from him, let alone it comes to me after long time is not the question.

Quoted 14 lines

Anyway I think there is value to having the selinux testsuite. Though one problem with having it in LTP is that most LTP runs are done on machines which are not set up right for selinux. I personally haven't had enough potential target machines to be able to run the tests regularly. So I don't even know whether anyone has run ltp/testcases/kernel/security/selinux-testsuite/ in the last year. Joy might know though.

So given that I personally don't know who to pin down, and given that I don't have time to maintain the testsuite by myself, if I could get two or three other people to volunteer to help out, I wouldn't mind being part of a group responsible for the maintenance.

Quoted 8 lines
Quoted 6 lines

For starters, I finally have a fedora 8 vm set up which once I'm done with another test i can use to try out the existing testsuite. Hopefully that'll be later this week (no guarantees). I'll report on the results.

-serge

Thanks Serge. Will wait for your results.

Quoted 7 lines

thanks,
-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#11 lore raw
In reply to Subrata Modak
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

So, can somebody now give me some updates for testcases in this Directory::
http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/security/selinux-testsuite/,

Patch attached.

Thanks. Thatś going to help a lot.

Well and Applied too. Thanks a ton.

--Subrata

Quoted 5 lines

--Subrata

Quoted 1 line
Quoted 10 lines

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#13 lore raw
In reply to a message not in the archive
Quoted 3 lines · Jeff Burke

Stephen, Joy, Dan and James
Using Stephens latest patch. Here are the results for the selinux tests
ltp-full-20071130, RHEL5.1 + selinux-policy-2.4.6-106.el5_1.3:

Hi Jeff,

I'll take a look. The patch worked for me on Fedora 7. Don't know for certain how that differs from RHEL5.1 in terms of SELinux functionality and base policy, but the testsuite is rather sensitive to changes I'm afraid.

Quoted 89 lines

I have also attached the selinux.outfile for both the i386 and x86_64 testing

i386, x86_64, ppc, s390x All fail in a similar manor.
------------------------------------------------------------------------
Test Start Time: Thu Dec 13 17:55:32 2007
-----------------------------------------

Testcase                       Result     Exit Value
--------                       ------     ----------
SELinux01                      PASS       0
SELinux02                      FAIL       1
SELinux03                      PASS       0
SELinux04                      PASS       0
SELinux05                      PASS       0
SELinux06                      PASS       0
SELinux07                      PASS       0
SELinux08                      PASS       0
SELinux09                      PASS       0
SELinux10                      FAIL       2
SELinux11                      PASS       0
SELinux12                      PASS       0
SELinux13                      PASS       0
SELinux14                      PASS       0
SELinux15                      PASS       0
SELinux16                      PASS       0
SELinux17                      PASS       0
SELinux18                      PASS       0
SELinux19                      PASS       0
SELinux20                      PASS       0
SELinux21                      PASS       0
SELinux22                      PASS       0
SELinux23                      PASS       0
SELinux24                      PASS       0
SELinux25                      PASS       0
SELinux26                      PASS       0
SELinux27                      PASS       0
SELinux28                      FAIL       1
SELinux29                      FAIL       1
SELinux30                      PASS       0
SELinux31                      PASS       0
SELinux32                      PASS       0
SELinux33                      PASS       0
SELinux34                      PASS       0
SELinux35                      PASS       0
SELinux36                      PASS       0
SELinux37                      PASS       0
SELinux38                      PASS       0

-----------------------------------------------
Total Tests: 38
Total Failures: 4
Kernel Version: 2.6.18-53.el5
Machine Architecture: x86_64
------------------------------------------------------------------------

ia64 does not compile:
------------------------------------------------------------------------
make -C ltp-full-*/testcases/kernel/security/selinux-testsuite/tests
make[1]: Entering directory /mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests' make[2]: Entering directory /mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/domain_trans' make[2]: Nothing to be done for `all'.
make[2]: Leaving directory /mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/domain_trans' make[2]: Entering directory /mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/entrypoint' make[2]: Nothing to be done for `all'.
make[2]: Leaving directory /mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/entrypoint' make[2]: Entering directory /mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/execshare'
cc selinux_execshare_child.c -lselinux -o selinux_execshare_child
cc selinux_execshare_parent.c -lselinux -o selinux_execshare_parent
selinux_execshare_parent.c: In function ‘main’:
selinux_execshare_parent.c:80: warning: passing argument 1 of ‘clone’
from incompatible pointer type
/tmp/ccOYLyhB.o: In function `main':
selinux_execshare_parent.c:(.text+0x6f2): undefined reference to `clone'
collect2: ld returned 1 exit status
make[2]: *** [selinux_execshare_parent] Error 1
make[2]: Leaving directory `/mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/execshare' make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/tests/kernel/security/selinux/ltp-selinux/20071130/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests'
make: *** [bldselinux] Error 2
------------------------------------------------------------------------

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#16 lore raw
In reply to a message not in the archive
Quoted 10 lines · George Kraft
Quoted 6 lines · Jeff Burke

-----------------------------------------------
Total Tests: 38
Total Failures: 8
Kernel Version: 2.6.18-53.el5
Machine Architecture: i686
--------------------------------------------------------

Regarding the 8 selinux failures, are the problems with the OS, or the test cases?

It is test policy dependencies on the base policy being broken by changes in the base policy.

As my patch yielded less failures, I'm looking at it further.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#17 lore raw
In reply to a message not in the archive
Quoted 3 lines · Jeff Burke

Stephen, Joy, Dan and James
Using Stephens latest patch. Here are the results for the selinux tests
ltp-full-20071130, RHEL5.1 + selinux-policy-2.4.6-106.el5_1.3:

Reverting the prior patches and applying this one instead, I am able to run all of the test cases successfully on RHEL5.1 with that policy version.

I never did get a failure on SELinux10 though even with the old patch. Looking at your log file, it suggests that you were running the tests without a controlling tty? That will break that particular test at least (sendsigio_task).

As for the build failure on execshare_parent, I don't know how to fix that on ia64 - is there a portable way to write a call to clone(2) that will work there? I don't have ia64 hardware readily available to me.

Signature · 2 lines
Stephen Smalley
National Security Agency

---

 testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te |   21 ++++++----
 testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te      |   14 ++++++
 testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te    |    6 ++
 testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te       |    6 ++
 testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te        |    6 ++
 testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te |   15 +++----
 6 files changed, 49 insertions(+), 19 deletions(-)
testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te +13 -8
diff -ru ltp-full-20071130.orig/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te ltp-full-20071130/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te
@@ -32,21 +32,26 @@
 corenet_tcp_bind_all_nodes(capabledomain)
 corenet_udp_bind_all_nodes(capabledomain)
 sysnet_read_config(capabledomain)
-optional_policy(`mount', `
-	mount_send_nfs_client_request(capabledomain)
-')
+#optional_policy(`mount', `
+#	mount_send_nfs_client_request(capabledomain)
+#')
 
 corenet_tcp_bind_reserved_port(capabledomain)
 
+require {
+	type hi_reserved_port_t;
+}
+allow capabledomain hi_reserved_port_t:tcp_socket name_bind;
+
 # Allow sbin_t to be entered from admin via certain utils.
 corecmd_sbin_entry_type(capabledomain)
 userdom_sysadm_sbin_spec_domtrans_to(capabledomain)
 
-#TODO: Need ifconfig_exec_t to be an entrypoint in order for domain
-# transition to succeed. How to do this with refpolicy???
-#ifdef(`sysnetwork.te', `
-#	domain_trans(sysadm_t, ifconfig_exec_t, capabledomain)
-#')
+require {
+	type ifconfig_exec_t;
+}
+domain_trans(sysadm_t, ifconfig_exec_t, capabledomain)
+domain_entry_file(capabledomain, ifconfig_exec_t)
 
 # Permissions for the good domain
 allow test_ncap_t self:capability { dac_override net_admin net_raw };
testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te +13 -1
diff -ru ltp-full-20071130.orig/testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te ltp-full-20071130/testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te
@@ -27,7 +27,7 @@
 miscfiles_read_test_files(testdomain)
 
 # Let the test domains set their current, exec and fscreate contexts.
-#allow testdomain self:process setcurrent;
+allow testdomain self:process setcurrent;
 # domain_dyntrans_type(testdomain)
 selinux_get_fs_mount(testdomain)
 allow testdomain self:process setexec;
@@ -51,6 +51,18 @@
 files_list_home(testdomain)
 dev_read_rand(testdomain)
 files_list_pids(testdomain)
+require {
+	type root_t;
+	type etc_t;
+	type bin_t;
+	type sbin_t;
+	type lib_t;
+	type usr_t;
+	type devpts_t;
+	type devtty_t;
+	type null_device_t;
+	type zero_device_t;
+}
 allow testdomain { root_t etc_t bin_t sbin_t lib_t usr_t devpts_t }:dir r_dir_perms;
 allow testdomain lib_t:{ file lnk_file } r_file_perms;
 allow testdomain etc_t:file r_file_perms;
testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te +5 -1
diff -ru ltp-full-20071130.orig/testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te ltp-full-20071130/testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te
@@ -29,4 +29,8 @@
 
 # TODO: Needs to be translated into refpolicy... how?
 # Allow all of these domains to be entered from sysadm domain
-#domain_trans(sysadm_t, ls_exec_t, test_readlink_domain)
+require {
+	type ls_exec_t;
+}
+domain_trans(sysadm_t, ls_exec_t, test_readlink_domain)
+domain_entry_file(test_readlink_domain, ls_exec_t)
testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te +5 -1
diff -ru ltp-full-20071130.orig/testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te ltp-full-20071130/testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te
@@ -27,4 +27,8 @@
 
 # TODO: How to translate this into refpolicy????
 # Allow all of these domains to be entered from sysadm domain
-#domain_trans(sysadm_t, ls_exec_t, test_rxdir_domain)
+require {
+	type ls_exec_t;
+}
+domain_entry_file(test_rxdir_domain, ls_exec_t)
+domain_trans(sysadm_t, ls_exec_t, test_rxdir_domain)
testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te +5 -1
diff -ru ltp-full-20071130.orig/testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te ltp-full-20071130/testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te
@@ -24,4 +24,8 @@
 
 # TODO: what is a replacement for this in refpolicy???
 # Allow all of these domains to be entered from sysadm domain
-#domain_trans(sysadm_t, ls_exec_t, test_stat_domain)
+require {
+	type ls_exec_t;
+}
+domain_trans(sysadm_t, ls_exec_t, test_stat_domain)
+domain_entry_file(test_stat_domain, ls_exec_t)
testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te +8 -7
diff -ru ltp-full-20071130.orig/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te ltp-full-20071130/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te
@@ -14,15 +14,16 @@
 # Domain for process not allowed to fork.
 # The same permissions as test_create_yes_t, except process fork
 type test_create_no_t;
-domain_type(test_create_no_t)
-typeattribute test_create_no_t test_create_d;
 
-# TODO
 # In refpolicy, all types with "domain" attribute are allowed
-# process_fork. Something needs to be done such that test_create_no_t
-# does not have fork permissions, but all the other necessary
-# "domain" permissions.
-#allow test_create_no_t self:process ~fork;
+# process_fork. Thus, to prevent test_create_no_t from picking up this
+# permission so we can test it, we omit the domain attribute. 
+# Ideally, refpolicy would _not_ grant such permissions to every domain,
+# as it makes the permission effectively unusable in real policy.
+#domain_type(test_create_no_t)
+typeattribute test_create_no_t test_create_d;
+
+allow test_create_no_t self:process ~fork;
 allow test_create_no_t proc_t:dir r_dir_perms;
 allow test_create_no_t proc_t:lnk_file read;
 allow test_create_no_t self:dir r_dir_perms;
#18 lore raw
Quoted 9 lines · Stephen Smalley
Quoted 3 lines · Jeff Burke

Stephen, Joy, Dan and James
Using Stephens latest patch. Here are the results for the selinux tests
ltp-full-20071130, RHEL5.1 + selinux-policy-2.4.6-106.el5_1.3:

Reverting the prior patches and applying this one instead, I am able to run all of the test cases successfully on RHEL5.1 with that policy version.

Quoted 8 lines

I never did get a failure on SELinux10 though even with the old patch. Looking at your log file, it suggests that you were running the tests without a controlling tty? That will break that particular test at least (sendsigio_task).

As for the build failure on execshare_parent, I don't know how to fix that on ia64 - is there a portable way to write a call to clone(2) that will work there? I don't have ia64 hardware readily available to me.

Ah, from the clone(2) man page, I see that one is supposed to use clone2() instead on IA-64. But someone else will have to do that and test it - I don't have an ia64 machine at my disposal.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#19 lore raw
Quoted 19 lines · Stephen Smalley
Quoted 9 lines · Stephen Smalley
Quoted 3 lines · Jeff Burke

Stephen, Joy, Dan and James
Using Stephens latest patch. Here are the results for the selinux tests
ltp-full-20071130, RHEL5.1 + selinux-policy-2.4.6-106.el5_1.3:

Reverting the prior patches and applying this one instead, I am able to run all of the test cases successfully on RHEL5.1 with that policy version.

Quoted 8 lines

I never did get a failure on SELinux10 though even with the old patch. Looking at your log file, it suggests that you were running the tests without a controlling tty? That will break that particular test at least (sendsigio_task).

As for the build failure on execshare_parent, I don't know how to fix that on ia64 - is there a portable way to write a call to clone(2) that will work there? I don't have ia64 hardware readily available to me.

Quoted 5 lines

Ah, from the clone(2) man page, I see that one is supposed to use clone2() instead on IA-64. But someone else will have to do that and test it - I don't have an ia64 machine at my disposal.

From the example of other code in the ltp, it looks like the following

patch should work for ia-64. This patch for the execshare test program is in addition to the prior policy patch.

Signature · 2 lines
Stephen Smalley
National Security Agency

Index: testcases/kernel/security/selinux-testsuite/tests/execshare/selinux_execshare_parent.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/tests/execshare/selinux_execshare_parent.c,v retrieving revision 1.1

kernel/security/selinux-testsuite/tests/execshare/selinux_execshare_parent.c +16 -4
diff -u -r1.1 selinux_execshare_parent.c
@@ -26,11 +26,10 @@
 	return -1;
 }
 
-static long clone_stack_data[2048];
-static long *clone_stack = &clone_stack_data[2048];
-
 int main(int argc, char **argv)
 {
+	int pagesize;
+	void *clone_stack, *page;
 	int pid, rc, len, status, cloneflags;
 	security_context_t context_s;
 	context_t context;
@@ -46,6 +45,14 @@
 		exit(-1);
 	}
 
+	pagesize = getpagesize();
+	page = malloc(pagesize);
+	if (!page) {
+		perror("malloc");
+		exit(-1);
+	}
+	clone_stack = page + pagesize;
+
 	rc = getcon(&context_s);
 	if (rc < 0) {
 		fprintf(stderr, "%s:  unable to get my context\n", argv[0]);
@@ -76,8 +83,13 @@
 		fprintf(stderr, "%s:  unable to set exec context to %s\n", argv[0], context_s);
 		exit(-1);
 	}
-
+#if defined(__hppa__)
+	pid = clone(clone_fn, page, cloneflags | SIGCHLD, argv);
+#elif defined(__ia64__)
+	pid = clone2(clone_fn, clone_stack, pagesize, cloneflags | SIGCHLD, argv, NULL, NULL, NULL);
+#else
 	pid = clone(clone_fn, clone_stack, cloneflags | SIGCHLD, argv);
+#endif
 	if (pid < 0) {
 		perror("clone");
 		exit(-1);