© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
BazziteB
Bazzite•8mo ago•
5 replies
Spas

Permanently allow SELinux to my Jellyfin Docker container

Hey fellas, getting some permissions behavior from my SELinux on my Jellyfin docker container;

Everything works as long as I don't reboot the OS - then the following happens:

[in#0 @ 0x55562e261100] Error opening input: Permission denied
[in#0 @ 0x55562e261100] Error opening input: Permission denied

Error opening input file file:/media/series/...mkv.
Error opening input file file:/media/series/...mkv.

Error opening input files: Permission denied
Error opening input files: Permission denied

[in#0 @ 0x55bb1fd4b280] Error opening input: Permission denied
[in#0 @ 0x55bb1fd4b280] Error opening input: Permission denied

Error opening input file file:/media/series/...mkv.
Error opening input file file:/media/series/...mkv.

Error opening input files: Permission denied
Error opening input files: Permission denied


File system permissions are correct, but it's SELinux that enforces it anyways; as soon as I do
 sudo setenforce 0
 sudo setenforce 0
all works as expected.

My initial idea was toe set SELinux context in the Docker manifest file using semanage:
sudo chcon -Rt svirt_sandbox_file_t /home/spasoff/<movies>
sudo chcon -Rt svirt_sandbox_file_t /home/spasoff/<movies>

sudo chcon -Rt svirt_sandbox_file_t /home/spasoff/<series>
sudo chcon -Rt svirt_sandbox_file_t /home/spasoff/<series>

sudo chcon -Rt svirt_sandbox_file_t /home/spasoff/jellyfin/config
sudo chcon -Rt svirt_sandbox_file_t /home/spasoff/jellyfin/config


Not sure however if this will persist through reboots, because from what I know, Bazzite protects everything at system level. Thus, my idea was to make custom change in
/etc/fstab
/etc/fstab
because my understanding is
rpm-ostree
rpm-ostree
SHOULD preserve the files since they are user-edited, correct?

tl;dr my ide was to edit
/etc/fstab
/etc/fstab
with:
/home/spasoff/FILM4ITA   /home/spasoff/FILM4ITA   none   bind,context="system_u:object_r:svirt_sandbox_file_t:s0"   0 0
/home/spasoff/FILM4ITA   /home/spasoff/FILM4ITA   none   bind,context="system_u:object_r:svirt_sandbox_file_t:s0"   0 0

/home/spasoff/SERIAL4ITA /home/spasoff/SERIAL4ITA none   bind,context="system_u:object_r:svirt_sandbox_file_t:s0"   0 0
/home/spasoff/SERIAL4ITA /home/spasoff/SERIAL4ITA none   bind,context="system_u:object_r:svirt_sandbox_file_t:s0"   0 0


Then remount and it should persist through reboots?
BazziteJoin
The operating system for the next generation of gamers.
29,482Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SElinux
BazziteBBazzite / 🛟bazzite-help
6mo ago
Jellyfin
BazziteBBazzite / 🛟bazzite-help
12mo ago
Plex Server Docker Container
BazziteBBazzite / 🛟bazzite-help
10mo ago
SELinux Permissions Issue
BazziteBBazzite / 🛟bazzite-help
4mo ago