/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/user_namespace/ |
H A D | user_namespace_002.ksh | 43 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 D | user_namespace_003.ksh | 40 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 D | spl-zone.c | 68 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 D | kernel-tmpfile.m4 | 25 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 D | kernel-generic_fillattr.m4 | 18 struct user_namespace *userns = NULL; 21 generic_fillattr(userns, in, k);
|
H A D | kernel-setattr-prepare.m4 | 26 struct user_namespace *userns = NULL; 28 setattr_prepare(userns, dentry, attr);
|
H A D | kernel-acl.m4 | 118 static int set_acl_fn(struct user_namespace *userns, 130 static int set_acl_fn(struct user_namespace *userns,
|
H A D | kernel-mknod.m4 | 28 static int tmp_mknod(struct user_namespace *userns,
|
H A D | kernel-symlink.m4 | 26 static int tmp_symlink(struct user_namespace *userns,
|
H A D | kernel-inode-permission.m4 | 28 static int test_permission(struct user_namespace *userns,
|
H A D | kernel-inode-setattr.m4 | 31 struct user_namespace *userns,
|
H A D | kernel-inode-create.m4 | 28 static int inode_create(struct user_namespace *userns,
|
H A D | kernel-inode-getattr.m4 | 32 struct user_namespace *userns,
|
H A D | kernel-mkdir.m4 | 29 static int mkdir(struct user_namespace *userns,
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_inode.c | 281 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 D | zpl_xattr.c | 1040 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 D | zpl.h | 71 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,
|