]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to create selinux label during whiteout initialization
authorChao Yu <chao@kernel.org>
Wed, 7 Feb 2024 07:05:48 +0000 (15:05 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:20:01 +0000 (18:20 -0400)
commit7525dec4b34c80b3015c3f2ac143fd2bfc1febc3
tree0951f99423966d17cf63e447a2f2fa6a70cdd858
parenta2b6d56416ddd3a80d717d05730c7fa5914ac943
f2fs: fix to create selinux label during whiteout initialization

[ Upstream commit 40b2d55e045222dd6de2a54a299f682e0f954b03 ]

#generic/700       - output mismatch (see /media/fstests/results//generic/700.out.bad)
#    --- tests/generic/700.out 2023-03-28 10:40:42.735529223 +0000
#    +++ /media/fstests/results//generic/700.out.bad 2024-02-06 04:37:56.000000000 +0000
#    @@ -1,2 +1,4 @@
#     QA output created by 700
#    +/mnt/scratch_f2fs/f1: security.selinux: No such attribute
#    +/mnt/scratch_f2fs/f2: security.selinux: No such attribute
#     Silence is golden
#    ...
#    (Run 'diff -u /media/fstests/tests/generic/700.out /media/fstests/results//generic/700.out.bad'  to see the entire diff)

HINT: You _MAY_ be missing kernel fix:
      70b589a37e1a xfs: add selinux labels to whiteout inodes

Previously, it missed to create selinux labels during whiteout inode
initialization, fix this issue.

Fixes: 7e01e7ad746b ("f2fs: support RENAME_WHITEOUT")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/namei.c