I tried two things, one running the easy /scripts/securetmp to protect tmp folder.
And the other mounting the tmp folder as noexec.
In both, bash scripts cant be run inside tmp folder.
But if you run for example perl /tmp/a.pl or sh /tmp/a.c the script runs ok. Is there a way to prevent outside calling of scripts inside tmp folder??
Thank you
And the other mounting the tmp folder as noexec.
In both, bash scripts cant be run inside tmp folder.
But if you run for example perl /tmp/a.pl or sh /tmp/a.c the script runs ok. Is there a way to prevent outside calling of scripts inside tmp folder??
Thank you