Lines Matching refs:sattr

99 			    struct nfs_fattr *fattr, struct iattr *sattr,
115 struct iattr *sattr, struct nfs4_label *label) in nfs4_label_init_security() argument
130 err = security_dentry_init_security(dentry, sattr->ia_mode, in nfs4_label_init_security()
154 struct iattr *sattr, struct nfs4_label *l) in nfs4_label_init_security() argument
1266 struct iattr *sattr; member
1390 if (c->sattr != NULL && c->sattr->ia_valid != 0) { in nfs4_opendata_alloc()
1392 memcpy(&p->attrs, c->sattr, sizeof(p->attrs)); in nfs4_opendata_alloc()
3001 struct iattr *sattr, struct nfs4_label **label) in nfs4_exclusive_attrset() argument
3015 sattr->ia_valid : 0; in nfs4_exclusive_attrset()
3018 if (sattr->ia_valid & ATTR_ATIME_SET) in nfs4_exclusive_attrset()
3025 if (sattr->ia_valid & ATTR_MTIME_SET) in nfs4_exclusive_attrset()
3138 struct iattr *sattr = c->sattr; in _nfs4_do_open() local
3180 unsigned attrs = nfs4_exclusive_attrset(opendata, sattr, &label); in _nfs4_do_open()
3186 unsigned ia_old = sattr->ia_valid; in _nfs4_do_open()
3188 sattr->ia_valid = attrs; in _nfs4_do_open()
3191 opendata->o_res.f_attr, sattr, in _nfs4_do_open()
3194 nfs_setattr_update_inode(state->inode, sattr, in _nfs4_do_open()
3198 sattr->ia_valid = ia_old; in _nfs4_do_open()
3224 struct iattr *sattr, in nfs4_do_open() argument
3235 .sattr = sattr, in nfs4_do_open()
3355 struct nfs_fattr *fattr, struct iattr *sattr, in nfs4_do_setattr() argument
3363 .iap = sattr, in nfs4_do_setattr()
3380 if (sattr->ia_valid & (ATTR_MODE | ATTR_KILL_SUID | ATTR_KILL_SGID)) in nfs4_do_setattr()
3382 if (sattr->ia_valid & (ATTR_UID | ATTR_GID)) in nfs4_do_setattr()
3392 if (!(sattr->ia_valid & ATTR_SIZE)) { in nfs4_do_setattr()
3401 if (sattr->ia_valid & ATTR_OPEN) in nfs4_do_setattr()
4364 struct iattr *sattr) in nfs4_proc_setattr() argument
4372 sattr->ia_valid & ATTR_SIZE && in nfs4_proc_setattr()
4373 sattr->ia_size < i_size_read(inode)) in nfs4_proc_setattr()
4379 if (sattr->ia_valid & ATTR_OPEN) in nfs4_proc_setattr()
4380 sattr->ia_valid &= ~(ATTR_MTIME|ATTR_CTIME); in nfs4_proc_setattr()
4383 if ((sattr->ia_valid & ~(ATTR_FILE|ATTR_OPEN)) == 0) in nfs4_proc_setattr()
4387 if (sattr->ia_valid & ATTR_FILE) { in nfs4_proc_setattr()
4389 ctx = nfs_file_open_context(sattr->ia_file); in nfs4_proc_setattr()
4395 if ((sattr->ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID)) != 0) in nfs4_proc_setattr()
4398 status = nfs4_do_setattr(inode, cred, fattr, sattr, ctx, NULL); in nfs4_proc_setattr()
4400 nfs_setattr_update_inode(inode, sattr, fattr); in nfs4_proc_setattr()
4693 nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, in nfs4_proc_create() argument
4706 ilabel = nfs4_label_init_security(dir, dentry, sattr, &l); in nfs4_proc_create()
4709 sattr->ia_mode &= ~current_umask(); in nfs4_proc_create()
4710 state = nfs4_do_open(dir, ctx, flags, sattr, ilabel, NULL); in nfs4_proc_create()
4958 const struct qstr *name, struct iattr *sattr, u32 ftype) in nfs4_alloc_createdata() argument
4976 data->arg.attrs = sattr; in nfs4_alloc_createdata()
5016 struct page *page, unsigned int len, struct iattr *sattr, in _nfs4_proc_symlink() argument
5026 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4LNK); in _nfs4_proc_symlink()
5043 struct page *page, unsigned int len, struct iattr *sattr) in nfs4_proc_symlink() argument
5051 label = nfs4_label_init_security(dir, dentry, sattr, &l); in nfs4_proc_symlink()
5054 err = _nfs4_proc_symlink(dir, dentry, page, len, sattr, label); in nfs4_proc_symlink()
5065 struct iattr *sattr, struct nfs4_label *label) in _nfs4_proc_mkdir() argument
5070 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4DIR); in _nfs4_proc_mkdir()
5083 struct iattr *sattr) in nfs4_proc_mkdir() argument
5092 label = nfs4_label_init_security(dir, dentry, sattr, &l); in nfs4_proc_mkdir()
5095 sattr->ia_mode &= ~current_umask(); in nfs4_proc_mkdir()
5097 err = _nfs4_proc_mkdir(dir, dentry, sattr, label); in nfs4_proc_mkdir()
5167 struct iattr *sattr, struct nfs4_label *label, dev_t rdev) in _nfs4_proc_mknod() argument
5170 int mode = sattr->ia_mode; in _nfs4_proc_mknod()
5173 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4SOCK); in _nfs4_proc_mknod()
5202 struct iattr *sattr, dev_t rdev) in nfs4_proc_mknod() argument
5211 label = nfs4_label_init_security(dir, dentry, sattr, &l); in nfs4_proc_mknod()
5214 sattr->ia_mode &= ~current_umask(); in nfs4_proc_mknod()
5216 err = _nfs4_proc_mknod(dir, dentry, sattr, label, rdev); in nfs4_proc_mknod()
6182 struct iattr sattr = {0}; in _nfs4_do_set_security_label() local
6187 .iap = &sattr, in _nfs4_do_set_security_label()