]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix minor issues in namespace delegation support
authoryouzhongyang <youzhong@gmail.com>
Tue, 20 Sep 2022 22:25:21 +0000 (18:25 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Sep 2022 22:25:21 +0000 (15:25 -0700)
commit62e2a2881f6b441c136fb4ccb66ab491a5e6101f
treec242b38c834edbe4b67f9a187d837d2558bba2cb
parentfbf874a4acd86a118a695fb695fe934e68fc6b6f
Fix minor issues in namespace delegation support

get_user_ns() is only done once for each namespace, so put_user_ns()
should be done once too.

Fix two typos in user_namespace/user_namespace_002.ksh and
user_namespace/user_namespace_003.ksh.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #13918
module/os/linux/spl/spl-zone.c
tests/zfs-tests/tests/functional/user_namespace/user_namespace_002.ksh
tests/zfs-tests/tests/functional/user_namespace/user_namespace_003.ksh