Skip to content

Commit 6c9ec1d

Browse files
kchen-ddnhbirth
authored andcommitted
Invalidate selinux security label during inode invalidation.
Add security_inode_invalidate_secctx() call to invalidate cached security context when inode attributes change. This ensures that SELinux security labels are properly refreshed and prevents stale security context from being used after inode modifications. Signed-off-by: Kevin Chen <kchen@ddn.com>
1 parent 51e0799 commit 6c9ec1d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/fuse/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ int fuse_reverse_inval_inode(struct fuse_conn *fc, u64 nodeid,
619619

620620
fuse_invalidate_attr(inode);
621621
forget_all_cached_acls(inode);
622+
security_inode_invalidate_secctx(inode);
622623
if (offset >= 0) {
623624
pg_start = offset >> PAGE_SHIFT;
624625
if (len <= 0)

0 commit comments

Comments
 (0)