summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/hierarchy/links
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/files/hierarchy/links')
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/install1
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/links1
-rwxr-xr-xt/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/rules18
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/fill-values3
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/desc3
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/hints1
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/install1
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/links1
-rwxr-xr-xt/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/rules18
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/fill-values3
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-private/eval/desc7
-rw-r--r--t/recipes/checks/files/hierarchy/links/leaving-private/eval/hints1
-rw-r--r--t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/install1
-rw-r--r--t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/links1
-rwxr-xr-xt/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/rules18
-rw-r--r--t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/fill-values3
-rw-r--r--t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/desc3
-rw-r--r--t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/hints1
18 files changed, 85 insertions, 0 deletions
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/install b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/install
new file mode 100644
index 0000000..42a44e7
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/install
@@ -0,0 +1 @@
+lib/* usr/lib/aarch64-linux-gnu/
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/links b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/links
new file mode 100644
index 0000000..4eb411c
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/links
@@ -0,0 +1 @@
+usr/lib/a-library.so usr/lib/aarch64-linux-gnu/a-link.so
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/rules b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/rules
new file mode 100755
index 0000000..119c761
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+# must create here; *.so files are ignored by dpkg-source
+override_dh_auto_build:
+ mkdir lib
+ echo "A SHARED OBJECT" > lib/a-library.so
+
+# In Ubuntu, dh does not catch this file by default.
+# They have diffed it to reduce the size of packages.
+ifneq (,$(strip $(wildcard Changes)))
+override_dh_installchangelogs:
+ dh_installchangelogs Changes
+endif
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/fill-values b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/fill-values
new file mode 100644
index 0000000..6ff385d
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-architecture/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: leaving-architecture
+Description: Links from a directory in /usr/lib to one level up
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/desc b/t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/desc
new file mode 100644
index 0000000..c898980
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/desc
@@ -0,0 +1,3 @@
+Testname: leaving-architecture
+Check: files/hierarchy/links
+See-Also: Bug#243158, Bug#964073
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/hints b/t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/hints
new file mode 100644
index 0000000..1b6a7f4
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-architecture/eval/hints
@@ -0,0 +1 @@
+leaving-architecture (binary): architecture-escape usr/lib/a-library.so [usr/lib/aarch64-linux-gnu/a-link.so]
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/install b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/install
new file mode 100644
index 0000000..005eac0
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/install
@@ -0,0 +1 @@
+lib/* usr/lib/
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/links b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/links
new file mode 100644
index 0000000..4a86243
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/links
@@ -0,0 +1 @@
+usr/lib/a-library.so usr/lib/myprogram/a-link.so
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/rules b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/rules
new file mode 100755
index 0000000..119c761
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+# must create here; *.so files are ignored by dpkg-source
+override_dh_auto_build:
+ mkdir lib
+ echo "A SHARED OBJECT" > lib/a-library.so
+
+# In Ubuntu, dh does not catch this file by default.
+# They have diffed it to reduce the size of packages.
+ifneq (,$(strip $(wildcard Changes)))
+override_dh_installchangelogs:
+ dh_installchangelogs Changes
+endif
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/fill-values b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/fill-values
new file mode 100644
index 0000000..bd0d3ee
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-private/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: leaving-private
+Description: Links from a private directory in /usr/lib to one level up
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-private/eval/desc b/t/recipes/checks/files/hierarchy/links/leaving-private/eval/desc
new file mode 100644
index 0000000..59b3a1d
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-private/eval/desc
@@ -0,0 +1,7 @@
+Testname: leaving-private
+Check: files/hierarchy/links
+Test-Against:
+ ldconfig-escape
+ architecture-escape
+See-Also:
+ Bug#243158, Bug#964073
diff --git a/t/recipes/checks/files/hierarchy/links/leaving-private/eval/hints b/t/recipes/checks/files/hierarchy/links/leaving-private/eval/hints
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/leaving-private/eval/hints
@@ -0,0 +1 @@
+
diff --git a/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/install b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/install
new file mode 100644
index 0000000..0692514
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/install
@@ -0,0 +1 @@
+modules/* opt/myapp/
diff --git a/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/links b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/links
new file mode 100644
index 0000000..c23b7d6
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/links
@@ -0,0 +1 @@
+opt/myapp/a-module.so usr/lib/myapp-module.so
diff --git a/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/rules b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/rules
new file mode 100755
index 0000000..3bf6d2a
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+%:
+ dh $@
+
+# must create here; *.so files are ignored by dpkg-source
+override_dh_auto_build:
+ mkdir modules
+ echo "A SHARED OBJECT" > modules/a-module.so
+
+# In Ubuntu, dh does not catch this file by default.
+# They have diffed it to reduce the size of packages.
+ifneq (,$(strip $(wildcard Changes)))
+override_dh_installchangelogs:
+ dh_installchangelogs Changes
+endif
diff --git a/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/fill-values b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/fill-values
new file mode 100644
index 0000000..9f2a9c9
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: usr-lib-to-opt
+Description: Links from a directory in /usr/lib to /opt
diff --git a/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/desc b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/desc
new file mode 100644
index 0000000..2bda8aa
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/desc
@@ -0,0 +1,3 @@
+Testname: usr-lib-to-opt
+Check: files/hierarchy/links
+See-Also: Bug#964073
diff --git a/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/hints b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/hints
new file mode 100644
index 0000000..66e22df
--- /dev/null
+++ b/t/recipes/checks/files/hierarchy/links/usr-lib-to-opt/eval/hints
@@ -0,0 +1 @@
+usr-lib-to-opt (binary): ldconfig-escape opt/myapp/a-module.so [usr/lib/myapp-module.so]