From e4721366ff39b53c863654394e3cc776ce5efe3c Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Tue, 3 Oct 2023 11:28:51 -0700 Subject: [PATCH] Added user_ns argument to posix_acl_update_mode, set_posix_acl v5.11-rc4-8-ge65ce2a50cf6 adds idmap support to these calls. Signed-off-by: Auke Kok --- kmod/src/acl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmod/src/acl.c b/kmod/src/acl.c index 8e371fb2..d0fef58e 100644 --- a/kmod/src/acl.c +++ b/kmod/src/acl.c @@ -153,7 +153,8 @@ int scoutfs_set_acl_locked(struct inode *inode, struct posix_acl *acl, int type, switch (type) { case ACL_TYPE_ACCESS: if (acl) { - ret = posix_acl_update_mode(inode, &new_mode, &acl); + ret = posix_acl_update_mode(KC_VFS_INIT_NS + inode, &new_mode, &acl); if (ret < 0) goto out; set_mode = true;