diff options
author | Eric Sandeen <sandeen@redhat.com> | 2022-07-09 10:56:02 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-07-09 10:56:02 -0700 |
commit | 70b589a37e1aba892c1e5d41957b0042f9eb031b (patch) | |
tree | 4a3ff9d17e8e1ffb3991126f59784e24076812bd /fs/xfs/xfs_iops.h | |
parent | fddb564f62aa6fd4c96a0c473526e2f86df95f4b (diff) | |
download | linux-stable-70b589a37e1aba892c1e5d41957b0042f9eb031b.tar.gz linux-stable-70b589a37e1aba892c1e5d41957b0042f9eb031b.tar.bz2 linux-stable-70b589a37e1aba892c1e5d41957b0042f9eb031b.zip |
xfs: add selinux labels to whiteout inodes
We got a report that "renameat2() with flags=RENAME_WHITEOUT doesn't
apply an SELinux label on xfs" as it does on other filesystems
(for example, ext4 and tmpfs.) While I'm not quite sure how labels
may interact w/ whiteout files, leaving them as unlabeled seems
inconsistent at best. Now that xfs_init_security is not static,
rename it to xfs_inode_init_security per dchinner's suggestion.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_iops.h')
-rw-r--r-- | fs/xfs/xfs_iops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_iops.h b/fs/xfs/xfs_iops.h index 278949056048..cb5fc68c9ea0 100644 --- a/fs/xfs/xfs_iops.h +++ b/fs/xfs/xfs_iops.h @@ -17,4 +17,7 @@ extern void xfs_setattr_time(struct xfs_inode *ip, struct iattr *iattr); int xfs_vn_setattr_size(struct user_namespace *mnt_userns, struct dentry *dentry, struct iattr *vap); +int xfs_inode_init_security(struct inode *inode, struct inode *dir, + const struct qstr *qstr); + #endif /* __XFS_IOPS_H__ */ |