diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2013-01-29 19:09:41 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2013-02-12 06:19:30 -0500 |
commit | f791f7c5e354870eaa5e31c4038c6723683283f1 (patch) | |
tree | c87d24cc220734f65ef7f54e0ed404f74dcfeea1 /include/net | |
parent | 97fc8b1ebf6a0fe4bb9c71a8e91a822c22c09bc5 (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.h | 10 |
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); | |||
220 | void p9_client_disconnect(struct p9_client *clnt); | 220 | void p9_client_disconnect(struct p9_client *clnt); |
221 | void p9_client_begin_disconnect(struct p9_client *clnt); | 221 | void p9_client_begin_disconnect(struct p9_client *clnt); |
222 | struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid, | 222 | struct 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); |
224 | struct p9_fid *p9_client_walk(struct p9_fid *oldfid, uint16_t nwname, | 224 | struct p9_fid *p9_client_walk(struct p9_fid *oldfid, uint16_t nwname, |
225 | char **wnames, int clone); | 225 | char **wnames, int clone); |
226 | int p9_client_open(struct p9_fid *fid, int mode); | 226 | int p9_client_open(struct p9_fid *fid, int mode); |
227 | int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode, | 227 | int p9_client_fcreate(struct p9_fid *fid, char *name, u32 perm, int mode, |
228 | char *extension); | 228 | char *extension); |
229 | int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, char *newname); | 229 | int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, char *newname); |
230 | int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, gid_t gid, | 230 | int p9_client_symlink(struct p9_fid *fid, char *name, char *symname, kgid_t gid, |
231 | struct p9_qid *qid); | 231 | struct p9_qid *qid); |
232 | int p9_client_create_dotl(struct p9_fid *ofid, char *name, u32 flags, u32 mode, | 232 | int 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); |
234 | int p9_client_clunk(struct p9_fid *fid); | 234 | int p9_client_clunk(struct p9_fid *fid); |
235 | int p9_client_fsync(struct p9_fid *fid, int datasync); | 235 | int p9_client_fsync(struct p9_fid *fid, int datasync); |
236 | int p9_client_remove(struct p9_fid *fid); | 236 | int 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 | ||
252 | int p9_client_mknod_dotl(struct p9_fid *oldfid, char *name, int mode, | 252 | int 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 *); |
254 | int p9_client_mkdir_dotl(struct p9_fid *fid, char *name, int mode, | 254 | int 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 *); |
256 | int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status); | 256 | int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status); |
257 | int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *fl); | 257 | int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *fl); |
258 | struct p9_req_t *p9_tag_lookup(struct p9_client *, u16); | 258 | struct p9_req_t *p9_tag_lookup(struct p9_client *, u16); |