Commit Graph

95 Commits

Author SHA1 Message Date
Serhii Ivanov a06829b0a2 transmissision: remove build dependency on nodejs
Have no idea why such dependency was added.
No documentation from transmission that they need
such dependency on build time. On the other hand
saves vast of time during build

Signed-off-by: Serhii Ivanov <icegood1980@gmail.com>
2025-01-14 18:36:17 -08:00
Karol Kolacinski 710abc0b3a transmission: fix compilation with miniupnpc 2.2.8
Backport pending patch, which was submitted to upstream via GitHub
to use modified function to compile it against miniupnpc 2.2.8.

Signed-off-by: Karol Kolacinski <kolacinskikarol@live.com>
2024-07-07 21:44:21 +01:00
Karol Kolacinski c32139757c transmission: update to version 4.0.6
Release notes:
https://github.com/transmission/transmission/releases/tag/4.0.6

Remove temporary patch included in 4.0.6 release.

Signed-off-by: Karol Kolacinski <kolacinskikarol@live.com>
2024-07-07 21:44:21 +01:00
Seo Suchan 42140c67e0 transmission: fix compile with MbedTLS 3.X
Backport pending patch, which was submitted to upstream via GitHub
to use renamed function to compile it against MbedTLS 3.x.

Signed-off-by: Seo Suchan <tjtncks@gmail.com>
2024-05-12 06:39:10 +02:00
Josef Schlehofer 19a424aede transmission: update to version 4.0.5
Release notes:
https://github.com/transmission/transmission/releases/tag/4.0.5

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2024-04-30 14:44:51 +02:00
Andrew Sim 45170d9b67 transmission: update to 4.0.4
Update Transamission to 4.0.4 stable release
Changelog: https://github.com/transmission/transmission/releases/tag/4.0.4

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2023-10-24 13:51:11 +01:00
Liangbin Lian 2311e79218 transmission: fix depends on libmbedtls
If a firmware build with curl without mbedtls, install transmission from openwrt official repo will fail to start

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2023-09-23 18:48:31 -07:00
Marius Dinu f0926b44f4 transmission: add copy_file_range syscall to seccomp
Fixes this crash:

root@RPi3OpenWrt:/# grep -i seccomp /var/log/audit/audit.log
type=SECCOMP msg=audit(1689503903.597:16): auid=4294967295 uid=224 gid=1012 ses=4294967295 pid=1752 comm="transmission-da" exe="/usr/bin/transmission-daemon" sig=31 arch=c00000b7 syscall=285 compat=0 ip=0x7fa3b0eefc code=0x80000000
root@RPi3OpenWrt:/# ausyscall 285
copy_file_range
root@RPi3OpenWrt:/#

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
2023-07-24 22:44:32 -07:00
Marius Dinu a037254588 transmission: add ftruncate syscall to seccomp
Fixes many crashes.

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
2023-07-18 14:56:50 +01:00
Leonid Bogdanov c662aefd9a transmission: Fix env variables passing
It's not possible to configure custom Transmission web home as corresponding
env var gets overwritten by the command that sets CA bundle env var.

Signed-off-by: Leonid Bogdanov <leonidbogdanov86@gmail.com>
2023-06-11 12:14:17 +01:00
Marius Dinu f66bcdd1b6 transmission: add missing nls.mk include
Fixes issue #21016.

Signed-off-by: Marius Dinu <m95d+git@psihoexpert.ro>
2023-05-21 12:29:36 +03:00
Daniel Golle 142bbc77f1
transmission: add missing ftruncate64 syscall
Transmission 4.0.3 started using the ftruncate64 syscall.
Add it to the list of allowed syscalls.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-19 02:55:07 +01:00
Daniel Golle 6afcc1bc88
transmission: add new syscall needed with musl 1.2.4
Apparently the "revcmsg" syscall is now needed, add it to the list
of allowed syscalls.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-18 03:18:33 +01:00
Andrew Sim f6c43e7c5a transmission: Update to v4.03
Update transmission to latest stable v4.0.3 release

Changelog: https://github.com/transmission/transmission/releases/tag/4.0.3

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2023-05-15 18:28:01 +02:00
Andre Heider e7d9c86503 treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This
fixes it and properly enables LTO.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Andre Heider 35f4ef76e0 treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.

