e2fsprogs - could not preserve ACL permissions : The getxattr() returns with (EINVAL)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
The original installed e2fsprogs did not support mke2fs -d /directory " option . So , git cloned from e2fsprogs packages from repository and installed it and followed below steps to reproduce this :
1. set the ACL rules as below to one of the binary :
$ setfacl -m u:vipatil:r-- rootfs/
$ getfacl rootfs/
# file: rootfs/
# owner: shkumar
# group: hardev
user::rwx
user:
group::---
mask::r--
other::---
2. $ dd if=/dev/zero of=test.ext4 bs=1M count=60
3. $ mke2fs -t ext4 test.ext4 -d rootfs/
mke2fs 1.43.3 (04-Sep-2016)
Discarding device blocks: done
Creating filesystem with 61440 1k blocks and 15360 inodes
Filesystem UUID: 495713b3-
Superblock backups stored on blocks:
8193, 24577, 40961, 57345
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Copying files into the device: done
Writing superblocks and filesystem accounting information: done
4. sudo mount -o loop,acl,
5.@/mountpoint$ getfacl usr/bin/helloworld
getfacl: usr/bin/helloworld: Invalid argument
Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.