Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dbusproxy] Only privileged clients can reboot device. Fixes JB#38609
Mark shutdown, reboot and powerup method calls as privileged.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
  • Loading branch information
spiiroin committed Jan 5, 2021
1 parent 603acfa commit a3efbc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/dbusproxy.c
Expand Up @@ -4,8 +4,9 @@
This module implements proxying of between DSME's internal message
queue and D-Bus.
<p>
Copyright (C) 2009-2010 Nokia Corporation.
Copyright (C) 2015-2017 Jolla Ltd.
Copyright (c) 2009 - 2010 Nokia Corporation.
Copyright (c) 2015 - 2020 Jolla Ltd.
Copyright (c) 2020 Open Mobile Platform LLC.
@author Semi Malinen <semi.malinen@nokia.com>
@author Simo Piiroinen <simo.piiroinen@jollamobile.com>
Expand Down Expand Up @@ -187,16 +188,19 @@ static const dsme_dbus_binding_t dbus_methods_array[] =
{
.method = req_powerup,
.name = dsme_req_powerup,
.priv = true,
.args = ""
},
{
.method = req_reboot,
.name = dsme_req_reboot,
.priv = true,
.args = ""
},
{
.method = req_shutdown,
.name = dsme_req_shutdown,
.priv = true,
.args = ""
},
// sentinel
Expand Down

0 comments on commit a3efbc2

Please sign in to comment.