Mounting filesystems with "noexec"

Rob MacGregor freebsd.macgregor at blueyonder.co.uk
Thu Sep 22 04:24:51 PDT 2005


On Thursday, September 22, 2005 12:12 PM, Borja Marcos <> unleashed the infinite
monkeys and produced:

> First thing, an attempt to execute a program from a noexec-mounted
> filesystem should be logged. It is either a very significant security
> event, or it can drive nuts an administrator trying to install
> software. (I like to mount with noexec filesystems such as /var, /var/
> www, /var/spool, /var/tmp, /tmp, /home whenever the users are not
> supposed to install software...).

As long as you can disable/limit the logging.  One very nasty "attack" would be
to loop trying to run a binary.  Blow your logging partition.  Somebody could
then use that to do other things that would normally be logged, safe in the
knowledge that their activities wouldn't be logged.

I've seen systems brought to their knees by similar well intentioned logging
activities.  It's not pretty :)

-- 
 Rob | Oh my God! They killed init! You bastards!



More information about the freebsd-security mailing list