code cleanup and openrc script
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
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.set('LIBEXECDIR', 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
|
||||
output: 'org.tuf.manager.server.service',
|
||||
configuration: dbus_config_data
|
||||
)
|
||||
|
||||
install_data(
|
||||
|
@@ -2,22 +2,22 @@
|
||||
<!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>
|
||||
<!-- 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 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>
|
||||
<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>
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=org.tuf.manager.server
|
||||
Exec=@LIBEXEC_DIR@/tuf-server
|
||||
Exec=@LIBEXECDIR@/tuf-server
|
||||
User=root
|
||||
|
Reference in New Issue
Block a user