Home
last modified time | relevance | path

Searched refs:userns (Results 1 – 17 of 17) sorted by relevance

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/user_namespace/
H A Duser_namespace_002.ksh43 log_must zfs unzone $proc_ns_added $TESTPOOL/userns
50 log_must zfs destroy -r $TESTPOOL/userns
58 log_must zfs create -o zoned=on $TESTPOOL/userns
59 log_must zfs create -o zoned=on $TESTPOOL/userns/testds
87 log_must zfs zone $proc_ns $TESTPOOL/userns
95 log_must $NSENTER zfs create $TESTPOOL/userns/created
100 log_must $NSENTER df -h /$TESTPOOL/userns/created
101 log_must $NSENTER mkfile 8192 /$TESTPOOL/userns/created/testfile
102 uidgid=$($NSENTER stat -c '%u %g' /$TESTPOOL/userns/created/testfile)
106 log_must $NSENTER zfs destroy $TESTPOOL/userns/created
[all …]
H A Duser_namespace_003.ksh40 log_must zfs unzone $proc_ns_added $TESTPOOL/userns
48 log_must zfs destroy -r $TESTPOOL/userns
58 log_must zfs create -o zoned=on $TESTPOOL/userns
89 log_must zfs zone $proc_ns $TESTPOOL/userns
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-zone.c68 user_ns_get(int fd, struct user_namespace **userns) in user_ns_get() argument
90 *userns = container_of(ns, struct user_namespace, ns); in user_ns_get()
168 struct user_namespace *userns; in zone_dataset_attach() local
178 if ((error = user_ns_get(userns_fd, &userns)) != 0) in zone_dataset_attach()
182 zds = zone_datasets_lookup(user_ns_zoneid(userns)); in zone_dataset_attach()
187 zds->zds_userns = userns; in zone_dataset_attach()
192 get_user_ns(userns); in zone_dataset_attach()
220 struct user_namespace *userns; in zone_dataset_detach() local
230 if ((error = user_ns_get(userns_fd, &userns)) != 0) in zone_dataset_detach()
234 zds = zone_datasets_lookup(user_ns_zoneid(userns)); in zone_dataset_detach()
[all …]
/freebsd/sys/contrib/openzfs/config/
H A Dkernel-tmpfile.m425 static int tmpfile(struct user_namespace *userns,
35 dnl # add support for userns parameter to tmpfile
39 static int tmpfile(struct user_namespace *userns,
66 AC_DEFINE(HAVE_TMPFILE_USERNS, 1, [i_op->tmpfile() has userns])
70 AC_DEFINE(HAVE_TMPFILE_USERNS, 1, [i_op->tmpfile() has userns])
H A Dkernel-generic_fillattr.m418 struct user_namespace *userns = NULL;
21 generic_fillattr(userns, in, k);
H A Dkernel-setattr-prepare.m426 struct user_namespace *userns = NULL;
28 setattr_prepare(userns, dentry, attr);
H A Dkernel-acl.m4118 static int set_acl_fn(struct user_namespace *userns,
130 static int set_acl_fn(struct user_namespace *userns,
H A Dkernel-mknod.m428 static int tmp_mknod(struct user_namespace *userns,
H A Dkernel-symlink.m426 static int tmp_symlink(struct user_namespace *userns,
H A Dkernel-inode-permission.m428 static int test_permission(struct user_namespace *userns,
H A Dkernel-inode-setattr.m431 struct user_namespace *userns,
H A Dkernel-inode-create.m428 static int inode_create(struct user_namespace *userns,
H A Dkernel-inode-getattr.m432 struct user_namespace *userns,
H A Dkernel-mkdir.m429 static int mkdir(struct user_namespace *userns,
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_inode.c281 zpl_tmpfile(struct mnt_idmap *userns, struct inode *dir, in zpl_tmpfile() argument
284 zpl_tmpfile(struct user_namespace *userns, struct inode *dir, in zpl_tmpfile()
288 zpl_tmpfile(struct user_namespace *userns, struct inode *dir, in zpl_tmpfile()
301 zidmap_t *userns = kcred->user_ns; in zpl_tmpfile() local
312 zpl_vap_init(vap, dir, mode, cr, userns); in zpl_tmpfile()
315 error = -zfs_tmpfile(dir, vap, 0, mode, &ip, cr, 0, NULL, userns); in zpl_tmpfile()
H A Dzpl_xattr.c1040 zpl_set_acl(struct user_namespace *userns, struct inode *ip, in zpl_set_acl() argument
1043 zpl_set_acl(struct mnt_idmap *userns, struct dentry *dentry, in zpl_set_acl()
1046 zpl_set_acl(struct user_namespace *userns, struct dentry *dentry, in zpl_set_acl()
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzpl.h71 extern int zpl_set_acl(struct user_namespace *userns, struct inode *ip,
74 extern int zpl_set_acl(struct user_namespace *userns, struct dentry *dentry,