From abd82a321f38eb27352adeb67782b87801aaa992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 17 Mar 2015 15:08:25 +0100 Subject: [PATCH] Handle untrusted appmenus coming from DispVM-sandboxed build --- build_template_rpm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build_template_rpm b/build_template_rpm index 280f151..fea85d2 100755 --- a/build_template_rpm +++ b/build_template_rpm @@ -6,6 +6,16 @@ echo "usage $0 " exit 1 fi +# handle appmenus whitelists from DispVM build +if [ -d qubeized_images/$NAME/untrusted_appmenus ]; then + srcdir="qubeized_images/$NAME/untrusted_appmenus" + mkdir -p appmenus-$$ + rm -f appmenus + ln -s appmenus-$$ appmenus + for f in whitelisted-appmenus.list vm-whitelisted-appmenus.list netvm-whitelisted-appmenus.list; do + grep '^[a-zA-Z0-9.()_-]+.desktop$' $srcdir/$f > appmenus/$f + done +fi rpmbuild --target noarch \ --define "template_name $NAME" \ @@ -13,3 +23,5 @@ rpmbuild --target noarch \ --define "_topdir $PWD/rpmbuild" \ --define "_tmppath $PWD/rpmbuild/tmp" \ -bb templates.spec + +[ -d appmenus-$$ ] && rm -rf appmenus-$$ appmenus