summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeho Lee <jaeho81.lee@samsung.com>2013-04-04 11:31:56 +0900
committerJaeho Lee <jaeho81.lee@samsung.com>2013-04-04 11:31:56 +0900
commitfbfea6640ab453e92c82d2a59894345cded3863a (patch)
tree550338c78b50cefb0bb219f8ca112fe0d55994e1
parent2942b34a78706cc7b0e6a951e6ee9a9468715aad (diff)
downloadaul-1-fbfea6640ab453e92c82d2a59894345cded3863a.tar.gz
aul-1-fbfea6640ab453e92c82d2a59894345cded3863a.tar.bz2
aul-1-fbfea6640ab453e92c82d2a59894345cded3863a.zip
added euid check
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
-rw-r--r--packaging/aul.spec2
-rwxr-xr-xsrc/pkginfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/aul.spec b/packaging/aul.spec
index e662ac81..9bc031a5 100644
--- a/packaging/aul.spec
+++ b/packaging/aul.spec
@@ -1,6 +1,6 @@
Name: aul
Summary: App utility library
-Version: 0.0.261
+Version: 0.0.262
Release: 1
Group: System/Libraries
License: Apache License, Version 2.0
diff --git a/src/pkginfo.c b/src/pkginfo.c
index da61de4c..81186162 100755
--- a/src/pkginfo.c
+++ b/src/pkginfo.c
@@ -120,7 +120,7 @@ SLPAPI int aul_app_get_appid_bypid(int pid, char *appid, int len)
app_pkt_t *pkt = NULL;
int pgid;
- if(pid == getpid() || getuid()==0) {
+ if(pid == getpid() || getuid()==0 || geteuid()==0) {
if (__get_pkgname_bypid(pid, appid, len) == 0) {
_D("appid for %d is %s", pid, appid);
return AUL_R_OK;