[Devel] [PATCH rh7] fs/ext4: allow container's root to change immutable attribute.

Andrey Ryabinin aryabinin at virtuozzo.com
Wed Jun 7 15:05:12 MSK 2017


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 117d89d8a05c..f6908a784cf5 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;
 		}
 
-- 
2.13.0



More information about the Devel mailing list