diff options
Diffstat (limited to 'fs/fs_struct.c')
| -rw-r--r-- | fs/fs_struct.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/fs_struct.c b/fs/fs_struct.c index 41cff72b377b..6ac219338670 100644 --- a/fs/fs_struct.c +++ b/fs/fs_struct.c | |||
| @@ -138,6 +138,12 @@ int unshare_fs_struct(void) | |||
| 138 | } | 138 | } |
| 139 | EXPORT_SYMBOL_GPL(unshare_fs_struct); | 139 | EXPORT_SYMBOL_GPL(unshare_fs_struct); |
| 140 | 140 | ||
| 141 | int current_umask(void) | ||
| 142 | { | ||
| 143 | return current->fs->umask; | ||
| 144 | } | ||
| 145 | EXPORT_SYMBOL(current_umask); | ||
| 146 | |||
| 141 | /* to be mentioned only in INIT_TASK */ | 147 | /* to be mentioned only in INIT_TASK */ |
| 142 | struct fs_struct init_fs = { | 148 | struct fs_struct init_fs = { |
| 143 | .users = 1, | 149 | .users = 1, |
