File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE busconfig PUBLIC
2+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
3+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
4+ <busconfig>
5+ <!-- This config allows anyone to control rauc -->
6+ <!-- It is usually installed to /usr/share/dbus-1/system.d -->
7+
8+ <policy context="default">
9+ <allow send_destination="de.pengutronix.rauc.InstallConfirmation"/>
10+ </policy>
11+
12+ <policy user="root">
13+ <allow own="de.pengutronix.rauc.InstallConfirmation"/>
14+ </policy>
15+ </busconfig>
Original file line number Diff line number Diff line change 1+ rauc_dbus_policy = configure_file (
2+ input : ' de.pengutronix.rauc.InstallConfirmation.conf' ,
3+ output : ' de.pengutronix.rauc.InstallConfirmation.conf' ,
4+ copy : true
5+ )
6+ install_data (rauc_dbus_policy, install_dir : dbuspolicydir)
Original file line number Diff line number Diff line change @@ -53,6 +53,13 @@ if systemddep.found()
5353 install_data (' script/rauc-hawkbit-updater.service' , install_dir : systemdsystemunitdir)
5454endif
5555
56+ datadir = get_option (' datadir' )
57+
58+ dbuspolicydir = get_option (' dbuspolicydir' )
59+ if dbuspolicydir == ''
60+ dbuspolicydir = datadir / ' dbus-1' / ' system.d'
61+ endif
62+
5663gnome = import (' gnome' )
5764dbus = ' rauc-installer-gen'
5865dbus_ifaces = files (' src/rauc-installer.xml' )
@@ -98,6 +105,7 @@ if doxygen.found()
98105 )
99106endif
100107
108+ subdir (' data' )
101109subdir (' docs' )
102110
103111executable (' rauc-hawkbit-updater' ,
Original file line number Diff line number Diff line change @@ -21,3 +21,8 @@ option(
2121 type : ' string' ,
2222 value : '' ,
2323 description : ' Directory for systemd service files' )
24+ option (
25+ ' dbuspolicydir' ,
26+ type : ' string' ,
27+ value : '' ,
28+ description : ' D-Bus policy directory' )
You can’t perform that action at this time.
0 commit comments