[PR #7202] [MERGED] Add option to change unix socket permissions #11298

Closed
opened 2026-02-07 06:35:58 +03:00 by OVERLORD · 0 comments
Owner

📋 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: masterHead: unix-perms


📝 Commits (2)

  • 52c61bd Add option to change unix socket permissions
  • 0a068b9 Fix 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:socketPermissions is 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/7202 **Author:** [@knackebrot](https://github.com/knackebrot) **Created:** 1/17/2022 **Status:** ✅ Merged **Merged:** 3/26/2022 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `unix-perms` --- ### 📝 Commits (2) - [`52c61bd`](https://github.com/jellyfin/jellyfin/commit/52c61bd06f6e3ef0130e7a2d0255feca777a7b3f) Add option to change unix socket permissions - [`0a068b9`](https://github.com/jellyfin/jellyfin/commit/0a068b924f0be67c8f9602288e545e39dce7314c) Fix casing of chmod ### 📊 Changes **2 files changed** (+66 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Program.cs` (+53 -14) 📝 `MediaBrowser.Controller/Extensions/ConfigurationExtensions.cs` (+13 -0) </details> ### 📄 Description Using P/Invoke might look scary, but since we're limited to unices and libc, this should work pretty reliably. **Changes** <!-- Describe your changes here in 1-5 sentences. --> When new configuration parameter `kestrel:socketPermissions` is set (e.g. `0777`), try to change the unix socket's permissions to its value. **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes #5311 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:35:58 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11298