From: Daan De Meyer Date: Tue, 17 Feb 2026 22:40:33 +0000 (+0100) Subject: userns-restrict: Remove unused inode argument and rename function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d28c96d85ea5739befd0a31303efa1f72f7f5521;p=thirdparty%2Fsystemd.git userns-restrict: Remove unused inode argument and rename function --- diff --git a/src/nsresourced/bpf/userns-restrict/userns-restrict.bpf.c b/src/nsresourced/bpf/userns-restrict/userns-restrict.bpf.c index 40e3652fedb..dbb0858682d 100644 --- a/src/nsresourced/bpf/userns-restrict/userns-restrict.bpf.c +++ b/src/nsresourced/bpf/userns-restrict/userns-restrict.bpf.c @@ -68,7 +68,7 @@ static inline struct mount *real_mount(struct vfsmount *mnt) { return container_of(mnt, struct mount, mnt); } -static int validate_inode_on_mount(struct inode *inode, struct vfsmount *v) { +static int validate_mount(struct vfsmount *v) { struct user_namespace *mount_userns, *task_userns, *p; unsigned task_userns_inode; struct task_struct *task; @@ -124,10 +124,9 @@ static int validate_path(const struct path *path, int ret) { if (ret != 0) /* propagate earlier error */ return ret; - inode = path->dentry->d_inode; v = path->mnt; - return validate_inode_on_mount(inode, v); + return validate_mount(v); } SEC("lsm/path_chown")