Debian Patches

Status for golang-github-cyphar-filepath-securejoin/0.3.4-3

Patch Description Author Forwarded Bugs Origin Last update
0001-Relax-TestVerifyProcRoot_ProcNonRoot.patch Relax TestVerifyProcRoot_ProcNonRoot
Fails on debci in LXC with:

290s === RUN TestVerifyProcRoot_ProcNonRoot/thread-self="thread-self"
290s procfs_linux_test.go:396:
290s Error Trace: /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/procfs_linux_test.go:396
290s /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/procfs_linux_test.go:410
290s /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/util_linux_test.go:83
290s Error: Error "unsafe procfs detected: incorrect procfs root filesystem type 0x65735546" does not contain "incorrect procfs root inode number"
290s Test: TestVerifyProcRoot_ProcNonRoot/thread-self="thread-self"
290s Messages: verifyProcRoot(/proc/stat)
290s === RUN TestVerifyProcRoot_ProcNonRoot/thread-self="self/task"
290s procfs_linux_test.go:396:
290s Error Trace: /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/procfs_linux_test.go:396
290s /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/procfs_linux_test.go:410
290s /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/util_linux_test.go:83
290s Error: Error "unsafe procfs detected: incorrect procfs root filesystem type 0x65735546" does not contain "incorrect procfs root inode number"
290s Test: TestVerifyProcRoot_ProcNonRoot/thread-self="self/task"
290s Messages: verifyProcRoot(/proc/stat)
290s === RUN TestVerifyProcRoot_ProcNonRoot/thread-self="self"
290s procfs_linux_test.go:396:
290s Error Trace: /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/procfs_linux_test.go:396
290s /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/procfs_linux_test.go:410
290s /tmp/autopkgtest-lxc.mg9dhiho/downtmp/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/cyphar/filepath-securejoin/util_linux_test.go:83
290s Error: Error "unsafe procfs detected: incorrect procfs root filesystem type 0x65735546" does not contain "incorrect procfs root inode number"
290s Test: TestVerifyProcRoot_ProcNonRoot/thread-self="self"
290s Messages: verifyProcRoot(/proc/stat)
Reinhard Tartler <siretart@tauware.de> no 2024-10-19
0002-Fix-compilation-on-32bit-architectures-such-as-i386-.patch Fix compilation on 32bit architectures such as i386, armhf
On those architectures, the tests fail to build with an overflow error:

src/github.com/cyphar/filepath-securejoin/mkdir_linux_test.go:254:8: constant 2147484159 overflows int
FAIL github.com/cyphar/filepath-securejoin [build failed]

Turns out that FileMode is defined as an uint32 in the os.fs package.
Since `MkdirAll` is intended as a replacement for os.MkdirAll, it makes
sense to use the same types for all arguments, and that means os.FileMode
for the mode parameter.
Reinhard Tartler <siretart@tauware.de> yes 2024-10-20

All known versions for source package 'golang-github-cyphar-filepath-securejoin'

Links