User Namespace not working properly in ZFS

Description

Within the container:

 

In the host (12733 is the container pid init):

 

 

Same/similar was done using ext4 and it seems to work as expected.

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk February 21, 2025 at 11:12 PM

This issue has now been closed. Comments made after this point may not be viewed by the TrueNAS Teams. Please open a new issue if you have found a problem or need to re-engage with the TrueNAS Engineering Teams.

Ameer Hamza February 21, 2025 at 11:12 PM
Edited

Tested on both 25.04-BETA and the latest Gold Eye Nightlies but couldn’t reproduce the issue, uid/gid mapping for shared files appears to work correctly. One observation is that the ticket description indicates the idmapped mount flag was set, but this wasn’t observed across multiple Incus config options I tested, including legacy shared zfs dataset. Closing this after discussing with , as the issue also no longer seems reproducible in his environment. This might be tied to a specific Incus setup, but hard to confirm without a reproduction scenario.

William Gryzbowski February 20, 2025 at 4:57 PM

User namespace works on 24.10.1, to narrow it down further

William Gryzbowski February 20, 2025 at 4:47 PM

Same issue reproduce on 25.04-BETA.1, suspicious on regression from zfs 2.2.6 to 2.3.

William Gryzbowski February 20, 2025 at 4:07 PM

This was in 25.10.0-MASTER-20250218-005630

I will try 25.04-BETA.1 next

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Original estimate

Time remaining

0m

Components

Fix versions

Priority

Katalon Platform

Created February 20, 2025 at 2:56 PM
Updated February 21, 2025 at 11:18 PM
Resolved February 21, 2025 at 11:12 PM