-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathuser.h
More file actions
29 lines (20 loc) · 656 Bytes
/
Copy pathuser.h
File metadata and controls
29 lines (20 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* UNFS3 user and group id handling
* (C) 2003, Pascal Schmidt
* see file LICENSE for license details
*/
#ifndef UNFS3_USER_H
#define UNFS3_USER_H
#include "backend.h"
int get_uid(struct svc_req *req);
int mangle_uid(int id);
int mangle_gid(int id);
int is_owner(int owner, struct svc_req *req);
int has_group(int group, struct svc_req *req);
void get_squash_ids(void);
void switch_to_root(void);
void switch_user(struct svc_req *req);
void read_executable(struct svc_req *req, backend_statstruct buf);
void read_by_owner(struct svc_req *req, backend_statstruct buf);
void write_by_owner(struct svc_req *req, backend_statstruct buf);
#endif