X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-app-framework%2Frecipes-core%2Fsecurity-manager%2Fsecurity-manager%2FRemoving-tizen-platform-config.patch;h=bea3516d8d45d912963d09b8a025b5511be64720;hb=84fad95845f610d74cd2cf676225e90f0d13c4a2;hp=4830db2a8cf0b57e90d2dfd4c2608555446985e5;hpb=ed0ec649f38a3044aaf3d36222be0391872cf2f5;p=AGL%2Fmeta-agl.git diff --git a/meta-app-framework/recipes-core/security-manager/security-manager/Removing-tizen-platform-config.patch b/meta-app-framework/recipes-core/security-manager/security-manager/Removing-tizen-platform-config.patch index 4830db2a8..bea3516d8 100644 --- a/meta-app-framework/recipes-core/security-manager/security-manager/Removing-tizen-platform-config.patch +++ b/meta-app-framework/recipes-core/security-manager/security-manager/Removing-tizen-platform-config.patch @@ -22,7 +22,7 @@ index 6f211c6..ed8047a 100755 POLICY_PATH=/usr/share/security-manager/policy PRIVILEGE_GROUP_MAPPING=$POLICY_PATH/privilege-group.list -DB_FILE=`tzplatform-get TZ_SYS_DB | cut -d= -f2`/.security-manager.db -+DB_FILE=/var/db/security-manager/.security-manager.db ++DB_FILE=/var/local/db/security-manager/.security-manager.db # Create default buckets while read bucket default_policy @@ -69,7 +69,7 @@ index 4d73d90..03c6680 100644 namespace SecurityManager { -const char *const PRIVILEGE_DB_PATH = tzplatform_mkpath(TZ_SYS_DB, ".security-manager.db"); -+const char *const PRIVILEGE_DB_PATH = "/var/db/security-manager/.security-manager.db"; ++const char *const PRIVILEGE_DB_PATH = "/var/local/db/security-manager/.security-manager.db"; enum class QueryType { EGetPkgPrivileges, @@ -94,7 +94,7 @@ index ae305d3..65cc8b5 100644 + if (!globaluid) { + struct passwd pw, *p; + char buf[4096]; -+ int rc = getpwnam_r("userapp", &pw, buf, sizeof buf, &p); ++ int rc = getpwnam_r("afm", &pw, buf, sizeof buf, &p); + globaluid = (rc || p == NULL) ? 555 : p->pw_uid; + } return globaluid;