Created
July 20, 2016 16:43
-
-
Save AlexanderS/bd65ca5ffae0e11604f0272ddc53a03b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur linux-3.18.21-vs2.3.7.4/fs/namei.c linux-3.18.21-iattr_write/fs/namei.c | |
--- linux-3.18.21-vs2.3.7.4/fs/namei.c 2016-07-20 18:41:54.384005807 +0200 | |
+++ linux-3.18.21-iattr_write/fs/namei.c 2016-07-20 18:42:57.388006326 +0200 | |
@@ -327,7 +327,8 @@ | |
if (vx_check(0, VS_ADMIN | VS_WATCH_P) || | |
vx_flags(VXF_STATE_SETUP, 0) || | |
- (de && (de->vx_flags & IATTR_WRITE))) | |
+ (vx_flags(VXF_PROC_WRITE, 0) && | |
+ de && (de->vx_flags & IATTR_WRITE))) | |
return 0; | |
pid = PROC_I(inode)->pid; | |
diff -ur linux-3.18.21-vs2.3.7.4/include/uapi/vserver/context.h linux-3.18.21-iattr_write/include/uapi/vserver/context.h | |
--- linux-3.18.21-vs2.3.7.4/include/uapi/vserver/context.h 2016-07-19 23:40:13.092001276 +0200 | |
+++ linux-3.18.21-iattr_write/include/uapi/vserver/context.h 2016-07-20 18:36:40.224003221 +0200 | |
@@ -26,6 +26,8 @@ | |
#define VXF_VIRT_LOAD 0x00080000 | |
#define VXF_VIRT_TIME 0x00100000 | |
+#define VXF_PROC_WRITE 0x00200000 | |
+ | |
#define VXF_HIDE_MOUNT 0x01000000 | |
/* was VXF_HIDE_NETIF 0x02000000 */ | |
#define VXF_HIDE_VINFO 0x04000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment