Browse Source

minidlna: add allow wide links option

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>
lilik-openwrt-22.03
James Christopher Adduono 7 years ago
parent
commit
0b7272f967
3 changed files with 3 additions and 1 deletions
  1. +1
    -1
      multimedia/minidlna/Makefile
  2. +1
    -0
      multimedia/minidlna/files/minidlna.config
  3. +1
    -0
      multimedia/minidlna/files/minidlna.init

+ 1
- 1
multimedia/minidlna/Makefile View 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


+ 1
- 0
multimedia/minidlna/files/minidlna.config View 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'


+ 1
- 0
multimedia/minidlna/files/minidlna.init View 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


Loading…
Cancel
Save