Home
last modified time | relevance | path

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

/fs/nfsd/
Dvfs.c302 nfsd_sanitize_attrs(struct inode *inode, struct iattr *iap) in nfsd_sanitize_attrs() argument
305 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
306 iap->ia_mode &= S_IALLUGO; in nfsd_sanitize_attrs()
307 iap->ia_mode |= (inode->i_mode & ~S_IALLUGO); in nfsd_sanitize_attrs()
312 ((iap->ia_valid & ATTR_UID) || (iap->ia_valid & ATTR_GID))) { in nfsd_sanitize_attrs()
313 iap->ia_valid |= ATTR_KILL_PRIV; in nfsd_sanitize_attrs()
314 if (iap->ia_valid & ATTR_MODE) { in nfsd_sanitize_attrs()
316 iap->ia_mode &= ~S_ISUID; in nfsd_sanitize_attrs()
317 if (iap->ia_mode & S_IXGRP) in nfsd_sanitize_attrs()
318 iap->ia_mode &= ~S_ISGID; in nfsd_sanitize_attrs()
[all …]
Dnfsxdr.c89 decode_sattr(__be32 *p, struct iattr *iap) in decode_sattr() argument
93 iap->ia_valid = 0; in decode_sattr()
100 iap->ia_valid |= ATTR_MODE; in decode_sattr()
101 iap->ia_mode = tmp; in decode_sattr()
104 iap->ia_uid = make_kuid(&init_user_ns, tmp); in decode_sattr()
105 if (uid_valid(iap->ia_uid)) in decode_sattr()
106 iap->ia_valid |= ATTR_UID; in decode_sattr()
109 iap->ia_gid = make_kgid(&init_user_ns, tmp); in decode_sattr()
110 if (gid_valid(iap->ia_gid)) in decode_sattr()
111 iap->ia_valid |= ATTR_GID; in decode_sattr()
[all …]
Dnfs3xdr.c98 decode_sattr3(__be32 *p, struct iattr *iap) in decode_sattr3() argument
102 iap->ia_valid = 0; in decode_sattr3()
105 iap->ia_valid |= ATTR_MODE; in decode_sattr3()
106 iap->ia_mode = ntohl(*p++); in decode_sattr3()
109 iap->ia_uid = make_kuid(&init_user_ns, ntohl(*p++)); in decode_sattr3()
110 if (uid_valid(iap->ia_uid)) in decode_sattr3()
111 iap->ia_valid |= ATTR_UID; in decode_sattr3()
114 iap->ia_gid = make_kgid(&init_user_ns, ntohl(*p++)); in decode_sattr3()
115 if (gid_valid(iap->ia_gid)) in decode_sattr3()
116 iap->ia_valid |= ATTR_GID; in decode_sattr3()
[all …]
Dnfsproc.c62 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr() local
85 if ((iap->ia_valid & BOTH_TIME_SET) == BOTH_TIME_SET && in nfsd_proc_setattr()
86 iap->ia_mtime.tv_sec == iap->ia_atime.tv_sec) { in nfsd_proc_setattr()
94 time_t delta = iap->ia_atime.tv_sec - get_seconds(); in nfsd_proc_setattr()
105 inode_change_ok(inode, iap) != 0) { in nfsd_proc_setattr()
111 iap->ia_valid &= ~BOTH_TIME_SET; in nfsd_proc_setattr()
115 nfserr = nfsd_setattr(rqstp, fhp, iap, 0, (time_t)0); in nfsd_proc_setattr()
/fs/nfs/
Dnfs4xdr.c995 static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, in encode_attrs() argument
1016 if (iap->ia_valid & ATTR_SIZE) { in encode_attrs()
1020 if (iap->ia_valid & ATTR_MODE) { in encode_attrs()
1024 if (iap->ia_valid & ATTR_UID) { in encode_attrs()
1025 owner_namelen = nfs_map_uid_to_name(server, iap->ia_uid, owner_name, IDMAP_NAMESZ); in encode_attrs()
1028 from_kuid(&init_user_ns, iap->ia_uid)); in encode_attrs()
1037 if (iap->ia_valid & ATTR_GID) { in encode_attrs()
1038 owner_grouplen = nfs_map_gid_to_group(server, iap->ia_gid, owner_group, IDMAP_NAMESZ); in encode_attrs()
1041 from_kgid(&init_user_ns, iap->ia_gid)); in encode_attrs()
1049 if (iap->ia_valid & ATTR_ATIME_SET) { in encode_attrs()
[all …]
Dnfs4proc.c2451 .iap = sattr, in _nfs4_do_setattr()
4739 .iap = &sattr, in _nfs4_do_set_security_label()