[LEDE-DEV] [PATCH] minidlna: add option to allow wide links
James Christopher Adduono
jc at adduono.com
Fri Sep 22 22:20:59 PDT 2017
some users might create a minidlna root with symlinks
to shared locations. while this could potentially create
a vulnerability, the option should be available to allow
users to do this should they choose to.
[timestamp] upnphttp.c:1366: error: Rejecting wide link X
Signed-off-by: James Christopher Adduono <jc at adduono.com>
---
multimedia/minidlna/files/minidlna.config | 1 +
multimedia/minidlna/files/minidlna.init | 1 +
2 files changed, 2 insertions(+)
diff --git a/multimedia/minidlna/files/minidlna.config b/multimedia/minidlna/files/minidlna.config
index 91a5cc33..924a99ea 100644
--- a/multimedia/minidlna/files/minidlna.config
+++ b/multimedia/minidlna/files/minidlna.config
@@ -7,6 +7,7 @@ config minidlna config
option log_dir '/var/log'
option inotify '1'
option enable_tivo '0'
+ option wide_links '0'
option strict_dlna '0'
option presentation_url ''
option notify_interval '900'
diff --git a/multimedia/minidlna/files/minidlna.init b/multimedia/minidlna/files/minidlna.init
index a92a064d..79be8f62 100644
--- a/multimedia/minidlna/files/minidlna.init
+++ b/multimedia/minidlna/files/minidlna.init
@@ -59,6 +59,7 @@ minidlna_create_config() {
minidlna_cfg_addstr $cfg log_dir
minidlna_cfg_addbool $cfg inotify '1'
minidlna_cfg_addbool $cfg enable_tivo '0'
+ minidlna_cfg_addbool $cfg wide_links '0'
minidlna_cfg_addbool $cfg strict_dlna '0'
minidlna_cfg_addstr $cfg album_art_names
minidlna_cfg_addstr $cfg presentation_url
--
2.14.1
More information about the Lede-dev
mailing list