aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-01-29 19:09:41 -0500
committerEric W. Biederman <ebiederm@xmission.com>2013-02-12 06:19:30 -0500
commitf791f7c5e354870eaa5e31c4038c6723683283f1 (patch)
treec87d24cc220734f65ef7f54e0ed404f74dcfeea1 /include/net
parent97fc8b1ebf6a0fe4bb9c71a8e91a822c22c09bc5 (diff)
9p: Transmit kuid and kgid values
Modify the p9_client_rpc format specifiers of every function that directly transmits a uid or a gid from 'd' to 'u' or 'g' as appropriate. Modify those same functions to take kuid_t and kgid_t parameters instead of uid_t and gid_t parameters. Cc: Eric Van Hensbergen <ericvh@gmail.com> Cc: Ron Minnich <rminnich@gmail.com> Cc: Latchesar Ionkov <lucho@ionkov.net> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/9p/client.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index fc9b90b0c052..6b031ab6e4db 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -220,17 +220,17 @@ void p9_client_destroy(struct p9_client *clnt);
220void p9_client_disconnect(struct p9_client *clnt); 220void p9_client_disconnect(struct p9_client *clnt);
221void p9_client_begin_disconnect(struct p9_client *clnt); 221void p9_client_begin_disconnect(struct p9_client *clnt);
222struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid, 222struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid,
223 char *uname, u32 n_uname, char *aname); 223 char *uname, kuid_t n_uname, char *aname);
224struct p9_fid *p9_client_walk(struct p9_fid *oldfid, uint16_t nwname, 224struct p9_fid *p9_client_walk(struct p9_fid *oldfid, uint16_t nwname,
225 char **wnames, int clone); 225 char **wnames, int clone);
226int p9_client_open(struct p9_fid *fid, int mode); 226int p9_client_open(struct p9_fid *fid, int mode);
227int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode, 227int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode,
228 char *extension); 228 char *extension);
229int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, char *newname); 229int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, char *newname);
230int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, gid_t gid, 230int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, kgid_t gid,
231 struct p9_qid *qid); 231 struct p9_qid *qid);
232int p9_client_create_dotl(struct p9_fid *ofid, char *name, u32 flags, u32 mode, 232int p9_client_create_dotl(struct p9_fid *ofid, char *name, u32 flags, u32 mode,
233 gid_t gid, struct p9_qid *qid); 233 kgid_t gid, struct p9_qid *qid);
234int p9_client_clunk(struct p9_fid *fid); 234int p9_client_clunk(struct p9_fid *fid);
235int p9_client_fsync(struct p9_fid *fid, int datasync); 235int p9_client_fsync(struct p9_fid *fid, int datasync);
236int p9_client_remove(struct p9_fid *fid); 236int p9_client_remove(struct p9_fid *fid);
@@ -250,9 +250,9 @@ struct p9_stat_dotl *p9_client_getattr_dotl(struct p9_fid *fid,
250 u64 request_mask); 250 u64 request_mask);
251 251
252int p9_client_mknod_dotl(struct p9_fid *oldfid, char *name, int mode, 252int p9_client_mknod_dotl(struct p9_fid *oldfid, char *name, int mode,
253 dev_t rdev, gid_t gid, struct p9_qid *); 253 dev_t rdev, kgid_t gid, struct p9_qid *);
254int p9_client_mkdir_dotl(struct p9_fid *fid, char *name, int mode, 254int p9_client_mkdir_dotl(struct p9_fid *fid, char *name, int mode,
255 gid_t gid, struct p9_qid *); 255 kgid_t gid, struct p9_qid *);
256int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status); 256int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status);
257int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *fl); 257int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *fl);
258struct p9_req_t *p9_tag_lookup(struct p9_client *, u16); 258struct p9_req_t *p9_tag_lookup(struct p9_client *, u16);