mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
- Implement listening for CacheUpdated notification. - Configuration to allow only root to trigger the notification. - Trigger the notification from an apt update hook. - Retrieve the list of packages available for upgrade and print them to log. - Add dependency on libglib2.0-bin for the gdbus command line tool. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
20 lines
513 B
XML
20 lines
513 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
|
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
|
<!--
|
|
This file is part of FreedomBox.
|
|
|
|
Allow only root user to send any notifications to FreedomBox.
|
|
-->
|
|
|
|
<busconfig>
|
|
|
|
<policy user="root">
|
|
<allow own="org.freedombox.Service"/>
|
|
<allow send_destination="org.freedombox.Service"
|
|
send_path="/org/freedombox/Service/PackageHandler"/>
|
|
</policy>
|
|
|
|
</busconfig>
|