Fix the Reference Policy integration with the SELinux testsuite
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
The SELinux testsuite expects the Makefile.devel file to be installed in the top level share directory and not in its include subdirectory.
Such file is installed by the Makefile target "install-headers".
--- Makefile | 2 ++ 1 file changed, 2 insertions(+)
Makefile +2 -0
@@ -70,6 +70,7 @@ SECHECK ?= $(BINDIR)/sechecker AWK ?= gawk GREP ?= egrep INSTALL ?= install +LN ?= ln M4 ?= m4 PYTHON ?= python SED ?= sed
@@ -532,6 +533,7 @@ endif $(verbose) echo "override MLS_CATS := $(MLS_CATS)" >> $(headerdir)/build.conf $(verbose) echo "override MCS_CATS := $(MCS_CATS)" >> $(headerdir)/build.conf $(verbose) $(INSTALL) -m 644 $(support)/Makefile.devel $(headerdir)/Makefile + $(verbose) $(LN) -sf $(headerdir)/Makefile $(modpkgdir)/Makefile ######################################## #
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Quoted 21 lines · Guido Trentalancia via refpolicy
The SELinux testsuite expects the Makefile.devel file to be installed in the top level share directory and not in its include subdirectory.
Such file is installed by the
Makefiletarget "install-headers".Signed-off-by Guido Trentalancia <[email protected]>--- Makefile | 2 ++ 1 file changed, 2 insertions(+)Makefile +1
-0@@ -70,6 +70,7 @@ SECHECK ?= $(BINDIR)/sechecker AWK ?= gawk GREP ?= egrep INSTALL ?= install +LN ?= ln M4 ?= m4 PYTHON ?= python SED ?= sed
Makefile endif · line 536
Quoted 4 lines
Makefile +1
-0@@ -532,6 +533,7 @@ endif $(verbose) echo "override MLS_CATS := $(MLS_CATS)" >> $(headerdir)/build.conf $(verbose) echo "override MCS_CATS := $(MCS_CATS)" >> $(headerdir)/build.conf $(verbose) $(INSTALL) -m 644 $(support)/Makefile.devel $(headerdir)/Makefile + $(verbose) $(LN) -sf $(headerdir)/Makefile $(modpkgdir)/Makefile
I think instead we should update the header install structure to be in line with what the distributions have done for years, i.e. install into /usr/share/selinux/devel.
Signature · 1 line
Chris PeBenito
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Hello Christopher!
Thanks for getting back.
We can change the destination directory from <policy_name> to "devel", keep the Makefile in the "include" subdirectory (they also have such subdirectory) and create a symbolic link to it in the parent directory (i.e. "devel").
As far as I remember, the SELinux testsuite only sources some variables from the Makefile, it doesn't run it through make.
On the other end, removing it from the "include" subdirectory at the moment, might break something, I suppose.
Should I create a patch or what?
Regards,
Guido
Quoted 36 lines · Chris PeBenito
Quoted 11 lines · Guido Trentalancia via refpolicy
The SELinux testsuite expects the Makefile.devel file to be installed in the top level share directory and not in its include subdirectory.
Such file is installed by the
Makefiletarget "install-headers".Signed-off-by Guido Trentalancia <[email protected]>--- Makefile | 2 ++ 1 file changed, 2 insertions(+)--- refpolicy-git-06082016-orig/Makefile 2016-08-06
21:26:43.257773849 +0200
Quoted 1 line
+++ refpolicy-git-06082016/Makefile 2016-08-24 15:33:34.936218176
+0200
Makefile endif · line 533
Quoted 10 lines
Makefile +1
-0@@ -70,6 +70,7 @@ SECHECK ?= $(BINDIR)/sechecker AWK ?= gawk GREP ?= egrep INSTALL ?= install +LN ?= ln M4 ?= m4 PYTHON ?= python SED ?= sed@@ -532,6 +533,7 @@ endif $(verbose) echo "override MLS_CATS := $(MLS_CATS)" >>$(headerdir)/build.conf
Review endif · line 534
Quoted 1 line
(quoted diff) +0
-0$(verbose) echo "override MCS_CATS := $(MCS_CATS)" >>$(headerdir)/build.conf
Review endif · line 535
Quoted 1 line
(quoted diff) +0
-0$(verbose) $(INSTALL) -m 644 $(support)/Makefile.devel$(headerdir)/Makefile
Makefile endif · line 536
Quoted 1 line
Makefile +1
-0+ $(verbose) $(LN) -sf $(headerdir)/Makefile $(modpkgdir)/MakefileI think instead we should update the header install structure to be in line with what the distributions have done for years, i.e. install into
/usr/share/selinux/devel.
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Quoted 9 lines · Guido Trentalancia
Hello Christopher!
Thanks for getting back.
We can change the destination directory from <
policy_name> to "devel", keep theMakefilein the "include" subdirectory (they also have such subdirectory) and create a symbolic link to it in the parent directory (i.e. "devel").As far as I remember, the SELinux testsuite only sources some variables from the
Makefile, it doesn't run it through make.On the other end, removing it from the "include" subdirectory at the moment, might break something, I suppose.
That's were we could have a symlink for backwards compatibility.
Quoted 1 line
Should I create a patch or what?
I've never heard anyone have problems with this before, so I assume everyone that runs the testsuite, run it on a Fedora system. I'm fine leaving things alone.
Quoted 43 lines
Regards,
Guido
Quoted 36 lines · Chris PeBenito
Quoted 11 lines · Guido Trentalancia via refpolicy
The SELinux testsuite expects the Makefile.devel file to be installed in the top level share directory and not in its include subdirectory.
Such file is installed by the
Makefiletarget "install-headers".Signed-off-by Guido Trentalancia <[email protected]>--- Makefile | 2 ++ 1 file changed, 2 insertions(+)--- refpolicy-git-06082016-orig/Makefile 2016-08-06
21:26:43.257773849 +0200
Quoted 1 line
+++ refpolicy-git-06082016/Makefile 2016-08-24 15:33:34.936218176
+0200
Makefile endif · line 533
Quoted 10 lines
Makefile +1
-0@@ -70,6 +70,7 @@ SECHECK ?= $(BINDIR)/sechecker AWK ?= gawk GREP ?= egrep INSTALL ?= install +LN ?= ln M4 ?= m4 PYTHON ?= python SED ?= sed@@ -532,6 +533,7 @@ endif $(verbose) echo "override MLS_CATS := $(MLS_CATS)" >>$(headerdir)/build.conf
Review endif · line 534
Quoted 1 line
(quoted diff) +0
-0$(verbose) echo "override MCS_CATS := $(MCS_CATS)" >>$(headerdir)/build.conf
Review endif · line 535
Quoted 1 line
(quoted diff) +0
-0$(verbose) $(INSTALL) -m 644 $(support)/Makefile.devel$(headerdir)/Makefile
Makefile endif · line 536
Quoted 1 line
Makefile +1
-0+ $(verbose) $(LN) -sf $(headerdir)/Makefile $(modpkgdir)/MakefileI think instead we should update the header install structure to be in line with what the distributions have done for years, i.e. install into
/usr/share/selinux/devel.
Signature · 1 line
Chris PeBenito
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Quoted 11 lines · Chris PeBenito via refpolicy
Quoted 9 lines · Guido Trentalancia
Hello Christopher!
Thanks for getting back.
We can change the destination directory from <
policy_name> to "devel", keep theMakefilein the "include" subdirectory (they also have such subdirectory) and create a symbolic link to it in the parent directory (i.e. "devel").As far as I remember, the SELinux testsuite only sources some variables from the
Makefile, it doesn't run it through make.On the other end, removing it from the "include" subdirectory at the moment, might break something, I suppose.
Quoted 7 lines
That's were we could have a symlink for backwards compatibility.
Quoted 1 line
Should I create a patch or what?
I've never heard anyone have problems with this before, so I assume everyone that runs the testsuite, run it on a Fedora system. I'm fine leaving things alone.
FWIW, I run the selinux-testsuite weekly (at a minimum) and I do it on a Fedora Rawhide system using the current Rawhide SELinux policy.
Signature · 2 lines
paul moore www.paul-moore.com
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Hello Paul.
As it is, the testsuite only runs on Fedora out of the box.
That's why I proposed the Makefile patch that allows to run it more easily on other systems by just passing an appropriate POLDEV variable to make...
However Christopher decided not to pursue the change because he says that people only run the testsuite on Fedora (I am not one of them).
What about the patch for the AF_ALG sockets? And what about the one for providing more meaningful conflicting type rules errors from libsepol? Have you had any time to look at them? They are very simple, yet very useful I suppose...
Best regards,
Guido
Quoted 29 lines · Paul Moore
Quoted 6 lines · Chris PeBenito via refpolicy
Quoted 5 lines · Guido Trentalancia
Hello Christopher!
Thanks for getting back.
We can change the destination directory from <
policy_name> to"devel", keep the
Makefilein the "include" subdirectory (they also have such subdirectory) and create a symbolic link to it in the parent directory (i.e. "devel").Quoted 2 lines
Quoted 2 lines
As far as I remember, the SELinux testsuite only sources some
variables from the
Makefile, it doesn't run it through make.Quoted 2 lines
Quoted 2 lines
On the other end, removing it from the "include" subdirectory at the
moment, might break something, I suppose.
Quoted 7 lines
That's were we could have a symlink for backwards compatibility.
Quoted 1 line
Should I create a patch or what?
I've never heard anyone have problems with this before, so I assume everyone that runs the testsuite, run it on a Fedora system. I'm
fine
Quoted 1 line
leaving things alone.
FWIW, I run the selinux-testsuite weekly (at a minimum) and I do it on a Fedora Rawhide system using the current Rawhide SELinux policy.
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Quoted 7 lines · Guido Trentalancia
Hello Paul.
As it is, the testsuite only runs on Fedora out of the box.
That's why I proposed the
Makefilepatch that allows to run it more easily on other systems by just passing an appropriate POLDEV variable to make...However Christopher decided not to pursue the change because he says that people only run the testsuite on Fedora (I am not one of them).
Perhaps I misunderstood Chris' comments, but it looked like he provided a way forward, although it was different from what you were originally proposing.
Quoted 1 line
What about the patch for the
AF_ALGsockets?
We discussed this already: I think there is value in making the change, but only as part of a larger effort to include other address families. From what I recall you were open to the idea but needed some time to deal with other non-SELinux issues first.
Quoted 1 line
And what about the one for providing more meaningful conflicting type rules errors from libsepol? Have you had any time to look at them? They are very simple, yet very useful I suppose...
Unfortunately I generally don't have time to look very closely at the userspace patches. The good news is that we have a number of people who are well versed in the SELinux userspace and should be able to review and comment on those patches.
Signature · 2 lines
paul moore www.paul-moore.com
PATCH 1/1 Fix the Reference Policy integration with the SELinux testsuite
Hello Paul.
Quoted 11 lines · Paul Moore
Quoted 9 lines · Guido Trentalancia
Hello Paul.
As it is, the testsuite only runs on Fedora out of the box.
That's why I proposed the
Makefilepatch that allows to run it more easily on other systems by just passing an appropriate POLDEV variable to make...
Quoted 7 lines
Quoted 3 lines
However Christopher decided not to pursue the change because he says that people only run the testsuite on Fedora (I am not one of them).
Perhaps I misunderstood Chris' comments, but it looked like he provided a way forward, although it was different from what you were originally proposing.
Yes, initially he provided a way forward.
Today, I read, he's fine with leaving things alone.
Quoted 6 lines
Quoted 1 line
What about the patch for the
AF_ALGsockets?We discussed this already: I think there is value in making the change, but only as part of a larger effort to include other address families.??From what I recall you were open to the idea but needed some time to deal with other non-SELinux issues first.
I cannot promise anything about the larger new sockets patch... For sure the other commitments are not light ones and there is still open problems with the policy. Let's wait and see.
Quoted 8 lines
Quoted 3 lines
And what about the one for providing more meaningful conflicting type rules errors from libsepol? Have you had any time to look at them? They are very simple, yet very useful I suppose...
Unfortunately I generally don't have time to look very closely at the userspace patches.??The good news is that we have a number of people who are well versed in the SELinux userspace and should be able to review and comment on those patches.
Ok, that's fine, I understand. Someone else will eventually have a look at them...
Thanks for your time.
Best regards,
Guido