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

Submitted by Andrey Ryabinin on June 7, 2017, 12:05 p.m.

Details

Message ID 20170607120512.28879-1-aryabinin@virtuozzo.com
State New
Series "fs/ext4: allow container's root to change immutable attribute."
Headers show

Commit Message

Andrey Ryabinin June 7, 2017, 12:05 p.m.
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@virtuozzo.com>
---
 fs/ext4/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;
 		}