From: Ian Jackson Subject: Re: [PATCH OSSTEST v2 1/2] uboot: do not use readlink on xsm policy Date: Tue, 31 Mar 2015 13:27:22 +0100 Message-ID: <21786.37546.187937.243036@mariner.uk.xensource.com> References: <1427448519.13935.73.camel@citrix.com> <1427453210-25730-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427453210-25730-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST v2 1/2] uboot: do not use readlink on xsm policy"): > The policy is not a symlink, so readlink will return nothing. > > We cannot use readlink -f because that will return an absolute path > and we need a path relative to the filesystem root (in this case > /boot). > > Keep flaskpolicy=$flaskpolicy as a shell variable rather than > unescaping the uses (so they are interpreted by Perl) to easy any > future changes. > > Signed-off-by: Ian Campbell Acked-by: Ian Jackson