Skip to content

xfs: tmpfile fixes for inode security/acl

Brian Foster linux-ext4 linux-fsdevel linux-man linux-xfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 11 repliesIn review
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- Added a generic create helper to inherit the security/acl init. code in the tmpfile path.
- Added patch 2 to fold xfs_create_tmpfile() into xfs_create().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: fix tmpfile/selinux deadlock and initialize security/aclfs/xfs/xfs_inode.c fs/xfs/xfs_inode.h fs/xfs/xfs_iops.c+33 -159 replies
2/2xfs: fold xfs_create_tmpfile() into xfs_create()fs/xfs/xfs_inode.c fs/xfs/xfs_iops.c fs/xfs/xfs_trace.h+54 -1462 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] xfs: tmpfile fixes for inode security/acl

Hi all,

Here's a v2 of the tmpfile and selinux deadlock patch. Since we also probably want to create the default acl, I created a generic helper out of xfs_vn_mknod().

Once I got that far, I noticed xfs_create_tmpfile() looked quite similar to xfs_create(). Patch 2 folds the former into the latter and eliminates the duplicate code. Patch 2 is optional with regard to addressing the selinux issue. Lightly tested... thoughts, reviews, flames appreciated.

Brian

v2:
- Added a generic create helper to inherit the security/acl init. code in the tmpfile path.
- Added patch 2 to fold xfs_create_tmpfile() into xfs_create().

Brian Foster (2):
xfs: fix tmpfile/selinux deadlock and initialize security/acl
xfs: fold xfs_create_tmpfile() into xfs_create()

 fs/xfs/xfs_inode.c | 184 ++++++++++++++---------------------------------------
 fs/xfs/xfs_inode.h |   2 +-
 fs/xfs/xfs_iops.c  |  43 +++++++++----
 fs/xfs/xfs_trace.h |   7 +-
 4 files changed, 81 insertions(+), 155 deletions(-)
Signature · 6 lines
1.8.3.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs