From: Ian Campbell Subject: Re: [PATCH 1/2] Fixed flask policy's install path to avoid installing it as '/boot' file Date: Tue, 30 Jul 2013 10:51:42 +0100 Message-ID: <1375177902.11701.80.camel@kazak.uk.xensource.com> References: <1375117309-13808-1-git-send-email-mva@mva.name> <51F6A3FB.3080001@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51F6A3FB.3080001@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel De Graaf Cc: xen-devel@lists.xen.org, "Vadim A. Misbakh-Soloviov" List-Id: xen-devel@lists.xenproject.org On Mon, 2013-07-29 at 13:18 -0400, Daniel De Graaf wrote: > 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 I think it would be a bit less surprising for drive by patchers etc to remove the DESTDIR from POLICY_LOADPATH and add it to the install target, which is the usual way to do things. Up to you/Vadim though. > > Patch 2/2 looks correct as-is or with Andrew's cleanup. >