generic: simple permission check on hard links

Overlayfs had a bug that hardlinks don't share inode, if
chmod/chown/etc. is performed on one of the links then the inode
belonging to the other one won't be updated. The following patch
fixed this issue:

51f7e52 ovl: share inode for hard link

This is a simple test that has nothing overlayfs specific, so make
it a generic test.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Eryu Guan
2016-09-07 17:57:15 +08:00
parent d67700c75a
commit 0cc271642a
3 changed files with 77 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
QA output created by 378
Permission denied
Permission denied