libmalcontent implements parental controls support which can be used by applications to filter or limit the access of child accounts to inappropriate content.
These test get/set behaviour of EpcAppFilter, GAppInfo support, and
various error handling paths and corner cases.
With these tests, coverage of app-filter.c is:
• Lines: 97%
• Functions: 100%
• Branches: 57.5%
The branch coverage is not correctly reported, as it factors in the
failure branches for g_return_if_fail() precondition assertions, which
we deliberately do not test. With those branches manually excluded,
branch coverage is around 89% instead.
This adds libglib-testing as a subproject dependency, for its
GtDBusQueue. It adds gio-unix-2.0 as a dependency of the app-filter
tests, in order to be able to construct GDesktopAppInfos.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://phabricator.endlessm.com/T24004
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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