]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- fix vserver patch auto/th/kernel-4.1-4.1.37-2
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Dec 2016 20:39:05 +0000 (21:39 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Dec 2016 20:39:05 +0000 (21:39 +0100)
- rel 2

kernel-vserver-2.3.patch
kernel.spec

index 2f9f4987372af3a397609fb6cf0937c0e41a7307..25df404832b4314716709af375e749ce09540e19 100644 (file)
@@ -1481,8 +1481,8 @@ diff -NurpP --minimal linux-4.1.27/fs/attr.c linux-4.1.27-vs2.3.8.5.2/fs/attr.c
 +#include <linux/vs_tag.h>
  
  /**
-  * inode_change_ok - check if attribute changes to an inode are allowed
-@@ -77,6 +80,10 @@ int inode_change_ok(const struct inode *
+  * setattr_prepare - check if attribute changes to a dentry are allowed
+@@ -77,6 +80,10 @@ int setattr_prepare(struct dentry *dentry
                        return -EPERM;
        }
  
@@ -1490,9 +1490,9 @@ diff -NurpP --minimal linux-4.1.27/fs/attr.c linux-4.1.27-vs2.3.8.5.2/fs/attr.c
 +      if (dx_permission(inode, MAY_WRITE))
 +              return -EACCES;
 +
-       return 0;
- }
- EXPORT_SYMBOL(inode_change_ok);
+ kill_priv:
+       /* User has permission for the change */
+       if (ia_valid & ATTR_KILL_PRIV) {
 @@ -147,6 +154,8 @@ void setattr_copy(struct inode *inode, c
                inode->i_uid = attr->ia_uid;
        if (ia_valid & ATTR_GID)
@@ -18557,7 +18557,7 @@ diff -NurpP --minimal linux-4.1.27/kernel/vserver/inode.c linux-4.1.27-vs2.3.8.5
 +              if (in->i_op && in->i_op->setattr)
 +                      error = in->i_op->setattr(de, &attr);
 +              else {
-+                      error = inode_change_ok(in, &attr);
++                      error = setattr_prepare(de, &attr);
 +                      if (!error) {
 +                              setattr_copy(in, &attr);
 +                              mark_inode_dirty(in);
index a65a9d891b471e7c29def2bf7667697ae729f23e..07292128759b567cc9dfda3b26d37389e569274a 100644 (file)
@@ -71,7 +71,7 @@
 %define                have_pcmcia     0
 %endif
 
-%define                rel             1
+%define                rel             2
 %define                basever         4.1
 %define                postver         .37
 
This page took 2.381362 seconds and 4 git commands to generate.