diff options
author | Pablo Neira Ayuso | 2019-06-07 16:37:30 +0200 |
---|---|---|
committer | Pablo Neira Ayuso | 2019-06-17 16:36:30 +0200 |
commit | 9911c1139fd072594ac259c2ce055b004ca92f49 (patch) | |
tree | 411d03f314f77a5ab2d3ebfa584e200162280534 /include/uapi | |
parent | 87e389b4c20091b562bd65d90272f9d7c67eb437 (diff) |
netfilter: xt_owner: bail out with EINVAL in case of unsupported flags
Reject flags that are not supported with EINVAL.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/netfilter/xt_owner.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/xt_owner.h b/include/uapi/linux/netfilter/xt_owner.h index 9e98c09eda32..5108df4d0313 100644 --- a/include/uapi/linux/netfilter/xt_owner.h +++ b/include/uapi/linux/netfilter/xt_owner.h @@ -11,6 +11,11 @@ enum { XT_OWNER_SUPPL_GROUPS = 1 << 3, }; +#define XT_OWNER_MASK (XT_OWNER_UID | \ + XT_OWNER_GID | \ + XT_OWNER_SOCKET | \ + XT_OWNER_SUPPL_GROUPS) + struct xt_owner_match_info { __u32 uid_min, uid_max; __u32 gid_min, gid_max; |