mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #7202] [MERGED] Add option to change unix socket permissions #11298
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/7202
Author: @knackebrot
Created: 1/17/2022
Status: ✅ Merged
Merged: 3/26/2022
Merged by: @crobibero
Base:
master← Head:unix-perms📝 Commits (2)
52c61bdAdd option to change unix socket permissions0a068b9Fix casing of chmod📊 Changes
2 files changed (+66 additions, -14 deletions)
View changed files
📝
Jellyfin.Server/Program.cs(+53 -14)📝
MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs(+13 -0)📄 Description
Using P/Invoke might look scary, but since we're limited to unices and libc, this should work pretty reliably.
Changes
When new configuration parameter
kestrel:socketPermissionsis set (e.g.0777), try to change the unix socket's permissions to its value.Issues
Fixes #5311
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.