return 1;
}
-#define REGULAR_USER 5000
static int __check_caller_permission(uid_t uid,
GDBusMethodInvocation *invocation, GVariant *parameters)
{
goto catch;
}
- pkgtype = _get_pkgtype_from_file(pkgpath);
+ pkgtype = _get_pkgtype_from_file(pkgpath, caller_uid);
if (!pkgtype && arg_pkgtype && strlen(arg_pkgtype))
pkgtype = (const char *)arg_pkgtype;
if (pkgtype == NULL) {
goto catch;
}
- pkgtype = _get_pkgtype_from_file(pkgpath);
+ pkgtype = _get_pkgtype_from_file(pkgpath, caller_uid);
if (!pkgtype && arg_pkgtype && strlen(arg_pkgtype))
pkgtype = (const char *)arg_pkgtype;
if (pkgtype == NULL) {