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

index 7085970..39cce66 100755 (executable)
@@ -111,7 +111,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