aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--etc/conf.d/vdr6
-rw-r--r--usr/share/vdr/rcscript/pre-start-10-chuid.sh1
3 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ca7e6b5..59dda55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
# $Id$
06 Jul 2008; Matthias Schwarzott <zzam@gentoo.org>
+ usr/share/vdr/rcscript/pre-start-10-chuid.sh, etc/conf.d/vdr:
+ Add possibility to enable --userdump.
+
+ 06 Jul 2008; Matthias Schwarzott <zzam@gentoo.org>
usr/share/vdr/inc/plugin-functions.sh:
Rename variable.
diff --git a/etc/conf.d/vdr b/etc/conf.d/vdr
index 9f799c3..44555b7 100644
--- a/etc/conf.d/vdr
+++ b/etc/conf.d/vdr
@@ -209,6 +209,12 @@ PLUGIN_CHECK_PATCHLEVEL="yes"
# default: no
#FORCE_SETUID_OFF="yes"
+# allow core-dumps when using setuid
+# This helps for debugging crashes
+# allowed values: yes no
+# default:no
+#ALLOW_USERDUMP="yes"
+
# for people who really know what they do
# and who want to start vdr as user root
# allowed values: yes no
diff --git a/usr/share/vdr/rcscript/pre-start-10-chuid.sh b/usr/share/vdr/rcscript/pre-start-10-chuid.sh
index 4a58526..bf57bc3 100644
--- a/usr/share/vdr/rcscript/pre-start-10-chuid.sh
+++ b/usr/share/vdr/rcscript/pre-start-10-chuid.sh
@@ -4,6 +4,7 @@ addon_main() {
if [ -n "${CAP_CHUID}" ] && ! yesno "${FORCE_SETUID_OFF}"; then
add_param "-u" "vdr"
+ yesno ${ALLOW_USERDUMP} && add_param "--userdump"
else
add_daemonctrl_param --chuid vdr
fi