[cocci] [PATCH 01/11] coccinelle: Add script to reorder capable() calls
Markus Elfring
Markus.Elfring at web.de
Wed Nov 27 11:45:18 UTC 2024
…
> +++ b/scripts/coccinelle/api/capable_order.cocci
…
> +@ depends on patch@
> +identifier F = { capable, ns_capable, sockopt_ns_capable };
> +binary operator op,op1,op2;
…
> +- F at p(EL) op E
> ++ E op F(EL)
…
You would like to reorder expression parts.
How do you think about to increase the precision for such
an SmPL change specification?
* May only operators be taken into account for which
the commutative property holds?
* Would you like to support a varying length for the affected
operator chain (≥ 2 operands)?
Regards,
Markus
More information about the Linux-security-module-archive
mailing list