- Add rule ~PROCESS ~PROCESS, rxxat for the same non-hybrid app label.
Change-Id: I749a37bc2d2b63e31ceeb187bc466b1a2c191e1b
then
return 0
fi
+ # ~PROCESS ~PROCESS, same label, rwxat
+ elif [[ "$1" == "User::Pkg::"* ]] && [ "$1" == "$2" ]
+ then
+ pkgname=$(/bin/echo ${1##User::Pkg::})
+ ishybrid=$(/usr/bin/sqlite3 $dbpath "select DISTINCT is_hybrid from user_app_pkg_view where pkg_name='$pkgname';")
+ if [ "$3" == "rwxat" ] && [ "$ishybrid" == "0" ]
+ then
+ return 0
+ fi
fi
EXCEPTION_CHECK $1 $2 $3
then
return 0
fi
+ # ~PROCESS ~PROCESS, same label, rwxat
+ elif [[ "$1" == "User::Pkg::"* ]] && [ "$1" == "$2" ]
+ then
+ pkgname=$(/bin/echo ${1##User::Pkg::})
+ ishybrid=$(/usr/bin/sqlite3 $dbpath "select DISTINCT is_hybrid from user_app_pkg_view where pkg_name='$pkgname';")
+ if [ "$3" == "rwxat-" ] && [ "$ishybrid" == "0" ]
+ then
+ return 0
+ fi
fi
EXCEPTION_CHECK $1 $2 $3