]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/netfilter/xt_owner.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[mirror_ubuntu-jammy-kernel.git] / net / netfilter / xt_owner.c
index 7833cf4c67f95d1433ae4ebeb928a2e5629b1e7b..e85ce69924aee95d46ab597b1357ddd0d2c6c2b7 100644 (file)
@@ -22,6 +22,9 @@ static int owner_check(const struct xt_mtchk_param *par)
        struct xt_owner_match_info *info = par->matchinfo;
        struct net *net = par->net;
 
+       if (info->match & ~XT_OWNER_MASK)
+               return -EINVAL;
+
        /* Only allow the common case where the userns of the writer
         * matches the userns of the network namespace.
         */