creating core dumps with 1.3.42

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-02-16 at 20:01 +0100, leo2@xxxxxxxxxxxxxx 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.



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux