From: Daniel De Graaf Subject: Re: [PATCH 1/2] Fixed flask policy's install path to avoid installing it as '/boot' file Date: Mon, 29 Jul 2013 13:18:51 -0400 Message-ID: <51F6A3FB.3080001@tycho.nsa.gov> References: <1375117309-13808-1-git-send-email-mva@mva.name> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1375117309-13808-1-git-send-email-mva@mva.name> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Vadim A. Misbakh-Soloviov" Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 07/29/2013 01:01 PM, Vadim A. Misbakh-Soloviov wrote: > From: "Vadim A. Misbakh-Soloviov" > > Signed-off-by: Vadim A. Misbakh-Soloviov > --- > 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 Patch 2/2 looks correct as-is or with Andrew's cleanup. -- Daniel De Graaf National Security Agency