1. 28 Dec, 2020 2 commits
    • Pablo Neira Ayuso's avatar
      netfilter: nftables: add set expression flags · b4e70d8d
      Pablo Neira Ayuso authored
      The set flag NFT_SET_EXPR provides a hint to the kernel that userspace
      supports for multiple expressions per set element. In the same
      direction, NFT_DYNSET_F_EXPR specifies that dynset expression defines
      multiple expressions per set element.
      
      This allows new userspace software with old kernels to bail out with
      EOPNOTSUPP. This update is similar to ef516e86 ("netfilter:
      nf_tables: reintroduce the NFT_SET_CONCAT flag"). The NFT_SET_EXPR flag
      needs to be set on when the NFTA_SET_EXPRESSIONS attribute is specified.
      The NFT_SET_EXPR flag is not set on with NFTA_SET_EXPR to retain
      backward compatibility in old userspace binaries.
      
      Fixes: 48b0ae04 ("netfilter: nftables: netlink support for several set element expressions")
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      b4e70d8d
    • Pablo Neira Ayuso's avatar
      netfilter: nft_dynset: report EOPNOTSUPP on missing set feature · 95cd4bca
      Pablo Neira Ayuso authored
      If userspace requests a feature which is not available the original set
      definition, then bail out with EOPNOTSUPP. If userspace sends
      unsupported dynset flags (new feature not supported by this kernel),
      then report EOPNOTSUPP to userspace. EINVAL should be only used to
      report malformed netlink messages from userspace.
      
      Fixes: 22fe54d5 ("netfilter: nf_tables: add support for dynamic set updates")
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      95cd4bca
  2. 27 Dec, 2020 1 commit
  3. 23 Dec, 2020 18 commits
  4. 22 Dec, 2020 8 commits
  5. 21 Dec, 2020 2 commits
  6. 20 Dec, 2020 5 commits
  7. 19 Dec, 2020 4 commits