[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/2] Fixed flask policy's install path to avoid installing it as '/boot' file



On 07/29/2013 01:01 PM, Vadim A. Misbakh-Soloviov wrote:
From: "Vadim A. Misbakh-Soloviov" <mva@xxxxxxxx>

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@xxxxxxxx>
---
  tools/flask/policy/Makefile | 1 +
  1 file changed, 1 insertion(+)

diff --git a/tools/flask/policy/Makefile b/tools/flask/policy/Makefile
index e666f3e..d917231 100644
--- a/tools/flask/policy/Makefile
+++ b/tools/flask/policy/Makefile
@@ -103,6 +103,7 @@ POLICY_SECTIONS += $(USERS) $(CONSTRAINTS) $(ISID_DEFS)
  all: $(POLICY_FILENAME)

  install: $(POLICY_FILENAME)
+       $(INSTALL_DIR) $(DESTDIR)$(POLICY_LOADPATH)
        $(INSTALL_DATA) $^ $(POLICY_LOADPATH)

  $(POLICY_FILENAME): policy.conf


POLICY_LOADPATH is defined as $(DESTDIR)/boot, so this expands to:
        $(INSTALL_DIR) $(DESTDIR)$(DESTDIR)/boot

I believe the correct fix is to instead add:
        $(INSTALL_DIR) $(POLICY_LOADPATH)

With that change, this patch is

Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>

Patch 2/2 looks correct as-is or with Andrew's cleanup.

--
Daniel De Graaf
National Security Agency

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.