[LTP] [PATCH] syscalls/{fanotify17, getxattr05}: simplify code by using save_restore
Cyril Hrubis
chrubis@suse.cz
Mon Sep 23 10:16:24 CEST 2024
Hi!
> If more than 10 user namspaces is currently used on system, it is still successfully to set
> max_user_namespaces to 10. However, these tests fail with ENOSPC. for example:
> # lsns -t user -l -n | wc -l
> 17
>
> root@fedora40:~/ltp/testcases/kernel/syscalls/fanotify# ./fanotify17
> ...
> fanotify17.c:174: TINFO: Test #0: Global groups limit in init user ns
> fanotify17.c:130: TPASS: Created 128 groups - below groups limit (128)
> fanotify17.c:174: TINFO: Test #1: Global groups limit in privileged user ns
> fanotify17.c:154: TFAIL: unshare(CLONE_NEWUSER) failed: ENOSPC (28)
> tst_test.c:452: TBROK: Invalid child (6958) exit value 1
>
>
>
> Just try to fix the issue by increasing the setting of max_user_namespaces.
> BTW, it may be better to get the number of user namespaces in use and then add 10.
Such change should be ideally in a separate patch with this explanation
and not hidden in a patch that is supposedly just moving the code that
restores the original value.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list