fs: add mode_strip_sgid() helper
[sfrench/cifs-2.6.git] / include / linux / fs.h
index 9ad5e3520fae577c2a216859aba20f8d26241172..50642668c60fabbadef8fc8b8d8c5b4158ab46b6 100644 (file)
@@ -1903,6 +1903,8 @@ extern long compat_ptr_ioctl(struct file *file, unsigned int cmd,
 void inode_init_owner(struct user_namespace *mnt_userns, struct inode *inode,
                      const struct inode *dir, umode_t mode);
 extern bool may_open_dev(const struct path *path);
+umode_t mode_strip_sgid(struct user_namespace *mnt_userns,
+                       const struct inode *dir, umode_t mode);
 
 /*
  * This is the "filldir" function type, used by readdir() to let