libmalcontent implements parental controls support which can be used by applications to filter or limit the access of child accounts to inappropriate content.
When querying for the details of a particular user by their UID, we call accountsservice over D-Bus. Its API takes a gint64 variant, which we build using g_variant_new(), which takes varargs. Passing an integer of type uid_t in the varargs works fine on 64-bit architectures, where uid_t is 64-bit, but not on other architectures, where it’s likely 32-bit. In that case, g_variant_new() will still read 64 bits from the varargs input, even though the caller only put 32 on there. The rest will be filled with rubbish. Fix that by explicitly casting the uid_t to gint64 in the varargs. Fix a few other areas where uid_t variables are passed to functions which might interpret them as a different kind of integer too. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://phabricator.endlessm.com/T24016 |
||
---|---|---|
accounts-service | ||
debian | ||
eos-parental-controls-client | ||
libeos-parental-controls | ||
po | ||
subprojects | ||
tools | ||
.gitmodules | ||
COPYING | ||
eos-parental-controls.doap | ||
meson.build | ||
meson_options.txt | ||
README | ||
template.test.in |
eos-parental-controls
=====================
eos-parental-controls implements support for restricting the abilities of
non-administrator accounts on an Endless OS system. Typically, when this is
used, a non-administrator account will be for a child using the system; and the
administrator accounts will be for the parents.
It provides an accounts service vendor extension for storing an app filter to
restrict the child’s access to certain applications; and a simple library for
accessing and applying the app filter.
All the library APIs are currently unstable and are likely to change wildly.
Dependencies
============
• accounts-service
• dbus-daemon
• gio-2.0 ≥ 2.54
• glib-2.0 ≥ 2.54
• gobject-2.0 ≥ 2.54
Licensing
=========
All code in this project is licensed under LGPL-2.1+. See debian/copyright and
COPYING for more details.
Bugs
====
Bug reports and patches should be filed in GitHub.
Contact
=======
https://github.com/endlessm/eos-parental-controls