[vdr] creating core dumps with 1.3.42
Ville Skyttä
vskytta at gmail.com
Thu Feb 16 21:14:09 CET 2006
On Thu, 2006-02-16 at 20:01 +0100, leo2 at pec.homeip.net wrote:
> The current function to activate core-dumps for vdr running setuid ist only
> working for kernel > 2.6.13 ( says the comment in vdr.c ).
> Actualy it is not working for 2.4.21 but it was easy an easy change, just
> replace
> prctl(PR_SET_DUMPABLE, 2, 0, 0, 0)
> with
> prctl(PR_SET_DUMPABLE, 1, 0, 0, 0)
>
> If you need the switch with "2" ( what does "2" mean for >2.6.13 ??)
It's "2" intentionally. "1" is a "no security" mode, "2" makes the core
dumps readable by root only and applies additional checks. Like the
comment says, "2" is available in kernels >= 2.6.13 only. For more
info, see eg. the suid_dumpable description here:
http://marc.theaimsgroup.com/?l=linux-kernel&m=109647550421014&w=2
Yes, the net effect is that the unmodified VDR 1.3.42 won't produce core
dumps at all when not running as root with < 2.6.13 kernels, but IMO
that's a reasonable tradeoff, at least as far as the default is
concerned.
More information about the vdr
mailing list