Skip to content

Commit

Permalink
[abootsettings] Only privileged clients can set lock state. Fixes JB#…
Browse files Browse the repository at this point in the history
…52494

Mark set_locked method call as privileged.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
  • Loading branch information
spiiroin committed Jan 5, 2021
1 parent e74970c commit 8774bb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/abootsettings.c
Expand Up @@ -5,7 +5,8 @@
User can change e.g. device lock value for aboot.
<p>
Copyright (C) 2017 Jolla Oy
Copyright (c) 2017 - 2020 Jolla Ltd.
Copyright (c) 2020 Open Mobile Platform LLC.
@author Marko Lemmetty <marko.lemmetty@jollamobile.com>
@author Simo Piiroinen <simo.piiroinen@jollamobile.com>
Expand Down Expand Up @@ -221,6 +222,7 @@ static const dsme_dbus_binding_t dbus_methods_array[] =
{
.method = set_locked,
.name = "set_locked",
.priv = true,
.args =
" <arg direction=\"in\" name=\"state\" type=\"i\"/>\n"
" <arg direction=\"out\" name=\"success\" type=\"i\"/>\n"
Expand Down

0 comments on commit 8774bb8

Please sign in to comment.