summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/desktop/dbus/dbus-policy
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/desktop/dbus/dbus-policy
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/desktop/dbus/dbus-policy')
-rw-r--r--t/recipes/checks/desktop/dbus/dbus-policy/build-spec/debian/install2
-rw-r--r--t/recipes/checks/desktop/dbus/dbus-policy/build-spec/fill-values3
-rw-r--r--t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/etc/dbus-1/system.d/send-destination.conf14
-rw-r--r--t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/usr/share/dbus-1/system.d/at-console.conf15
-rw-r--r--t/recipes/checks/desktop/dbus/dbus-policy/eval/desc2
-rw-r--r--t/recipes/checks/desktop/dbus/dbus-policy/eval/hints9
6 files changed, 45 insertions, 0 deletions
diff --git a/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/debian/install b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/debian/install
new file mode 100644
index 0000000..a75e237
--- /dev/null
+++ b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/debian/install
@@ -0,0 +1,2 @@
+etc
+usr
diff --git a/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/fill-values b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/fill-values
new file mode 100644
index 0000000..8466676
--- /dev/null
+++ b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: dbus-policy
+Description: test deprecated D-Bus policies
diff --git a/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/etc/dbus-1/system.d/send-destination.conf b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/etc/dbus-1/system.d/send-destination.conf
new file mode 100644
index 0000000..ae052ff
--- /dev/null
+++ b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/etc/dbus-1/system.d/send-destination.conf
@@ -0,0 +1,14 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy user="root">
+ <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
+ </policy>
+ <policy user="nobody">
+ <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
+ </policy>
+ <policy context="default">
+ <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
+ <allow send_member="AreYouReallySureThisMethodIsAlwaysOK"/>
+ <allow send_path="/com/example/Here"/>
+ </policy>
+</busconfig>
diff --git a/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/usr/share/dbus-1/system.d/at-console.conf b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/usr/share/dbus-1/system.d/at-console.conf
new file mode 100644
index 0000000..8c47adb
--- /dev/null
+++ b/t/recipes/checks/desktop/dbus/dbus-policy/build-spec/orig/usr/share/dbus-1/system.d/at-console.conf
@@ -0,0 +1,15 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- this is OK, at least for now -->
+ <policy group="bluetooth">
+ <allow send_destination="com.example.Service"/>
+ <allow send_destination="com.example.Other"/>
+ </policy>
+
+ <!-- this is deprecated -->
+ <policy at_console="true">
+ <allow send_destination="com.example.Service"/>
+ <allow send_destination="com.example.Other"/>
+ </policy>
+</busconfig>
diff --git a/t/recipes/checks/desktop/dbus/dbus-policy/eval/desc b/t/recipes/checks/desktop/dbus/dbus-policy/eval/desc
new file mode 100644
index 0000000..a1b0e16
--- /dev/null
+++ b/t/recipes/checks/desktop/dbus/dbus-policy/eval/desc
@@ -0,0 +1,2 @@
+Testname: dbus-policy
+Check: desktop/dbus
diff --git a/t/recipes/checks/desktop/dbus/dbus-policy/eval/hints b/t/recipes/checks/desktop/dbus/dbus-policy/eval/hints
new file mode 100644
index 0000000..6066067
--- /dev/null
+++ b/t/recipes/checks/desktop/dbus/dbus-policy/eval/hints
@@ -0,0 +1,9 @@
+dbus-policy (binary): dbus-policy-without-send-destination <policy user="nobody"><allow send_interface="org.freedesktop.DBus.ObjectManager"/> [etc/dbus-1/system.d/send-destination.conf:2]
+dbus-policy (binary): dbus-policy-without-send-destination <policy context="default"><allow send_path="/com/example/Here"/> [etc/dbus-1/system.d/send-destination.conf:5]
+dbus-policy (binary): dbus-policy-without-send-destination <policy context="default"><allow send_member="AreYouReallySureThisMethodIsAlwaysOK"/> [etc/dbus-1/system.d/send-destination.conf:4]
+dbus-policy (binary): dbus-policy-without-send-destination <policy context="default"><allow send_interface="org.freedesktop.DBus.ObjectManager"/> [etc/dbus-1/system.d/send-destination.conf:3]
+dbus-policy (binary): dbus-policy-excessively-broad <policy context="default"><allow send_path="/com/example/Here"/> [etc/dbus-1/system.d/send-destination.conf:5]
+dbus-policy (binary): dbus-policy-excessively-broad <policy context="default"><allow send_member="AreYouReallySureThisMethodIsAlwaysOK"/> [etc/dbus-1/system.d/send-destination.conf:4]
+dbus-policy (binary): dbus-policy-in-etc [etc/dbus-1/system.d/send-destination.conf]
+dbus-policy (binary): dbus-policy-at-console <policy at_console="true"><allow send_destination="com.example.Service"/> [usr/share/dbus-1/system.d/at-console.conf:3]
+dbus-policy (binary): dbus-policy-at-console <policy at_console="true"><allow send_destination="com.example.Other"/> [usr/share/dbus-1/system.d/at-console.conf:4]