[Issue#] N/A
[Bug] set_app_privilege() fails when SMACK is not available.
[Cause] Complimentary groups setting depend on getting app_id from process' SMACK label.
[Solution] Temporarily turn this off for non-SMACK systems.
[Verification] Build, install on non-SMACK system, reboot target, run some apps.
Change-Id: I9733c1d28ab810de6b40c56a2a79747978ab2911
}
#ifdef SMACK_ENABLED
- {
+ /* FIXME: this should be reworked to not depend on SMACK
+ * proper solution is not trivial (no app_id is passed to set_app_privilege())
+ */
+ if (have_smack()) {
gid_t *glist_new;
int i, cnt;