path: root/security
diff options
authorChristian Brauner <>2021-12-03 12:16:59 +0100
committerChristian Brauner <>2021-12-03 18:50:17 +0100
commita793d79ea3e041081cd7cbd8ee43d0b5e4914a2b (patch)
tree55e68feee4717c20310cd997da5cd19ddbdab01b /security
parentbb49e9e730c2906a958eee273a7819f401543d6c (diff)
fs: move mapping helpers
The low-level mapping helpers were so far crammed into fs.h. They are out of place there. The fs.h header should just contain the higher-level mapping helpers that interact directly with vfs objects such as struct super_block or struct inode and not the bare mapping helpers. Similarly, only vfs and specific fs code shall interact with low-level mapping helpers. And so they won't be made accessible automatically through regular {g,u}id helpers. Link: (v1) Link: (v2) Link: Cc: Seth Forshee <> Cc: Christoph Hellwig <> Cc: Al Viro <> CC: Reviewed-by: Amir Goldstein <> Reviewed-by: Seth Forshee <> Signed-off-by: Christian Brauner <>
Diffstat (limited to 'security')
1 files changed, 1 insertions, 0 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index 3f810d37b71b..09479f71ee2e 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -24,6 +24,7 @@
#include <linux/user_namespace.h>
#include <linux/binfmts.h>
#include <linux/personality.h>
+#include <linux/mnt_idmapping.h>
* If a non-root user executes a setuid-root binary in