diff --git a/slices/crun.yaml b/slices/crun.yaml new file mode 100644 index 00000000..1f5b3e82 --- /dev/null +++ b/slices/crun.yaml @@ -0,0 +1,22 @@ +package: crun + +essential: + - crun_copyright + +slices: + bins: + essential: + - crun_libs + - libc6_libs + - libcap2_libs + - libseccomp2_libs + - libsystemd0_libs + - libyajl2_libs + contents: + /usr/bin/crun: + libs: + contents: + /usr/lib/*-linux-*/libcrun.a: + copyright: + contents: + /usr/share/doc/crun/copyright: diff --git a/slices/libaudit-common.yaml b/slices/libaudit-common.yaml new file mode 100644 index 00000000..8607f4b5 --- /dev/null +++ b/slices/libaudit-common.yaml @@ -0,0 +1,12 @@ +package: libaudit-common + +essential: + - libaudit-common_copyright + +slices: + config: + contents: + /etc/libaudit.conf: + copyright: + contents: + /usr/share/doc/libaudit-common/copyright: diff --git a/slices/libaudit1.yaml b/slices/libaudit1.yaml new file mode 100644 index 00000000..2ff61258 --- /dev/null +++ b/slices/libaudit1.yaml @@ -0,0 +1,16 @@ +package: libaudit1 + +essential: + - libaudit1_copyright + +slices: + libs: + essential: + - libaudit-common_config + - libc6_libs + - libcap-ng0_libs + contents: + /lib/*-linux-*/libaudit.so.1*: + copyright: + contents: + /usr/share/doc/libaudit1/copyright: diff --git a/slices/libcap-ng0.yaml b/slices/libcap-ng0.yaml new file mode 100644 index 00000000..c6440bcd --- /dev/null +++ b/slices/libcap-ng0.yaml @@ -0,0 +1,14 @@ +package: libcap-ng0 + +essential: + - libcap-ng0_copyright + +slices: + libs: + essential: + - libc6_libs + contents: + /lib/*-linux-*/libcap-ng.so.0*: + copyright: + contents: + /usr/share/doc/libcap-ng0/copyright: diff --git a/slices/libcap2.yaml b/slices/libcap2.yaml new file mode 100644 index 00000000..cbf31c2e --- /dev/null +++ b/slices/libcap2.yaml @@ -0,0 +1,14 @@ +package: libcap2 + +essential: + - libcap2_copyright + +slices: + libs: + essential: + - libc6_libs + contents: + /lib/*-linux-*/libcap.so.2*: + copyright: + contents: + /usr/share/doc/libcap2/copyright: diff --git a/slices/liblz4-1.yaml b/slices/liblz4-1.yaml new file mode 100644 index 00000000..0e254fca --- /dev/null +++ b/slices/liblz4-1.yaml @@ -0,0 +1,14 @@ +package: liblz4-1 + +essential: + - liblz4-1_copyright + +slices: + libs: + essential: + - libc6_libs + contents: + /usr/lib/*-linux-*/liblz4.so.1*: + copyright: + contents: + /usr/share/doc/liblz4-1/copyright: diff --git a/slices/libseccomp2.yaml b/slices/libseccomp2.yaml new file mode 100644 index 00000000..81ef77e3 --- /dev/null +++ b/slices/libseccomp2.yaml @@ -0,0 +1,14 @@ +package: libseccomp2 + +essential: + - libseccomp2_copyright + +slices: + libs: + essential: + - libc6_libs + contents: + /usr/lib/*-linux-*/libseccomp.so.2*: + copyright: + contents: + /usr/share/doc/libseccomp2/copyright: diff --git a/slices/libsystemd0.yaml b/slices/libsystemd0.yaml new file mode 100644 index 00000000..b5ded279 --- /dev/null +++ b/slices/libsystemd0.yaml @@ -0,0 +1,19 @@ +package: libsystemd0 + +essential: + - libsystemd0_copyright + +slices: + libs: + essential: + - libc6_libs + - libcap2_libs + - libgcrypt20_libs + - liblz4-1_libs + - liblzma5_libs + - libzstd1_libs + contents: + /usr/lib/*-linux-*/libsystemd.so.0*: + copyright: + contents: + /usr/share/doc/libsystemd0/copyright: diff --git a/slices/libyajl2.yaml b/slices/libyajl2.yaml new file mode 100644 index 00000000..e5b9e985 --- /dev/null +++ b/slices/libyajl2.yaml @@ -0,0 +1,14 @@ +package: libyajl2 + +essential: + - libyajl2_copyright + +slices: + libs: + essential: + - libc6_libs + contents: + /usr/lib/*-linux-*/libyajl.so.2*: + copyright: + contents: + /usr/share/doc/libyajl2/copyright: diff --git a/slices/uidmap.yaml b/slices/uidmap.yaml new file mode 100644 index 00000000..08560197 --- /dev/null +++ b/slices/uidmap.yaml @@ -0,0 +1,17 @@ +package: uidmap + +essential: + - uidmap_copyright + +slices: + bins: + essential: + - libaudit1_libs + - libc6_libs + - libselinux1_libs + contents: + /usr/bin/newgidmap: + /usr/bin/newuidmap: + copyright: + contents: + /usr/share/doc/uidmap/copyright: diff --git a/tests/spread/integration/crun/task.yaml b/tests/spread/integration/crun/task.yaml new file mode 100644 index 00000000..42d1c0c6 --- /dev/null +++ b/tests/spread/integration/crun/task.yaml @@ -0,0 +1,14 @@ +summary: Integration tests for crun + +execute: | + rootfs="$(install-slices crun_bins)" + + # crun needs proc mounted + mkdir "${rootfs}"/proc + mount --bind /proc "${rootfs}"/proc + + chroot "$rootfs" crun --help + chroot "$rootfs" crun list + + chroot "$rootfs" crun spec + test -f "$rootfs"/config.json