[Devel] [PATCH RHEL7 COMMIT] ve/fs/ext4: allow container's root to change immutable attribute.
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jun 20 20:08:43 MSK 2017
The commit is pushed to "branch-rh7-3.10.0-514.16.1.vz7.32.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.16.1.vz7.32.10
------>
commit 380581e0a5f8042ebc4513812590c03e4d3bc244
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date: Tue Jun 20 21:08:43 2017 +0400
ve/fs/ext4: allow container's root to change immutable attribute.
This allows container's root to change immutable and append only
attributes on files.
https://jira.sw.ru/browse/PSBM-60148
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
fs/ext4/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 117d89d..f6908a7 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -303,7 +303,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
* This test looks nicer. Thanks to Pauline Middelink
*/
if ((flags ^ oldflags) & (EXT4_APPEND_FL | EXT4_IMMUTABLE_FL)) {
- if (!capable(CAP_LINUX_IMMUTABLE))
+ if (!ve_capable(CAP_LINUX_IMMUTABLE))
goto flags_out;
}
More information about the Devel
mailing list