The commit is pushed to "branch-rh7-3.10.0-514.26.1.vz7.33.x-ovz" and will 
appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.26.1.vz7.33.12
------>
commit 8aa07c85143d41b44dcb27323ca538ad3129d049
Author: Konstantin Khorenko <[email protected]>
Date:   Fri Jul 21 11:56:24 2017 +0400

    Revert "ms/vfs: open() with O_CREAT should not create inodes with unknown 
ids"
    
    This reverts commit af8508ce3639a3cfc54552cad18789a83bc00636.
    
    Temporary revert due to
    https://jira.sw.ru/browse/PSBM-68599
    
    Signed-off-by: Konstantin Khorenko <[email protected]>
---
 fs/namei.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index 2b500c1..42a0e6b 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2800,16 +2800,10 @@ static inline int open_to_namei_flags(int flag)
 
 static int may_o_create(struct path *dir, struct dentry *dentry, umode_t mode)
 {
-       struct user_namespace *s_user_ns;
        int error = security_path_mknod(dir, dentry, mode, 0);
        if (error)
                return error;
 
-       s_user_ns = dir->dentry->d_sb->s_user_ns;
-       if (!kuid_has_mapping(s_user_ns, current_fsuid()) ||
-           !kgid_has_mapping(s_user_ns, current_fsgid()))
-               return -EOVERFLOW;
-
        error = inode_permission(dir->dentry->d_inode, MAY_WRITE | MAY_EXEC);
        if (error)
                return error;
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to