]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/fs_struct.h
[PATCH] permission checks for chdir need special treatment only on the last step
[net-next-2.6.git] / include / linux / fs_struct.h
CommitLineData
1da177e4
LT
1#ifndef _LINUX_FS_STRUCT_H
2#define _LINUX_FS_STRUCT_H
3
6ac08c39 4#include <linux/path.h>
1da177e4
LT
5
6struct fs_struct {
7 atomic_t count;
8 rwlock_t lock;
9 int umask;
6ac08c39 10 struct path root, pwd, altroot;
1da177e4
LT
11};
12
13#define INIT_FS { \
14 .count = ATOMIC_INIT(1), \
15 .lock = RW_LOCK_UNLOCKED, \
16 .umask = 0022, \
17}
18
aa362a83
CL
19extern struct kmem_cache *fs_cachep;
20
1da177e4
LT
21extern void exit_fs(struct task_struct *);
22extern void set_fs_altroot(void);
ac748a09
JB
23extern void set_fs_root(struct fs_struct *, struct path *);
24extern void set_fs_pwd(struct fs_struct *, struct path *);
1da177e4
LT
25extern struct fs_struct *copy_fs_struct(struct fs_struct *);
26extern void put_fs_struct(struct fs_struct *);
27
28#endif /* _LINUX_FS_STRUCT_H */