mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
New helper - current_umask()
current->fs->umask is what most of fs_struct users are doing. Put that into a helper function. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f1191b50ec
commit
ce3b0f8d5c
26 changed files with 39 additions and 31 deletions
|
@ -138,6 +138,12 @@ int unshare_fs_struct(void)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(unshare_fs_struct);
|
||||
|
||||
int current_umask(void)
|
||||
{
|
||||
return current->fs->umask;
|
||||
}
|
||||
EXPORT_SYMBOL(current_umask);
|
||||
|
||||
/* to be mentioned only in INIT_TASK */
|
||||
struct fs_struct init_fs = {
|
||||
.users = 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue