Lines Matching defs:fc
67 struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb);
68 bool delete = !time && fc->delete_stale;
171 static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args,
203 struct fuse_conn *fc;
207 fc = get_fuse_conn_super(dir->i_sb);
208 if (entry->d_time < atomic_read(&fc->epoch))
236 attr_version = fuse_get_attr_version(fm->fc);
238 fuse_lookup_init(fm->fc, &args, get_node_id(dir),
248 fuse_queue_forget(fm->fc, forget,
375 if (name->len > fm->fc->name_max)
384 attr_version = fuse_get_attr_version(fm->fc);
385 evict_ctr = fuse_get_evict_ctr(fm->fc);
387 fuse_lookup_init(fm->fc, &args, nodeid, name, outarg);
406 fuse_queue_forget(fm->fc, forget, outarg->nodeid, 1);
421 struct fuse_conn *fc;
431 fc = get_fuse_conn_super(dir->i_sb);
432 epoch = atomic_read(&fc->epoch);
560 struct fuse_conn *fc = get_fuse_conn(dir);
564 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns, kgid);
565 gid_t parent_gid = from_kgid(fc->user_ns, kgid);
592 struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb);
596 if (fc->init_security)
598 if (!err && fc->create_supp_group)
644 epoch = atomic_read(&fm->fc->epoch);
655 if (!fm->fc->dont_mask)
665 if (fm->fc->handle_killpriv_v2 && trunc &&
707 fuse_queue_forget(fm->fc, forget, outentry.nodeid, 1);
725 if (fm->fc->atomic_o_trunc && trunc)
748 struct fuse_conn *fc = get_fuse_conn(dir);
769 if (fc->no_create)
774 fc->no_create = 1;
806 epoch = atomic_read(&fm->fc->epoch);
839 fuse_queue_forget(fm->fc, forget, outarg.nodeid, 1);
889 if (!fm->fc->dont_mask)
914 struct fuse_conn *fc = get_fuse_conn(dir);
917 if (fc->no_tmpfile)
923 fc->no_tmpfile = 1;
936 if (!fm->fc->dont_mask)
993 struct fuse_conn *fc = get_fuse_conn(inode);
997 fi->attr_version = atomic64_inc_return(&fc->attr_version);
1115 struct fuse_conn *fc = get_fuse_conn(olddir);
1125 if (fc->no_rename2 || fc->minor < 23)
1133 fc->no_rename2 = 1;
1154 if (fm->fc->no_link)
1172 fm->fc->no_link = 1;
1174 if (fm->fc->no_link)
1184 struct fuse_conn *fc = get_fuse_conn(inode);
1185 vfsuid_t vfsuid = make_vfsuid(idmap, fc->user_ns,
1186 make_kuid(fc->user_ns, attr->uid));
1187 vfsgid_t vfsgid = make_vfsgid(idmap, fc->user_ns,
1188 make_kgid(fc->user_ns, attr->gid));
1243 u64 attr_version = fuse_get_attr_version(fm->fc);
1305 attr_version = fuse_get_attr_version(fm->fc);
1346 struct fuse_conn *fc = get_fuse_conn(inode);
1356 if (fc->no_statx)
1373 if (!fc->no_statx && (request_mask & ~STATX_BASIC_STATS)) {
1376 fc->no_statx = 1;
1401 int fuse_reverse_inval_entry(struct fuse_conn *fc, u64 parent_nodeid,
1409 parent = fuse_ilookup(fc, parent_nodeid, NULL);
1469 static inline bool fuse_permissible_uidgid(struct fuse_conn *fc)
1473 return (uid_eq(cred->euid, fc->user_id) &&
1474 uid_eq(cred->suid, fc->user_id) &&
1475 uid_eq(cred->uid, fc->user_id) &&
1476 gid_eq(cred->egid, fc->group_id) &&
1477 gid_eq(cred->sgid, fc->group_id) &&
1478 gid_eq(cred->gid, fc->group_id));
1494 bool fuse_allow_current_process(struct fuse_conn *fc)
1498 if (fc->allow_other)
1499 allow = current_in_userns(fc->user_ns);
1501 allow = fuse_permissible_uidgid(fc);
1521 * we have fc->default_permissions = 1 and access
1526 if (fm->fc->no_access)
1538 fm->fc->no_access = 1;
1569 struct fuse_conn *fc = get_fuse_conn(inode);
1576 if (!fuse_allow_current_process(fc))
1582 if (fc->default_permissions ||
1597 if (fc->default_permissions) {
1667 struct fuse_conn *fc = get_fuse_conn(inode);
1675 if (fc->cache_symlinks)
1742 struct fuse_conn *fc = get_fuse_conn(inode);
1748 if (fc->no_fsyncdir)
1754 fc->no_fsyncdir = 1;
1765 struct fuse_conn *fc = get_fuse_conn(file->f_mapping->host);
1768 if (fc->minor < 18)
1777 struct fuse_conn *fc = get_fuse_conn(file->f_mapping->host);
1779 if (fc->minor < 18)
1804 static void iattr_to_fattr(struct mnt_idmap *idmap, struct fuse_conn *fc,
1814 kuid_t fsuid = from_vfsuid(idmap, fc->user_ns, iattr->ia_vfsuid);
1817 arg->uid = from_kuid(fc->user_ns, fsuid);
1821 kgid_t fsgid = from_vfsgid(idmap, fc->user_ns, iattr->ia_vfsgid);
1824 arg->gid = from_kgid(fc->user_ns, fsgid);
1893 static void fuse_setattr_fill(struct fuse_conn *fc, struct fuse_args *args,
1924 if (fm->fc->minor >= 23) {
1933 fuse_setattr_fill(fm->fc, &args, inode, &inarg, &outarg);
1951 struct fuse_conn *fc = fm->fc;
1958 bool is_wb = fc->writeback_cache && S_ISREG(inode->i_mode);
1965 if (!fc->default_permissions)
1992 if (fc->atomic_o_trunc) {
2027 iattr_to_fattr(idmap, fc, attr, &inarg, trust_local_cmtime);
2035 if (fc->handle_killpriv_v2 && !S_ISDIR(inode->i_mode) &&
2042 inarg.lock_owner = fuse_lock_owner_id(fc, current->files);
2045 if (fc->handle_killpriv_v2 && !capable(CAP_FSETID))
2049 attr_version = fuse_get_attr_version(fm->fc);
2050 fuse_setattr_fill(fc, &args, inode, &inarg, &outarg);
2129 struct fuse_conn *fc = get_fuse_conn(inode);
2149 if (!fc->handle_killpriv && !fc->handle_killpriv_v2) {
2178 if (fc->posix_acl)
2193 struct fuse_conn *fc = get_fuse_conn(inode);
2198 if (!fuse_allow_current_process(fc)) {