Skip to content

finish port to new vfs*id helpers

Christian Brauner linux-fsdevel linux-integrity linux-security-module linux-unionfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mnt_idmapping: add missing helpersinclude/linux/mnt_idmapping.h+32 -00 replies
2/8fs: use type safe idmapping helpersfs/coredump.c fs/exec.c fs/inode.c +3 more+40 -370 replies
3/8caps: use type safe idmapping helperskernel/capability.c security/commoncap.c+28 -270 replies
4/8apparmor: use type safe idmapping helperssecurity/apparmor/domain.c security/apparmor/file.c security/apparmor/lsm.c+23 -134 replies
5/8ima: use type safe idmapping helperssecurity/integrity/ima/ima_policy.c+18 -160 replies
6/8fuse: port to vfs{g,u}id_t and associated helpersfs/fuse/acl.c+1 -10 replies
7/8ovl: port to vfs{g,u}id_t and associated helpersfs/overlayfs/util.c+7 -20 replies
8/8fs: remove unused idmapping helpersinclude/linux/fs.h include/linux/mnt_idmapping.h+0 -1020 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSeth Forshee (DigitalOcean)John Johansen
SeriesR-b
1/8
2/8
3/8
4/8A-b
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] finish port to new vfs*id helpers

From: "Christian Brauner (Microsoft)" <[email protected]>

Hey,

A while ago we converted all filesystems and a good chunk of the vfs to rely on the new vfs{g,u}id_t type and the associated type safe helpers. After this change all places where idmapped mounts matter deal with the dedicated new type and can't be easily confused with filesystem wide k{g,u}id_t types. This small series converts the remaining places and removes the old helpers. The series does not contain functional changes. xfstests, LTP, and the libcap testsuite pass without any regressions.

(The series is based on the setgid changes sitting in my tree. It
removes a bunch of open-coding and thus makes the change here simpler as well.)

Thanks!
Christian

Christian Brauner (8):
mnt_idmapping: add missing helpers
fs: use type safe idmapping helpers
caps: use type safe idmapping helpers
apparmor: use type safe idmapping helpers
ima: use type safe idmapping helpers
fuse: port to vfs{g,u}id_t and associated helpers
ovl: port to vfs{g,u}id_t and associated helpers
fs: remove unused idmapping helpers

 fs/coredump.c                       |   4 +-
 fs/exec.c                           |  16 ++---
 fs/fuse/acl.c                       |   2 +-
 fs/inode.c                          |   8 +--
 fs/namei.c                          |  40 +++++------
 fs/overlayfs/util.c                 |   9 ++-
 fs/remap_range.c                    |   2 +-
 fs/stat.c                           |   7 +-
 include/linux/fs.h                  |  34 ----------
 include/linux/mnt_idmapping.h       | 100 +++++++++-------------------
 kernel/capability.c                 |   4 +-
 security/apparmor/domain.c          |   8 +--
 security/apparmor/file.c            |   4 +-
 security/apparmor/lsm.c             |  24 ++++---
 security/commoncap.c                |  51 +++++++-------
 security/integrity/ima/ima_policy.c |  34 +++++-----
 16 files changed, 149 insertions(+), 198 deletions(-)

base-commit: 23a8ce16419a3066829ad4a8b7032a75817af65b

Signature · 1 line
2.34.1