From 372d51a491088102272f46bc5fa5a21c4edba72b Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 14 Feb 2020 18:00:24 +0000 Subject: [PATCH] accounts-service: Add AccountInfo interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will store information about the user which is related to parental controls. Currently, that’s just a boolean indicating that the user is a parent, and hence that their account should be presented differently in UIs. See: https://gitlab.gnome.org/GNOME/gnome-initial-setup/issues/94 Signed-off-by: Philip Withnall --- ....endlessm.ParentalControls.AccountInfo.xml | 35 ++++++++++++++++ .../com.endlessm.ParentalControls.policy.in | 40 +++++++++++++++++++ accounts-service/meson.build | 1 + 3 files changed, 76 insertions(+) create mode 100644 accounts-service/com.endlessm.ParentalControls.AccountInfo.xml diff --git a/accounts-service/com.endlessm.ParentalControls.AccountInfo.xml b/accounts-service/com.endlessm.ParentalControls.AccountInfo.xml new file mode 100644 index 0000000..8726c22 --- /dev/null +++ b/accounts-service/com.endlessm.ParentalControls.AccountInfo.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + diff --git a/accounts-service/com.endlessm.ParentalControls.policy.in b/accounts-service/com.endlessm.ParentalControls.policy.in index bdeb76a..ceae227 100644 --- a/accounts-service/com.endlessm.ParentalControls.policy.in +++ b/accounts-service/com.endlessm.ParentalControls.policy.in @@ -79,4 +79,44 @@ auth_admin_keep + + + Change your own account info + Authentication is required to change your account info. + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + Read your own account info + Authentication is required to read your account info. + + yes + yes + yes + + + + + Change another user’s account info + Authentication is required to change another user’s account info. + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + Read another user’s account info + Authentication is required to read another user’s account info. + + yes + yes + yes + + diff --git a/accounts-service/meson.build b/accounts-service/meson.build index 0a304ae..09a149e 100644 --- a/accounts-service/meson.build +++ b/accounts-service/meson.build @@ -7,6 +7,7 @@ i18n.merge_file('com.endlessm.ParentalControls.policy', ) dbus_interfaces = [ + 'com.endlessm.ParentalControls.AccountInfo', 'com.endlessm.ParentalControls.AppFilter', 'com.endlessm.ParentalControls.SessionLimits', ]