bool rtnl_held = false;
        u32 flags;
 
-       if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
-               return -EPERM;
-
 replay:
        tp_created = 0;
 
        int err;
        bool rtnl_held = false;
 
-       if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
-               return -EPERM;
-
        err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX,
                                     rtm_tca_policy, extack);
        if (err < 0)
        unsigned long cl;
        int err;
 
-       if (n->nlmsg_type != RTM_GETCHAIN &&
-           !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
-               return -EPERM;
-
 replay:
        q = NULL;
        err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX,
 
        struct Qdisc *p = NULL;
        int err;
 
-       if ((n->nlmsg_type != RTM_GETQDISC) &&
-           !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
-               return -EPERM;
-
        err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
                                     rtm_tca_policy, extack);
        if (err < 0)
        struct Qdisc *q, *p;
        int err;
 
-       if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
-               return -EPERM;
-
 replay:
        /* Reinit, just in case something touches this. */
        err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
        u32 qid;
        int err;
 
-       if ((n->nlmsg_type != RTM_GETTCLASS) &&
-           !netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN))
-               return -EPERM;
-
        err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
                                     rtm_tca_policy, extack);
        if (err < 0)