Fixed flask policy's install path to avoid installing it as '/boot' file
PATCH v3 1/3 Fixed flask policy's install path to avoid installing it as '/boot' file
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
--- tools/flask/policy/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/flask/policy/Makefile +1 -0
@@ -103,6 +103,7 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME) install: $(POLICY_FILENAME) + $(INSTALL_DIR) $(POLICY_LOADPATH) $(INSTALL_DATA) $^ $(POLICY_LOADPATH) $(POLICY_FILENAME): policy.conf
Signature · 1 line
1.8.3.2
PATCH v3 2/3 Fixed xen-tools makefile to build flask-tools and flask policy only if flask build especially enabled
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
--- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/Makefile +1 -1
@@ -8,7 +8,7 @@ endif SUBDIRS-y := SUBDIRS-y += include SUBDIRS-y += libxc -SUBDIRS-y += flask +SUBDIRS-$(FLASK_ENABLE) += flask SUBDIRS-y += xenstore SUBDIRS-y += misc SUBDIRS-y += examples
Signature · 1 line
1.8.3.2
PATCH v3 3/3 Fixed policy Makefile with Ian Campbell advice:
In reply to Vadim A. Misbakh-SoloviovFrom: "Vadim A. Misbakh-Soloviov" <[email protected]>
Quoted 3 lines · Ian Campbell
I think it would be a bit less surprising for drive by patchers etc to remove the DESTDIR from
POLICY_LOADPATHand add it to the install target, which is the usual way to do things. Up to you/Vadim though.
--- tools/flask/policy/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tools/flask/policy/Makefile +3 -3
@@ -33,7 +33,7 @@ M4 ?= m4 OUTPUT_POLICY = 24 POLICY_FILENAME = xenpolicy.$(OUTPUT_POLICY) -POLICY_LOADPATH = $(DESTDIR)/boot +POLICY_LOADPATH = /boot # policy source layout POLDIR := policy
@@ -103,8 +103,8 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME) install: $(POLICY_FILENAME) - $(INSTALL_DIR) $(POLICY_LOADPATH) - $(INSTALL_DATA) $^ $(POLICY_LOADPATH) + $(INSTALL_DIR) $(DESTDIR)/$(POLICY_LOADPATH) + $(INSTALL_DATA) $^ $(DESTDIR)/$(POLICY_LOADPATH) $(POLICY_FILENAME): policy.conf $(CHECKPOLICY) $(CHECKPOLICY_PARAM) $^ -o $@
Signature · 1 line
1.8.3.2
Re: [Patch V3 3/3] Fixed policy Makefile with Ian Campbell advice:
Quoted 8 lines · Vadim A. Misbakh-Soloviov
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
Quoted 3 lines · Ian Campbell
I think it would be a bit less surprising for drive by patchers etc to remove the DESTDIR from
POLICY_LOADPATHand add it to the install target, which is the usual way to do things. Up to you/Vadim though.Signed-off-by Vadim A. Misbakh-Soloviov <[email protected]>
Looks good to me, I'll give Daniel a chance to object though.
Ian.
Quoted 28 lines
--- tools/flask/policy/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)tools/flask/policy/Makefile +3
-3@@ -33,7 +33,7 @@ M4 ?= m4 OUTPUT_POLICY = 24 POLICY_FILENAME = xenpolicy.$(OUTPUT_POLICY) -POLICY_LOADPATH = $(DESTDIR)/boot +POLICY_LOADPATH = /boot # policy source layout POLDIR := policy@@ -103,8 +103,8 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME) install: $(POLICY_FILENAME) - $(INSTALL_DIR) $(POLICY_LOADPATH) - $(INSTALL_DATA) $^ $(POLICY_LOADPATH) + $(INSTALL_DIR) $(DESTDIR)/$(POLICY_LOADPATH) + $(INSTALL_DATA) $^ $(DESTDIR)/$(POLICY_LOADPATH) $(POLICY_FILENAME): policy.conf $(CHECKPOLICY) $(CHECKPOLICY_PARAM) $^ -o $@
Daniel De Graaf
Acked-byRe: [Patch V3 3/3] Fixed policy Makefile with Ian Campbell advice:
Quoted 8 lines · Ian Campbell
Quoted 7 lines · Vadim A. Misbakh-Soloviov
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
Quoted 3 lines · Ian Campbell
I think it would be a bit less surprising for drive by patchers etc to remove the DESTDIR from
POLICY_LOADPATHand add it to the install target, which is the usual way to do things. Up to you/Vadim though.
Quoted 5 lines
Quoted 1 line
Signed-off-by Vadim A. Misbakh-Soloviov <[email protected]>Looks good to me, I'll give Daniel a chance to object though.
Ian.
Also looks good to me. It ends up being $(DESTDIR)//boot, but that's rather harmless.
I have already acked patch 1; if you send additional versions of the series with these patches, you can add the Acked-by: line below your Signed-off-by:
to reflect this.
Quoted 32 lines
Quoted 29 lines
--- tools/flask/policy/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)tools/flask/policy/Makefile +3
-3@@ -33,7 +33,7 @@ M4 ?= m4 OUTPUT_POLICY = 24 POLICY_FILENAME = xenpolicy.$(OUTPUT_POLICY) -POLICY_LOADPATH = $(DESTDIR)/boot +POLICY_LOADPATH = /boot # policy source layout POLDIR := policy@@ -103,8 +103,8 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME) install: $(POLICY_FILENAME) - $(INSTALL_DIR) $(POLICY_LOADPATH) - $(INSTALL_DATA) $^ $(POLICY_LOADPATH) + $(INSTALL_DIR) $(DESTDIR)/$(POLICY_LOADPATH) + $(INSTALL_DATA) $^ $(DESTDIR)/$(POLICY_LOADPATH) $(POLICY_FILENAME): policy.conf $(CHECKPOLICY) $(CHECKPOLICY_PARAM) $^ -o $@
Signature · 2 lines
Daniel De Graaf National Security Agency
Re: [Patch V3 3/3] Fixed policy Makefile with Ian Campbell advice:
In reply to Ian CampbellNice, that both of you agreed with patchset. But unfortunately I'm a newbie in Xen development, so I don't know, what should I do now. Just wait when someone commit it into staging? Or I should push it somewhere? :)
30.07.2013 17:16, Ian Campbell пишет:
Quoted 40 lines · Vadim A. Misbakh-Soloviov
Quoted 8 lines
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
Quoted 3 lines · Ian Campbell
I think it would be a bit less surprising for drive by patchers etc to remove the DESTDIR from
POLICY_LOADPATHand add it to the install target, which is the usual way to do things. Up to you/Vadim though.Signed-off-by Vadim A. Misbakh-Soloviov <[email protected]>Looks good to me, I'll give Daniel a chance to object though.
Ian.
Quoted 26 lines
--- tools/flask/policy/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)tools/flask/policy/Makefile +3
-3@@ -33,7 +33,7 @@ M4 ?= m4 OUTPUT_POLICY = 24 POLICY_FILENAME = xenpolicy.$(OUTPUT_POLICY) -POLICY_LOADPATH = $(DESTDIR)/boot +POLICY_LOADPATH = /boot # policy source layout POLDIR := policy@@ -103,8 +103,8 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME) install: $(POLICY_FILENAME) - $(INSTALL_DIR) $(POLICY_LOADPATH) - $(INSTALL_DATA) $^ $(POLICY_LOADPATH) + $(INSTALL_DIR) $(DESTDIR)/$(POLICY_LOADPATH) + $(INSTALL_DATA) $^ $(DESTDIR)/$(POLICY_LOADPATH)
Quoted 10 lines
tools/flask/policy/Makefile POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) · line 110
Quoted 2 lines
tools/flask/policy/Makefile +0
-0$(POLICY_FILENAME): policy.conf $(CHECKPOLICY) $(CHECKPOLICY_PARAM) $^ -o $@_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [Patch V3 3/3] Fixed policy Makefile with Ian Campbell advice:
Quoted 3 lines · Vadim A. Misbakh-Soloviov
Nice, that both of you agreed with patchset. But unfortunately I'm a newbie in Xen development, so I don't know, what should I do now. Just wait when someone commit it into staging? Or I should push it somewhere? :)
It's on my list of things to commit next time I'm doing that sort of thing (a few days at most), unless another committer beats me to it.
Thanks!
Ian.
I applied all three of these. I tweaked the commit messages somewhat so that the first line read as a standalone summary while remaining <80 chars.
Quoted 19 lines · Vadim A. Misbakh-Soloviov
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
Signed-off-by Vadim A. Misbakh-Soloviov <[email protected]>--- tools/flask/policy/Makefile | 1 + 1 file changed, 1 insertion(+)tools/flask/policy/Makefile +1
-0@@ -103,6 +103,7 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME) install: $(POLICY_FILENAME) + $(INSTALL_DIR) $(POLICY_LOADPATH) $(INSTALL_DATA) $^ $(POLICY_LOADPATH) $(POLICY_FILENAME): policy.conf
Great!
Thank you, Ian! ;)
02.08.2013 20:07, Ian Campbell пишет:
Quoted 19 lines
I applied all three of these. I tweaked the commit messages somewhat so that the first line read as a standalone summary while remaining <80 chars.
Quoted 14 lines · Vadim A. Misbakh-Soloviov
From: "Vadim A. Misbakh-Soloviov" <[email protected]>
Signed-off-by Vadim A. Misbakh-Soloviov <[email protected]>--- tools/flask/policy/Makefile | 1 + 1 file changed, 1 insertion(+)tools/flask/policy/Makefile +0
-0@@ -103,6 +103,7 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) all: $(POLICY_FILENAME)
Quoted 7 lines
tools/flask/policy/Makefile POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS) · line 109
Quoted 5 lines
tools/flask/policy/Makefile +1
-0install: $(POLICY_FILENAME) + $(INSTALL_DIR) $(POLICY_LOADPATH) $(INSTALL_DATA) $^ $(POLICY_LOADPATH) $(POLICY_FILENAME): policy.conf
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel