initial commit
This commit is contained in:
17
data/dbus/meson.build
Normal file
17
data/dbus/meson.build
Normal file
@@ -0,0 +1,17 @@
|
||||
dbus_config_data = configuration_data()
|
||||
dbus_config_data.set('LIBEXEC_DIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
|
||||
|
||||
dbus_config_data_file = configure_file(
|
||||
input: 'org.tuf.manager.server.service.in',
|
||||
output: 'org.tuf.manager.server.service',
|
||||
configuration: dbus_config_data
|
||||
)
|
||||
|
||||
install_data(
|
||||
['org.tuf.manager.server.conf'],
|
||||
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'system.d')
|
||||
)
|
||||
install_data(
|
||||
dbus_config_data_file,
|
||||
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'system-services')
|
||||
)
|
23
data/dbus/org.tuf.manager.server.conf
Normal file
23
data/dbus/org.tuf.manager.server.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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">
|
||||
<busconfig>
|
||||
<!-- Only root can own the service -->
|
||||
<policy user="root">
|
||||
<allow own="org.tuf.manager.server"/>
|
||||
</policy>
|
||||
|
||||
<!-- Allow anyone to invoke methods on the interfaces -->
|
||||
<policy context="default">
|
||||
<allow send_destination="org.tuf.manager.server"
|
||||
send_interface="org.tuf.manager.server"/>
|
||||
|
||||
<allow send_destination="org.tuf.manager.server"
|
||||
send_interface="org.freedesktop.DBus.Introspectable"/>
|
||||
<allow send_destination="org.tuf.manager.server"
|
||||
send_interface="org.freedesktop.DBus.Peer"/>
|
||||
<allow send_destination="org.tuf.manager.server"
|
||||
send_interface="org.freedesktop.DBus.Properties"/>
|
||||
</policy>
|
||||
</busconfig>
|
||||
|
4
data/dbus/org.tuf.manager.server.service.in
Normal file
4
data/dbus/org.tuf.manager.server.service.in
Normal file
@@ -0,0 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=org.tuf.manager.server
|
||||
Exec=@LIBEXEC_DIR@/tuf-server
|
||||
User=root
|
Reference in New Issue
Block a user