Open macronet opened 1 year ago
Also ran into this with zfs 2.2.1. Found this after a bit of debugging.
lib/libspl/include/zone.h:
#define GLOBAL_ZONEID 4026531837U
lib/libzfs/libzfs_dataset.c:
/* we are in a non-global zone, but parent is in the global zone */
if (getzoneid() != GLOBAL_ZONEID && !is_zoned) {
(void) zfs_standard_error(hdl, EPERM, errbuf);
zfs_close(zhp);
return (-1);
}
getzoneid()
returns 0 (!= GLOBAL_ZONEID) when USER_NS
is disabled.
System information
Describe the problem you're observing
Describe how to reproduce the problem
Compile (5.4) kernel without user namespaces -support (CONFIG_USER_NS)
Include any warning/errors/backtraces from the system logs
Workaround
Use zfsutils 2.1.12-1
Or recompile kernel with CONFIG_USER_NS=y and zfsutils 2.2.0-rc3 works normally.