fs_struct.h 755 B

1234567891011121314151617181920212223242526
  1. #ifndef _LINUX_FS_STRUCT_H
  2. #define _LINUX_FS_STRUCT_H
  3. #include <linux/path.h>
  4. struct fs_struct {
  5. atomic_t count; /* This usage count is used by check_unsafe_exec() for
  6. * security checking purposes - therefore it may not be
  7. * incremented, except by clone(CLONE_FS).
  8. */
  9. rwlock_t lock;
  10. int umask;
  11. struct path root, pwd;
  12. };
  13. extern struct kmem_cache *fs_cachep;
  14. extern void exit_fs(struct task_struct *);
  15. extern void set_fs_root(struct fs_struct *, struct path *);
  16. extern void set_fs_pwd(struct fs_struct *, struct path *);
  17. extern struct fs_struct *copy_fs_struct(struct fs_struct *);
  18. extern void put_fs_struct(struct fs_struct *);
  19. extern void daemonize_fs_struct(void);
  20. extern int unshare_fs_struct(void);
  21. #endif /* _LINUX_FS_STRUCT_H */