minidlna: add allow wide links option 4874/head
authorJames Christopher Adduono <jc@adduono.com>
Sat, 23 Sep 2017 04:14:42 +0000 (00:14 -0400)
committerJames Christopher Adduono <jc@adduono.com>
Tue, 17 Oct 2017 01:18:43 +0000 (21:18 -0400)
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.

wide_links=no : (default) no content served + error message
 [timestamp] upnphttp.c:1366: error: Rejecting wide link X

wide_links=yes : content served, no error messages

Signed-off-by: James Christopher Adduono <jc@adduono.com>
multimedia/minidlna/Makefile
multimedia/minidlna/files/minidlna.config
multimedia/minidlna/files/minidlna.init

index 9243919327d68c0705da623380c491d6280e209b..5b84a8cbb5e047319561d3fd999826d8fcc4cb31 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=minidlna
 PKG_VERSION:=1.2.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=@SF/minidlna
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
index 91a5cc3305bd31c0666abffda9b9f2398087b25c..924a99ea9da59c1f5f248e4efd8300123f296ba1 100644 (file)
@@ -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'
index a92a064d3c04118ae4633cedabf68c49f9c1ab39..79be8f625a05490de2192306282eee387c90c121 100644 (file)
@@ -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