Ok so FreeBSD secures memory and makes unreadable to non-root users. But by default FreeBSD comes with "ulimit = unlimited" and I think that can cause to make normal users be able to read other apps memories. No code execution maybe but core dumps can include special informations about applications and that may be a problem with FreeBSD?
I stopped core dumps by running this command:
This command disables core dumps completely but I want to change core dumps directory. By the way Im thinking its a problem while using FreeBSD as daily system that and process can read other processes informations by finding a way to crash them.
MY QUESTION:
HOW CAN I CHANGE CORE DUMPS DIRECTORY
: I want to make it dump them to /tmp
They are large files so I guess dumping them to /tmp would be better.
Im thinking to change chown of tmp/dumps directory so that must protect them from attacks.
I stopped core dumps by running this command:
ulimit -c 0
This command disables core dumps completely but I want to change core dumps directory. By the way Im thinking its a problem while using FreeBSD as daily system that and process can read other processes informations by finding a way to crash them.
MY QUESTION:
HOW CAN I CHANGE CORE DUMPS DIRECTORY
: I want to make it dump them to /tmp
They are large files so I guess dumping them to /tmp would be better.
Im thinking to change chown of tmp/dumps directory so that must protect them from attacks.