X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=fs%2Ffs_struct.c;h=eee059052db5b723e690fc5c1892062540c35c2b;hb=806892e9e12e731a0ca76c8f62ad95cf8eea9614;hp=41cff72b377b450273876cdd03a850789a409560;hpb=498052bba55ecaff58db6a1436b0e25bfd75a7ff;p=safe%2Fjmp%2Flinux-2.6 diff --git a/fs/fs_struct.c b/fs/fs_struct.c index 41cff72..eee0590 100644 --- a/fs/fs_struct.c +++ b/fs/fs_struct.c @@ -3,6 +3,7 @@ #include #include #include +#include /* * Replace the fs->{rootmnt,root} with {mnt,dentry}. Put the old values. @@ -138,6 +139,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,