accounts-service: Add accounts service vendor extension for app filter

Use accounts service’s vendor extension support for storing the app
filter per user, in a way that persists and which access to is
controlled by polkit (so writes can be restricted to administrators).

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://phabricator.endlessm.com/T23858
This commit is contained in:
Philip Withnall 2018-09-24 15:36:41 +01:00
parent 311e9d1c08
commit 79a4c41eee
5 changed files with 127 additions and 0 deletions

30
meson.build Normal file
View file

@ -0,0 +1,30 @@
project('eos-parental-controls', 'c',
version : '0.1.0',
meson_version : '>= 0.47.0',
license: 'LGPLv2.1+',
default_options : [
'buildtype=debugoptimized',
'warning_level=2',
'c_std=gnu11',
]
)
pkgconfig = import('pkgconfig')
meson_make_symlink = join_paths(meson.source_root(), 'tools', 'meson-make-symlink.sh')
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
# FIXME: This isnt exposed in accountsservice.pc
accountsserviceinterfacesdir = join_paths(datadir, 'accountsservice', 'interfaces')
dbus = dependency('dbus-1')
dbusinterfacesdir = dbus.get_pkgconfig_variable('interfaces_dir',
define_variable: ['datadir', datadir])
polkit_gobject = dependency('polkit-gobject-1')
polkitpolicydir = polkit_gobject.get_pkgconfig_variable('policydir',
define_variable: ['prefix', prefix])
subdir('accounts-service')