diff options
-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); |