Version increased to unfs3_0.9.22+dfsg-1maemo3
[unfs3] / unfs3 / user.h
1 /*
2  * UNFS3 user and group id handling
3  * (C) 2003, Pascal Schmidt
4  * see file LICENSE for license details
5  */
6
7 #ifndef UNFS3_USER_H
8 #define UNFS3_USER_H
9
10 #include "backend.h"
11
12 int get_uid(struct svc_req *req);
13
14 int mangle_uid(int id);
15 int mangle_gid(int id);
16
17 int is_owner(int owner, struct svc_req *req);
18 int has_group(int group, struct svc_req *req);
19
20 void get_squash_ids(void);
21
22 void switch_to_root();
23 void switch_user(struct svc_req *req);
24
25 void read_executable(struct svc_req *req, backend_statstruct buf);
26 void read_by_owner(struct svc_req *req, backend_statstruct buf);
27 void write_by_owner(struct svc_req *req, backend_statstruct buf);
28
29 #endif