]> git.ipfire.org Git - thirdparty/nftables.git/commit
Reject invalid chain priority values in user space
authorPhil Sutter <phil@nwl.cc>
Thu, 9 Mar 2023 23:52:15 +0000 (00:52 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 10 Mar 2023 11:25:46 +0000 (12:25 +0100)
commit8c75d3a169605b605711ccb6f4ab3253c40ba10b
treefcfc8f11d7532193340d7d454e51c38224a37672
parentaef5330fe7827f760b70d5d27010445c3adb3d3c
Reject invalid chain priority values in user space

The kernel doesn't accept nat type chains with a priority of -200 or
below. Catch this and provide a better error message than the kernel's
EOPNOTSUPP.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/evaluate.c