Re: Custom core dump folder ?

2013-04-05 Thread Florenz Kley
On Apr 4, 2013, at 11:18 PM, patrick keshishian wrote:
> On single directory for everyone's core files? Personally I don't like
> that idea. Especially if I'm working on a project and want to find the
> core files in my current directory

as a developer, you have a point :-) but you could just not change the default

as admin, it's sure convenient to configure away from the default and have them 
in one place with one system-level config setting.. today, a cron job looks for 
cores once a day and tells me when he found some.

>>> On Thu, Apr 04, 2013 at 15:37, Jack N. Asher wrote:
>>>> Is there a way to specify a custom core dump folder in OpenBSD ?
>>>> 
>>>> This is the FreeBSD way (AFAIK, OpenBSD does not support it):
>>>> sysctl.conf
>>>> kern.corefile="/custom-folder/%U.%N.core"

cool, I didn't know that feature. thanks Jack!

fl



Re: Custom core dump folder ?

2013-04-04 Thread patrick keshishian
On Thu, Apr 4, 2013 at 12:42 PM, Jack N. Asher  wrote:
> If there is a list of daemons, etc. running 24/7, it would be useful
> if they all dumped in 1 folder rather than using a script to search
> for them. This way we will actually notice when a core dumps; the core
> is not buried deep inside a current-working-directory waiting for it
> to be discovered by some script. Even Python dumps core sometimes.

On single directory for everyone's core files? Personally I don't like
that idea. Especially if I'm working on a project and want to find the
core files in my current directory rather than some other place where
there may be a ton of other core files festering away...

--patrick




> Anyway, my $0.02.
>
> On Thu, Apr 4, 2013 at 5:02 PM, Ted Unangst  wrote:
>> On Thu, Apr 04, 2013 at 15:37, Jack N. Asher wrote:
>>> Is there a way to specify a custom core dump folder in OpenBSD ? I do
>>> not see any references to it in sysctl -a
>>> If not, is there a security reason for it not being supported or can
>>> it be added to a wishlist ?
>>
>> It is not supported, probably because nobody found any use for it.
>>
>> You can add anything you like to your wishlist, just keep your expectations
>> in check. :)



Re: Custom core dump folder ?

2013-04-04 Thread Jack N. Asher
If there is a list of daemons, etc. running 24/7, it would be useful
if they all dumped in 1 folder rather than using a script to search
for them. This way we will actually notice when a core dumps; the core
is not buried deep inside a current-working-directory waiting for it
to be discovered by some script. Even Python dumps core sometimes.

Anyway, my $0.02.

On Thu, Apr 4, 2013 at 5:02 PM, Ted Unangst  wrote:
> On Thu, Apr 04, 2013 at 15:37, Jack N. Asher wrote:
>> Is there a way to specify a custom core dump folder in OpenBSD ? I do
>> not see any references to it in sysctl -a
>> If not, is there a security reason for it not being supported or can
>> it be added to a wishlist ?
>
> It is not supported, probably because nobody found any use for it.
>
> You can add anything you like to your wishlist, just keep your expectations
> in check. :)



Re: Custom core dump folder ?

2013-04-04 Thread Ted Unangst
On Thu, Apr 04, 2013 at 15:37, Jack N. Asher wrote:
> Is there a way to specify a custom core dump folder in OpenBSD ? I do
> not see any references to it in sysctl -a
> If not, is there a security reason for it not being supported or can
> it be added to a wishlist ?

It is not supported, probably because nobody found any use for it.

You can add anything you like to your wishlist, just keep your expectations
in check. :)



Custom core dump folder ?

2013-04-04 Thread Jack N. Asher
Is there a way to specify a custom core dump folder in OpenBSD ? I do
not see any references to it in sysctl -a
If not, is there a security reason for it not being supported or can
it be added to a wishlist ?

This is the FreeBSD way (AFAIK, OpenBSD does not support it):

sysctl.conf

kern.corefile="/custom-folder/%U.%N.core"