]> git.kaiwu.me - haproxy.git/commit
MINOR: acl: add acl_cond_find_positive_use() to find positive terms by usage
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Nov 2026 10:42:38 +0000 (12:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 17:12:23 +0000 (18:12 +0100)
commit4f49e579f761219f54fd9f351fa6752e72f25a56
tree4d7332e8bbba868e85c7b485cf3ba497acf71f6f
parentb34ac336313e9e1db3bee4e8293b1f3fc9e44cea
MINOR: acl: add acl_cond_find_positive_use() to find positive terms by usage

This function looks for a term of a condition which makes the condition
true when it matches (a non-negated term after "if", or a negated one
after "unless") and which involves a sample fetch having certain
SMP_USE_* bits. It returns the first matching ACL and keyword, in the
same way as acl_cond_kw_conflicts() does. The combination of terms is
not considered, a single positive term is enough.

It will be used to detect deny-lists built on aliasable contents.
include/haproxy/acl.h
src/acl.c