Thread (7 messages) 7 messages, 4 authors, 2021-02-26

Re: [PATCH V2] xfs: initialise attr fork on inode create

From: Dave Chinner <david@fromorbit.com>
Date: 2021-02-26 05:03:00

On Thu, Feb 25, 2021 at 03:21:53PM -0800, Darrick J. Wong wrote:
On Tue, Feb 23, 2021 at 10:05:56AM +1100, Dave Chinner wrote:
quoted
From: Dave Chinner <redacted>
 STATIC int
 xfs_generic_create(
 	struct inode	*dir,
@@ -161,7 +192,9 @@ xfs_generic_create(
 		goto out_free_acl;
 
 	if (!tmpfile) {
-		error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip);
+		error = xfs_create(XFS_I(dir), &name, mode, rdev,
+				xfs_create_need_xattr(dir, default_acl, acl),
+				&ip);
 	} else {
 		error = xfs_create_tmpfile(XFS_I(dir), mode, &ip);
Same question as last time: Do selinux or smack want to set xattr-based
security labels on tempfiles too?
I think they do, but nobody has ever indicated that O_TMPFILE
creation to to be performance critical. Until someone comes to me
and says "concurrent O_TMPFILE creation at scale is really important
to our workload", I'm largely ignoring scalability issues for
tmpfile creation. Especially because AGI locks and the unlinked list
manipulations are the bottleneck here, not xattr creation....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help