From 17a3ff34d36862576e02a2ec260a87bc430fbed0 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 19 Nov 2025 11:24:06 -0500 Subject: [PATCH] make: add grepping from #9325 to lint-exec pass No error, but visibility. --- Mk/lint.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Mk/lint.mk b/Mk/lint.mk index d34d461ba8..82a7221974 100644 --- a/Mk/lint.mk +++ b/Mk/lint.mk @@ -116,6 +116,16 @@ lint-exec: (echo "Missing executable permission in ${DIR}"; exit 1) .endif .endfor +.for DIR in ${.CURDIR}/src +.if exists(${DIR}) + @git grep -e '[^li][^w>:]exec(' -e '^exec(' -e 'shell_exec(' \ + -e '[^f]passthru(' -e '^passthru(' -e '[^._a-z]system(' \ + -e '^system(' ':!*.js' ':!*.py' ':!*/contrib/*' \ + ':!*/OPNsense/Core/Shell.php' ':!*/interfaces.lib.inc' \ + ':!*/inc/certs.inc' ':!*/rc.configure_firmware' \ + ':!*/rc.subr.d/recover' ${DIR} +.endif +.endfor lint-php: .for DIR in ${.CURDIR}/src