diff options
author | lokilee73 <changjoo.lee@samsung.com> | 2017-12-04 18:13:11 +0900 |
---|---|---|
committer | lokilee73 <changjoo.lee@samsung.com> | 2017-12-04 18:13:18 +0900 |
commit | 06df941dbfb17a6a7ce8b9949f840928b344e9fb (patch) | |
tree | c72adee93179b3d092d136dc54dab8aa839a3a85 | |
parent | 15653ad2b4c5a20f8111de666a474c9ba3e34022 (diff) | |
download | deviced-submit/tizen_4.0/20171205.110014.tar.gz deviced-submit/tizen_4.0/20171205.110014.tar.bz2 deviced-submit/tizen_4.0/20171205.110014.zip |
Display: to check privilege of caller without logsubmit/tizen_4.0/20171205.110014accepted/tizen/4.0/unified/20171206.140352
Change-Id: I476b5babf3b53ab1a99fe0baef49061c4cb07114
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rwxr-xr-x[-rw-r--r--] | src/display/display-dbus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/display-dbus.c b/src/display/display-dbus.c index 9cff1485..32a994bf 100644..100755 --- a/src/display/display-dbus.c +++ b/src/display/display-dbus.c @@ -127,6 +127,9 @@ static DBusMessage *edbus_lockstate(E_DBus_Object *obj, DBusMessage *msg) goto out; } + if (!strcmp(state_str, "privilege check")) + goto out; + pid = get_edbus_sender_pid(msg); if (kill(pid, 0) == -1) { _E("%d process does not exist, dbus ignored!", pid); @@ -220,6 +223,9 @@ static DBusMessage *edbus_unlockstate(E_DBus_Object *obj, DBusMessage *msg) goto out; } + if (!strcmp(state_str, "privilege check")) + goto out; + pid = get_edbus_sender_pid(msg); if (kill(pid, 0) == -1) { _E("%d process does not exist, dbus ignored!", pid); |