[QUESTION vfs] Namespaces from kernel code for user mode threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,

I am trying to set up mount namespaces on top of a 'struct vfsmount'
and run user mode threads inside that namespace. All of this from kernel code.
However there doesn't seem a way to run the equivalent of unshare(CLONE_NEWNS)
inside the kernel.
Is this something that should work and if so, how?
The goal is that these processes execute inside a nearly empty filesystem tree.

The full context is in this series:
https://lore.kernel.org/all/20250217-kunit-kselftests-v1-0-42b4524c3b0a@xxxxxxxxxxxxx/
Specifically "[PATCH 09/12] kunit: Introduce UAPI testing framework"
in kunit_uapi_mount_tmpfs() and related.


Thanks,
Thomas




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux