summaryrefslogtreecommitdiff
path: root/scripts/git.orderFile
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2021-06-19 12:26:19 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2021-08-17 11:47:43 +0200
commit096a218a588d78d699adcacb6919cff4718c4cac (patch)
tree7524a228e393051ed755bb66fca2505e43d2ee31 /scripts/git.orderFile
parent72db82115d2bdfbfba8b15a92d91872cfe1b40c6 (diff)
downloadkernel-096a218a588d78d699adcacb6919cff4718c4cac.tar.gz
ovl: consistent behavior for immutable/append-only inodes
When a lower file has immutable/append-only fileattr flags, the behavior of overlayfs post copy up is inconsistent. Immediattely after copy up, ovl inode still has the S_IMMUTABLE/S_APPEND inode flags copied from lower inode, so vfs code still treats the ovl inode as immutable/append-only. After ovl inode evict or mount cycle, the ovl inode does not have these inode flags anymore. We cannot copy up the immutable and append-only fileattr flags, because immutable/append-only inodes cannot be linked and because overlayfs will not be able to set overlay.* xattr on the upper inodes. Instead, if any of the fileattr flags of interest exist on the lower inode, we store them in overlay.protattr xattr on the upper inode and we read the flags from xattr on lookup and on fileattr_get(). This gives consistent behavior post copy up regardless of inode eviction from cache. When user sets new fileattr flags, we update or remove the overlay.protattr xattr. Storing immutable/append-only fileattr flags in an xattr instead of upper fileattr also solves other non-standard behavior issues - overlayfs can now copy up children of "ovl-immutable" directories and lower aliases of "ovl-immutable" hardlinks. Reported-by: Chengguang Xu <cgxu519@mykernel.net> Link: https://lore.kernel.org/linux-unionfs/20201226104618.239739-1-cgxu519@mykernel.net/ Link: https://lore.kernel.org/linux-unionfs/20210210190334.1212210-5-amir73il@gmail.com/ Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
g_hid useJoe Perches 2010-10-25Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto...Linus Torvalds 2010-10-23Merge branch 'uc-logic' into for-linusJiri Kosina 2010-10-23Merge branches '3m', 'egalax', 'logitech', 'magicmouse', 'ntrig' and 'roccat'...Jiri Kosina 2010-10-15HID: add absolute axis resolution calculationNikolai Kondrashov 2010-09-21HID: Add a hid quirk for input sync overrideHenrik Rydberg 2010-09-15Input: hid-input - allow mapping unknown usagesDmitry Torokhov 2010-09-09Input: hid-input - switch to using new keycode interfaceDmitry Torokhov 2010-08-09HID: Add Tablet Pick -> BTN_STYLUS2 mappingNikolai Kondrashov 2010-08-04Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik...Linus Torvalds 2010-08-04Merge branches 'magicmouse', 'roccat' and 'vec-pedal' into for-linusJiri Kosina 2010-07-19HID: hid-input.c: indentation fixesDaniel Mack 2010-07-13HID: ignore digitizer usage Undefined (0x00)Forest Bond 2010-06-23Input: hid-input - use a larger event buffer for MT devicesHenrik Rydberg 2010-03-08Input: scancode in get/set_keycodes should be unsignedDmitry Torokhov 2010-02-17HID: extend mask for BUTTON usage pageJiri Kosina 2010-02-09HID: add mapping for "AL Network Chat" usageLeo P White 2010-02-02HID: update copyrightJiri Kosina 2010-01-04HID: handle joysticks with large number of buttonsJiri Kosina