[TCT][inst.sh][Non-ACR][Add privilege for tpk-backend due to onlycap]
authorperforce <perforce@perforce.(none)>
Wed, 20 Jul 2016 04:53:19 +0000 (13:53 +0900)
committerperforce <perforce@perforce.(none)>
Wed, 20 Jul 2016 04:53:19 +0000 (13:53 +0900)
Change-Id: I6de38517caf39302f9b6aea1e8e01aaf8b22e77e
Signed-off-by: perforce <perforce@perforce.(none)>
templates/tct-package-asan/inst.sh

index ec7a564..29a6b57 100755 (executable)
@@ -118,7 +118,9 @@ function installpkg(){
     rpm -ih $PKG_DIR/$PKG_FULLNAME
    # pkginfo --imd /usr/share/packages/$PKG_NAME\.xml
    # pkg_privilege -i /usr/share/packages/$PKG_NAME\.xml
+    chsmack -e "System::Privileged" /usr/bin/tpk-backend
     tpk-backend --preload -y $PKG_NAME
+    chsmack -e "User" /usr/bin/tpk-backend
     if [ -e $PKG_DIR/post-inst.sh ];then
        WORKDIR=`pwd`
        cd $PKG_DIR