Home
last modified time | relevance | path

Searched refs:iap (Results 1 – 6 of 6) sorted by relevance

/fs/nfsd/
Dvfs.c328 nfsd_sanitize_attrs(struct inode *inode, struct iattr *iap) in nfsd_sanitize_attrs() argument
331 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
332 iap->ia_mode &= S_IALLUGO; in nfsd_sanitize_attrs()
333 iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); in nfsd_sanitize_attrs()
338 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs()
339 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs()
340 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
342 iap->ia_mode &= ~S_ISUID; in nfsd_sanitize_attrs()
343 if (iap->ia_mode & S_IXGRP) in nfsd_sanitize_attrs()
344 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
[all …]
Dnfsxdr.c90 decode_sattr(__be32 *p, struct iattr *iap) in decode_sattr() argument
94 iap->ia_valid = 0; in decode_sattr()
101 iap->ia_valid |= ATTR_MODE; in decode_sattr()
102 iap->ia_mode = tmp; in decode_sattr()
105 iap->ia_uid = make_kuid(&init_user_ns, tmp); in decode_sattr()
106 if (uid_valid(iap->ia_uid)) in decode_sattr()
107 iap->ia_valid |= ATTR_UID; in decode_sattr()
110 iap->ia_gid = make_kgid(&init_user_ns, tmp); in decode_sattr()
111 if (gid_valid(iap->ia_gid)) in decode_sattr()
112 iap->ia_valid |= ATTR_GID; in decode_sattr()
[all …]
Dnfs3xdr.c99 decode_sattr3(__be32 *p, struct iattr *iap) in decode_sattr3() argument
103 iap->ia_valid = 0; in decode_sattr3()
106 iap->ia_valid |= ATTR_MODE; in decode_sattr3()
107 iap->ia_mode = ntohl(*p++); in decode_sattr3()
110 iap->ia_uid = make_kuid(&init_user_ns, ntohl(*p++)); in decode_sattr3()
111 if (uid_valid(iap->ia_uid)) in decode_sattr3()
112 iap->ia_valid |= ATTR_UID; in decode_sattr3()
115 iap->ia_gid = make_kgid(&init_user_ns, ntohl(*p++)); in decode_sattr3()
116 if (gid_valid(iap->ia_gid)) in decode_sattr3()
117 iap->ia_valid |= ATTR_GID; in decode_sattr3()
[all …]
Dnfsproc.c65 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr() local
88 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr()
89 iap->ia_mtime.tv_sec == iap->ia_atime.tv_sec) { in nfsd_proc_setattr()
97 time_t delta = iap->ia_atime.tv_sec - get_seconds(); in nfsd_proc_setattr()
106 setattr_prepare(fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr()
112 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr()
116 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr()
/fs/nfs/
Dnfs4xdr.c1015 static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, in encode_attrs() argument
1034 if ((iap->ia_valid & ATTR_SIZE) && (attrmask[0] & FATTR4_WORD0_SIZE)) { in encode_attrs()
1038 if (iap->ia_valid & ATTR_MODE) { in encode_attrs()
1047 if ((iap->ia_valid & ATTR_UID) && (attrmask[1] & FATTR4_WORD1_OWNER)) { in encode_attrs()
1048 owner_namelen = nfs_map_uid_to_name(server, iap->ia_uid, owner_name, IDMAP_NAMESZ); in encode_attrs()
1051 from_kuid(&init_user_ns, iap->ia_uid)); in encode_attrs()
1060 if ((iap->ia_valid & ATTR_GID) && in encode_attrs()
1062 owner_grouplen = nfs_map_gid_to_group(server, iap->ia_gid, owner_group, IDMAP_NAMESZ); in encode_attrs()
1065 from_kgid(&init_user_ns, iap->ia_gid)); in encode_attrs()
1074 if (iap->ia_valid & ATTR_ATIME_SET) { in encode_attrs()
[all …]
Dnfs4proc.c2965 truncate = (arg->iap->ia_valid & ATTR_SIZE) ? true : false; in _nfs4_do_setattr()
3008 .iap = sattr, in nfs4_do_setattr()
5360 .iap = &sattr, in _nfs4_do_set_security_label()