]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
uboot: do not use readlink on xsm policy
authorIan Campbell <ian.campbell@citrix.com>
Fri, 27 Mar 2015 10:46:31 +0000 (10:46 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 31 Mar 2015 12:31:56 +0000 (13:31 +0100)
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 <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index c0cd71b006d20b16e1929a55b7275fb3a8e27e1e..c6cd9796ad54582c9baeec66eea20aa2950b62ea 100644 (file)
@@ -162,7 +162,7 @@ sub setupboot_uboot ($$$$) {
            $flask_commands = <<END;
 
 setenv flask_policy_addr_r 0x1200000
-flaskpolicy=`readlink /boot/$flaskpolicy`
+flaskpolicy=$flaskpolicy
 ext2load scsi 0 \\\${flask_policy_addr_r} \$flaskpolicy
 fdt mknod /chosen module\@2
 fdt set /chosen/module\@2 compatible "xen,xsm-policy" "xen,multiboot-module"