Note: This only touches packages which use all three parts
(-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by
this build flag. Some packages only use a subset, and these are left
unchanged for now.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Daniel Golle 08ee78e022 transmission: update to version 4.0.2
See release notes for more details:
https://github.com/transmission/transmission/releases/tag/4.0.2

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-03-20 02:57:48 +00:00
Daniel Golle 96fd2dc531 transmission: update to version 4.0.1
This is a major release, both in numbering and in effort! It's been in
active development for over a year and has a huge list of changes --
over a thousand commits -- since Transmission 3.00.

For more information about the release see
https://github.com/transmission/transmission/releases/tag/4.0.0
https://github.com/transmission/transmission/releases/tag/4.0.1

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-03-07 01:40:14 +00:00
Salim B 63dc13d7d2 transmission: retrieve boolean config opts using `config_get_bool`
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>
2023-02-13 01:50:52 +01:00
Rosen Penev 142b73b5db transmission: get rid of iconv dependency
No need for an external one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-10 18:26:50 -07:00
Alexander Egorenkov cbc1b0790d transmission: add 'incomplete' and 'watch' dirs to ujail mounts
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>
2022-04-13 15:03:15 +01:00
Matthew Hagan 019501fe44 transmission: add ca_bundle support with procd-ujail
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>
2022-01-09 21:18:15 +00:00
Daniel Golle 2d09384be7
transmission: include default 'web_home' dir in jail
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>
2021-11-20 16:29:28 +00:00
Daniel Golle c2f2e1706a
transmission: add a bunch of syscalls to seccomp filter
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>
2021-11-20 11:57:10 +00:00
Ren Zongjia 1a5d35dd7b transmission: update seccomp config file
Add missing syscalls found using utrace.

Signed-off-by: Ren Zongjia <acooler15@foxmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-10-28 16:31:30 +01:00
Rosen Penev 6786e35ff8 transmission: build with wolfSSL again
The problem was discovered and is now patched with an upstream backport.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-14 14:17:34 +01:00
Daniel Golle 13516fa188
transmission: add two more syscalls to seccomp filter
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>
2021-09-25 08:27:08 +01:00
Daniel Golle 847b17651a
transmission: add mount trigger
Restart transmission once an underlaying mountpoint becomes available.
Add myself as maintainer.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-08-08 15:49:26 +01:00
Rui Salvaterra 2c90c305a6 transmission: apply DSCP to UDP sockets too
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>
2021-08-01 23:14:07 +01:00
Daniel Golle a78e527012
transmission: bump PKG_RELEASE
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>
2021-07-10 22:53:26 +01:00
Daniel Golle 1141ee1e51
transmission: add new syscalls to seccomp filter
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>
2021-07-10 22:04:50 +01:00
Daniel Golle 9ea8cccd35 transmission: add syscalls needed on PPC to seccomp rules
Add fadvise64_64 and fchmod syscalls needed on PowerPC platforms to
seccomp rules of transmission-daemon.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-01-06 22:17:40 +00:00
Rosen Penev 044b05fc04
transmission: do not use wolfSSL
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>
2020-12-31 18:05:03 -08:00
Daniel Golle 20c52fc651 transmission: jail: add allow 'getuid' syscall
transmission needs 'getuid', at least on mips_24kc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-12-20 19:09:43 +00:00
Daniel Golle 6b2ec8bcb5
transmission: convert seccomp filter rules to OCI format
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>
2020-11-17 13:16:17 +00:00
Rosen Penev 56e4edad82 transmission: remove variants and use libcurl's TLS library
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>
2020-10-26 21:45:32 -07:00
Rosen Penev 27ba7533e1
transmission: fix mbedtls search
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>
2020-10-13 21:07:46 -07:00
Rosen Penev d5818c8a81
transmission: fix compilation with full NLS
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-29 14:17:12 -07:00
Josef Zila 9a82c952b4 transmission: add access to web interface files to procd jail
Signed-off-by: Josef Zila <josefzila@gmail.com>
2020-06-18 13:48:07 +02:00
Rosen Penev 89fc95c4fc
transmission: add a disabled notification
Helps to see that transmission must be enabled.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-15 19:44:15 -07:00
Jan Pavlinec a6bffd306f
transmission: init script check syscall list for seccomp
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-05-26 14:16:40 +02:00
Rosen Penev 93485dd317
transmission: update to 3.0
remove upstreamed patches. Refresh remaining one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-24 21:20:36 -07:00
Francesco G 4fcc44bc89 transmission: add init file STOP directive
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>
2020-04-07 12:44:23 +02:00
Daniel Golle 5eccf7e582 Revert "transmission: mount /etc/resolv.conf in jail"
This reverts commit 9778e2f66f.
/etc/resolv.conf is now mounted by default by procd/ujail.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-03-13 20:09:21 +01:00
Daniel Golle 9778e2f66f transmission: mount /etc/resolv.conf in jail
transmission needs to have name resolution to be able to resolve
the trackers' hostnames.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-03-12 21:19:05 +01:00
Daniel Golle 3724ed3d68 transmission: add syscalls to seccomp filter
Syscalls observered when running on arm32. Add them to seccomp rule.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-03-08 17:43:03 +01:00
Richard Yu c6c8ceb0b4
transmission: add service triggers and bump PKG_RELEASE
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
2020-01-18 20:38:03 +08:00
Richard Yu 53fd02d62c
transmission: update config options
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>
2020-01-18 20:36:35 +08:00
Rosen Penev 94d893afce
transmission: Fix message_level setting
--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>
2020-01-08 19:27:17 -08:00
Daniel Golle 836127bc24 transmission: fix typo in jail setup
Fixes: 609109fa9 ("transmission: add seccomp filter and improve jail")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-01-09 02:32:25 +02:00