aboutsummaryrefslogtreecommitdiff
path: root/net/transmission
Commit message (Collapse)AuthorAge
* transmission: retrieve boolean config opts using `config_get_bool`Salim B2023-02-13
| | | | | | | | | | | | | | The tranmission UCI config options - `config_overwrite` - `incomplete_dir_enabled` - `watch_dir_enabled` are all booleans, so we have to retrieve them using `config_get_bool` in order to make sure they are properly interpreted in case the user sets them to a keyword (`true`/`false`, `on`/`off` etc.) and not an integer (`0`/`1`). Signed-off-by: Salim B <git@salim.space>
* transmission: get rid of iconv dependencyRosen Penev2022-07-10
| | | | | | No need for an external one. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: add 'incomplete' and 'watch' dirs to ujail mountsAlexander Egorenkov2022-04-13
| | | | | | | | | | | | | | | To fix the errors: Sun Apr 10 14:19:41 2022 daemon.err transmission-daemon[29831]: [2022-04-10 14:19:41.098] watchdir Failed to open directory "/mnt/sda1/openwrt/transmission/watch" (2): No such file or directory (watchdir.c:358) and Sun Apr 10 14:20:18 2022 daemon.err transmission-daemon[30175]: [2022-04-10 14:20:18.641] Couldn't create "/mnt/sda1/openwrt/transmission/incomplete": Permission denied (file-posix.c:243) References: - https://github.com/openwrt/packages/issues/17674 Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
* transmission: add ca_bundle support with procd-ujailMatthew Hagan2022-01-09
| | | | | | | | | | | | | | | | | | | | | | | | With procd-ujail enabled, it is not possible to use HTTPS URLs, for example when either for downloading torrent files or blocklists. The followig example occurs when downloading a URL from the "Upload Torrent Files" dialogue box: Error adding "https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso.torrent": gotMetadataFromURL: http error 0: No Response syslog will also hint that no CA_BUNDLE is being used: transmission-daemon[6683]: [2021-12-30 20:01:30.990] web will verify tracker certs using envvar CURL_CA_BUNDLE: none (web.c:455) This patch rectifies this issue by adding a ca_bundle configurable, enabled by default. This explicitly fixes the ca_bundle file location to /etc/ssl/certs/ca-certificates.crt and adds this file to the procd jail. On subsequent testing, HTTPS URL download functionality is restored. Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
* transmission: include default 'web_home' dir in jailDaniel Golle2021-11-20
| | | | | | | | | Fixes 'transmission-web' for users which didn't manually configure the 'web_home' option. Assume transmission's default in case 'web_home' isn't defined and mount the directory so it can be accessed from inside the jail. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add a bunch of syscalls to seccomp filterDaniel Golle2021-11-20
| | | | | | | | | | Add missing "inotify_add_watch", "inotify_init1" and "inotify_rm_watch" syscalls to seccomp filter which are needed in case watch_dir feature of transmission is used. Fixes #16972 Reported-by: @siwind Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: update seccomp config fileRen Zongjia2021-10-28
| | | | | | | Add missing syscalls found using utrace. Signed-off-by: Ren Zongjia <acooler15@foxmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: build with wolfSSL againRosen Penev2021-10-14
| | | | | | The problem was discovered and is now patched with an upstream backport. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: add two more syscalls to seccomp filterDaniel Golle2021-09-25
| | | | | | | | Testing showed that additional syscalls are needed on ARMv7. Add "clock_gettime64" and "statx" which seem to be used now instead of "clock_gettime" and "stat" syscalls which are already listed. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add mount triggerDaniel Golle2021-08-08
| | | | | | | Restart transmission once an underlaying mountpoint becomes available. Add myself as maintainer. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: apply DSCP to UDP sockets tooRui Salvaterra2021-08-01
| | | | | | | | | Backport a pending patch in order to DSCP-mark UDP traffic. This allows for correct binning of traffic in diffserv-capable routers. Additionally, remove Rosen Penev from the maintainers list, as per his request. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
* transmission: bump PKG_RELEASEDaniel Golle2021-07-10
| | | | | | | | The commit updating the seccomp filter didn't bump PKG_RELEASE. Do that now. Fixes: 1141ee1e5 ("transmission: add new syscalls to seccomp filter)" Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add new syscalls to seccomp filterDaniel Golle2021-07-10
| | | | | | | | Testing showed that additional syscalls are needed on ARMv7. Add "getegid32", "geteuid32", "getgid32" and "getrandom" as they are all innocent. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add syscalls needed on PPC to seccomp rulesDaniel Golle2021-01-06
| | | | | | | Add fadvise64_64 and fchmod syscalls needed on PowerPC platforms to seccomp rules of transmission-daemon. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: do not use wolfSSLRosen Penev2020-12-31
| | | | | | | There's some kind of crash internally in wolfSSL. It doesn't seem like anyone knows how to fix it. Just disable it for now. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: jail: add allow 'getuid' syscallDaniel Golle2020-12-20
| | | | | | transmission needs 'getuid', at least on mips_24kc. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: convert seccomp filter rules to OCI formatDaniel Golle2020-11-17
| | | | | | | procd-seccomp switched to OCI-compliant seccomp parser instead of our (legacy, OpenWrt-specific) format. Convert ruleset to new format. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: remove variants and use libcurl's TLS libraryRosen Penev2020-10-26
| | | | | | | Allows the Makefile to be cleaned up and to have fewer dependencies. There's no need for multiple TLS libraries to be installed. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: fix mbedtls searchRosen Penev2020-10-13
| | | | | | | mbedcrypto should be searched, not mbedtls. Also, there is no pkgconfig file with mbedtls. Fixed that as well. Removed Makefile hacks. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: fix compilation with full NLSRosen Penev2020-09-29
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: add access to web interface files to procd jailJosef Zila2020-06-18
| | | | Signed-off-by: Josef Zila <josefzila@gmail.com>
* transmission: add a disabled notificationRosen Penev2020-06-15
| | | | | | Helps to see that transmission must be enabled. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: init script check syscall list for seccompJan Pavlinec2020-05-26
| | | | Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* transmission: update to 3.0Rosen Penev2020-05-24
| | | | | | remove upstreamed patches. Refresh remaining one. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: add init file STOP directiveFrancesco G2020-04-07
| | | | | | | Transmission should stop early on system shutdown to avoid for example fstab unmount disks when transmission is writing. Signed-off-by: Francesco G <gfrancesco@users.noreply.github.com>
* Revert "transmission: mount /etc/resolv.conf in jail"Daniel Golle2020-03-13
| | | | | | | This reverts commit 9778e2f66ff7b1f06e841a416f295e6e3b74c377. /etc/resolv.conf is now mounted by default by procd/ujail. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: mount /etc/resolv.conf in jailDaniel Golle2020-03-12
| | | | | | | transmission needs to have name resolution to be able to resolve the trackers' hostnames. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add syscalls to seccomp filterDaniel Golle2020-03-08
| | | | | | Syscalls observered when running on arm32. Add them to seccomp rule. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add service triggers and bump PKG_RELEASERichard Yu2020-01-18
| | | | Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* transmission: update config optionsRichard Yu2020-01-18
| | | | | | | add missing 'peer_id_ttl_hours' and remove 'scrape_paused_torrents' which is not exist in transmission wiki. Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* transmission: Fix message_level settingRosen Penev2020-01-08
| | | | | | | | --log-error in the init script was overriding it. Added several optimizations to the init script for speed and correctness. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: fix typo in jail setupDaniel Golle2020-01-09
| | | | | Fixes: 609109fa9 ("transmission: add seccomp filter and improve jail") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: fix directory creation in init scriptDaniel Golle2020-01-05
| | | | | | | | | | Things were done in the wrong order, leading to config_dir not being chown'ed and subdirectories not being created in case of download_dir being inside config_dir. Fixes: 609109fa9 ("transmission: add seccomp filter and improve jail") Reported-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: add seccomp filter and improve jailDaniel Golle2020-01-04
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* transmission: Disable webseedingRosen Penev2019-11-24
| | | | | | It causes 100% CPU usage in certain situations. Just disable it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: fix command param issue and use default respawn settingsRichard Yu2019-09-27
| | | | Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* transmission: Merge all the command line params in one lineRosen Penev2019-09-26
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: Fix typo in init scriptRosen Penev2019-09-25
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Merge pull request #9940 from neheb/tr2Rosen Penev2019-09-23
|\ | | | | transmission: Fix tracker issue with some firewalls
| * transmission: Fix tracker issue with some firewallsRosen Penev2019-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some firewalls mandate a minimum size of 4k for SYN packets, which transmission does not do by default. Upstream issue here: https://github.com/transmission/transmission/issues/964 Cleanup: Fixed license info. Removed two unnecessary patches. Ran shell script through shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* | treewide: add PKG_CPE_ID for better cvescanner coverageJan Pavlinec2019-09-17
|/ | | | Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* treewide: Change .*GPL.*+ licenses to SPDX compatible identifierSven Eckelmann2019-09-10
| | | | | | | | The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL licenses. But a lot of packages did use a different, non-SPDX style with a "+" at the end instead of "-or-later". Signed-off-by: Sven Eckelmann <sven@narfation.org>
* Revert "transmission-web: set conflicts with transmission-web-control"Richard Yu2019-05-07
| | | | | | | | This reverts commit 18c9a03770793e084eab5601d51b21ca4b374f75. To fix "make menuconfig" shows "recursive dependency detected". Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* Merge pull request #8842 from ysc3839/tr-web-controlRosen Penev2019-05-03
|\ | | | | transmission-web-control: add new package
| * transmission-web: set conflicts with transmission-web-controlRichard Yu2019-04-30
| | | | | | | | Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* | transmission: Fix compilation under uClibc-ngRosen Penev2019-05-01
|/ | | | | | | | Upstream has a patch for this dated 2016. Also ran the init script through shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: add PKGARCH:=all for transmission-webRichard Yu2019-04-18
| | | | Signed-off-by: Richard Yu <yurichard3839@gmail.com>
* transmission: Add LTO support to shave off 35KB off of the ipkRosen Penev2019-02-15
| | | | | | Minor Makefile cleanups. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* transmission: Allow user to configure web ui home directoryAndrii Korzh2018-07-12
| | | | Signed-off-by: Andrii Korzh <andrii.korzh@gmail.com>
* transmission: Update to 2.94Rosen Penev2018-05-27
| | | | | | | | Mainly a bugfix for XSS. Patches have been refreshed. Added an upstream fix for TLS verification. Now enabled by default. Signed-off-by: Rosen Penev <rosenp@gmail.com>