VLC pulling in firewall rule changes seems like a slight security hardening problem
Describe your issue
When installing VLC, the following packages are pulled in: postmarketos-config-nftables-chromecast postmarketos-config-nftables-mdns postmarketos-config-nftables-upnp-client postmarketos-config-nftables-vlc-chromecast
. According to the package descriptions themselves, these are firewall rules. if I install VLC for local media playback, I shouldn't be forced to make firewall changes whatsoever - yet it seems like those dependencies are mandatory. If I'm just missing something or misunderstanding a part of this then I apologize, admittedly I'm usually not touching nftables much.
What's the expected behaviour?
VLC doesn't require any firewall changes whatsoever if I don't plan to make use of them. Edit/Clarification: as a default it's okay, but there should be an obvious way to opt out. The common approach that users will be familiar with from other distributions would be to make use of some mechanism like recommended-but-not-required dependencies.
What's the current behaviour?
VLC seems to require firewall changes which I assume let various services through, if the user doesn't plan to use them there should be a way to opt-out. As "recommended" dependency type that gets pulled in by default these would make sense, but as long as apk doesn't have that dependency type, that package setup seems problematic.
How to reproduce your issue?
Install vlc-qt and observe dependencies pulled in
What device are you using?
Steam Deck, PinePhone Allwinner 3GB RAM. The problem exists on both devices, I tested.
On what postmarketOS version did you encounter the issue?
-
edge (
master
branch) -
v24.06
-
v23.12
(supported until 2024-07-16) -
I confirm that the issue still is present after running
sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
- GNOME Shell on Mobile
- Phosh
- Plasma Mobile
-
Sxmo (Wayland/Sway) Please post the output of
sxmo_version.sh
- Other: KDE Plasma
How did you get postmarketOS image?
- from https://images.postmarketos.org
- I built it using pmbootstrap
- It was preinstalled on my device