projects
/
platform
/
core
/
security
/
privacy-guard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529f6d4
)
change API to get user id
76/83476/1
author
SEUNGTAEK HAN
<s.t.han@samsung.com>
Thu, 11 Aug 2016 06:49:56 +0000
(15:49 +0900)
committer
SEUNGTAEK HAN
<s.t.han@samsung.com>
Thu, 11 Aug 2016 06:50:00 +0000
(15:50 +0900)
Change-Id: Ie9ca2d498b7c8c4da4f6c54e60545f5f11f5c2e2
pkgmgr_plugin/privileges.cpp
patch
|
blob
|
history
diff --git
a/pkgmgr_plugin/privileges.cpp
b/pkgmgr_plugin/privileges.cpp
index
4609698
..
cb0339f
100755
(executable)
--- a/
pkgmgr_plugin/privileges.cpp
+++ b/
pkgmgr_plugin/privileges.cpp
@@
-61,7
+61,10
@@
int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
LOGD("PKGMGR_PARSER_PLUGIN_INSTALL() called with [%s].", packageId);
- uid_t user_id = getuid();
+ uid_t user_id;
+ if (pkgmgr_installer_info_get_target_uid(&user_id) < 0) {
+ LOGE("Failed to get target user id");
+ }
LOGD("user_id is %d.", user_id);
int ret = 0;