]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd/mkfds-foreign-sockets: skip when lacking sock_diag ability
authorChen Qi <Qi.Chen@windriver.com>
Mon, 26 May 2025 07:24:16 +0000 (15:24 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Mon, 26 May 2025 07:27:01 +0000 (15:27 +0800)
The ENDPOINTS will need sock_diag ability. The kernel might not
enable related configs. Check and skip in case of lacking such ability.

Fixes: https://github.com/util-linux/util-linux/issues/3590
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
tests/ts/lsfd/mkfds-foreign-sockets

index cd94da799c71c5b5c29073117e7a6dfb724abaa6..76138a7a6fe2ae2a876cc7304af7498f2f9354be 100755 (executable)
@@ -30,6 +30,8 @@ ts_skip_nonroot
 ts_skip_qemu_user
 ts_cd "$TS_OUTDIR"
 
+lsfd_check_sockdiag "unix"
+
 declare -A tcase
 tcase[NAME]="state=connected"
 tcase[SOCK.NETNS]=