core dumps not working on FreeBSD host
Jorge Pereira
jpereira at freeradius.org
Thu Mar 5 00:29:47 CET 2020
Hi Mark,
Thank you for the feedback. Btw, the feature was incorporated into the v3.0.x branch (it will be available on the next 3.0.21) and also in master (v4.0.0) branch. Anyway, we have some tests in https://github.com/FreeRADIUS/freeradius-server/pull/3279#issuecomment-584993824 <https://github.com/FreeRADIUS/freeradius-server/pull/3279#issuecomment-584993824>
---
Jorge Pereira
jpereira at freeradius.org
> On 4 Mar 2020, at 17:11, Marek Zarychta <zarychtam at plan-b.pwste.edu.pl> wrote:
>
> W dniu 05.02.2020 o 19:20, Alan DeKok pisze:
>> On Feb 5, 2020, at 12:17 PM, Marek Zarychta <zarychtam at plan-b.pwste.edu.pl> wrote:
>>> Running radiusd -X and going through debug output I found these lines:
>>>
>>> Changing value of PR_DUMPABLE not supported on this system
>>> Core dumps are enabled
>>>
>>> Which probably according to
>>> https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/src/lib/debug.c#L480
>>>
>>> mean that core dumps are not really supported while running FreeRADIUS
>>> on this OS ?
>> I suppose not. We don't currently had a FreeBSD system for testing. I'm sure it's fixable, but it means spending some time trying to understand what we need to do.
>>
>> Alan DeKok.
>>
>>
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
> Dear FreeRadius users and other subscribers of the list, especially
> those running FreeRADIUS on FreeBSD
>
> To close the case I owe you a bit of explanation. FreeRADIUS run on
> FreeBSD permits to create core dumps, respects "allow_core_dumps"
> setting in radius.conf but requires radiusd to be run with uid and gid 0
> which I was not aware of blindly relying on kern.sugid_coredump
> setting=1. So getting core dumps for FreeBSD was available from the
> beginning, though it was not documented. The culprit of not getting
> these dumps was the fact of running radiusd with uid=133(freeradius)
> gid=133(freeradius), which is a typical setting. To clarify this I want
> to assure you that running daemons with effective uid/gid > 0 doesn't
> prevent them from creating such dumps when sysctl kern.sugid_coredump is
> set to 1. FreeRADIUS seems to be exceptional in this case.
>
> Anyway, I have sorted this out a few weeks ago but so far I wasn't able
> to reproduce the original error which initiated the investigation.
>
> I am really grateful for your assistance and support, especially for
> Jorge's help.
>
> --
> Marek Zarychta
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list