Commit Graph
71 Commits
Author SHA1 Message Date
Conn O'Griofa 55d6c0f878 feat(linux): Portal capture fallback support, misc fixes (#5774) 2026-09-25 14:47:58 -04:00
Conn O'Griofa 7a987eecf1 feat(linux): use privileged EGL worker thread (#5709) 2026-09-14 19:34:24 -04:00
c553565b98 Merge commit from fork
Sanitize GUI loader and plugin environment variables before privileged initialization, failing closed when the environment cannot be cleaned.

Retain CAP_SYS_ADMIN only on a dedicated DRM worker, route KMS and CUDA DRM access through it, reject queued work safely during overflow or shutdown, and drop the worker privileges when DRM access is no longer needed.

Add Linux regression coverage for the sanitizer and document the new privileged-worker interfaces.

Co-authored-by: Conn O'Griofa <749000+psyke83@users.noreply.github.com>
Co-authored-by: Kishi <41839133+Kishi85@users.noreply.github.com>
2026-09-13 16:37:49 -04:00
Dave Lane f7e550d4ab feat(config): add gamepad_driver option (#5653) 2026-09-08 19:27:07 -04:00
Dave Lane 71189aecc1 chore(deps): bump libvirtualhid (#5585) 2026-09-05 21:44:54 -04:00
Dave Lane 687e12d013 feat(input): implement libvirtualhid adding new gamepad styles (#5368) 2026-08-16 15:24:58 -04:00
Dave Lane 3377f7a73f refactor(sonar): migrate worker threads to std::jthread (#5398) 2026-07-12 00:30:05 -04:00
Cameron Gutman c42d20eb1a perf(deps): switch to upstream nanors runtime dispatching (#5369) 2026-07-03 22:31:23 -04:00
Dave Lane a991a9622c docs(doxygen): enforce warn if undocumented (#5337) 2026-06-25 22:43:17 -04:00
Kishi 4ad69aaa20 fix(tray): fix compiling without system tray enabled (#5284) 2026-06-12 13:05:50 -04:00
James Le Cuirot 676d331ba9 fix: building without the system tray enabled (#5092) 2026-05-10 21:22:56 -04:00
Conn O'Griofa 31b85802d0 fix: redact logging of sensitive config & CSRF validation (#4955) 2026-04-08 11:29:44 -04:00
Andy Grundman 423a864ee3 feat(macos): build a signed .app bundle in a .dmg (#4759) 2026-03-03 23:30:53 -05:00
David Lane 5bd3a2b225 docs: miscellaneous updates (#4597) 2026-02-08 00:12:38 -05:00
Andy Grundman 3a12f96a86 perf(threads): implement adjust_thread_priority for macOS and add set_thread_name (#4605) 2026-01-22 19:38:09 -05:00
Cameron Gutman f1f9e755a9 fix(tray): use the blocking event loop to avoid wasting power (#4457) 2025-11-29 12:39:45 -06:00
Kishi 8bff4d0780 feat(tray): Add runtime config option to enable/disable system tray (#4208) 2025-09-01 14:07:31 -04:00
ReenigneArcherandLukas Senionis 73f84fb6dd fix(tray): optionally run tray in main event loop enabling support for macOS (#3818)
Co-authored-by: Lukas Senionis <22381748+FrogTheFrog@users.noreply.github.com>
2025-09-01 11:30:18 -04:00
ReenigneArcher fc7b9e30c8 style(sonar): fix cpp:S4962 (#4140) 2025-08-08 00:45:53 -04:00
Cameron Gutman c0823c7444 fix(power): don't wake up every 500ms to poll while not streaming (#4051) 2025-07-06 13:16:56 -05:00
ReenigneArcher 2259141bd2 build(packaging): version number improvements (#4037) 2025-07-03 19:07:02 -04:00
Cameron Gutman 9db11a9061 feat(security/windows): Add defense-in-depth measure for insecure system PATH configuration (#3971)
feature(security/windows): Add defense-in-depth measure for insecure system PATH configuration

If an administrator has configured their system insecurely by adding a
user-writeable path to the system-wide PATH variable, this can cause
apps running as admin to load DLLs planted in this directory.

While the root cause is clearly the misconfigured system, we can reduce
Sunshine's exposure to this by asking Windows not to search the PATH.

https://devblogs.microsoft.com/oldnewthing/20200420-00/?p=103685
2025-06-12 23:11:03 -04:00
ReenigneArcher 3e41770d44 fix(config): ensure logging config settings are properly loaded (#3777) 2025-04-03 13:32:46 -04:00
ReenigneArcher 5f9fe26df3 fix(config): parse config after logging initialized (#3769) 2025-03-30 15:33:39 -04:00
ReenigneArcherandVithorio Polten c2420427b1 style: adjust clang-format rules (#2186)
Co-authored-by: Vithorio Polten <reach@vithor.io>
2025-01-19 22:34:47 -05:00
Lukas Senionis 76bea8acb9 feat(display): Configure display device based on user config (#3441) 2025-01-07 20:40:48 -05:00
Lukas Senionis 1543f584ab feat(display)!: Add libdisplaydevice dependency and output name mapping (#2894) 2024-12-11 14:17:44 -05:00
ReenigneArcher 6593fa5d61 feat: add publisher metadata (#3080) 2024-08-24 20:14:45 -04:00
ns6089 4fd6c66edb Handle CTRL_CLOSE_EVENT on Windows (#2952)
This allows us to terminate gracefully when console window is closed.
Mostly relevant for portable builds.
2024-08-03 21:21:10 +00:00
Cameron Gutman e7c420dd6e Provide SSSE3, AVX2, and AVX512 optimized Reed-Solomon functions (#2828)
* Provide SSSE3, AVX2, and AVX512 optimized Reed-Solomon functions

* Update nanors to fix AVX-512 memory corruption
2024-07-11 20:22:57 -05:00
ReenigneArcher 1dd4b68e1c docs(src): add examples alias and general cleanup (#2763) 2024-06-28 08:34:14 -04:00
509576d616 feat(input/linux): add support for more virtual input devices (#2606)
Co-authored-by: ABeltramo <beltramo.ale@gmail.com>
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
2024-06-16 00:21:18 +00:00
Tejas RaoandConn O'Griofa fed482caf0 build(win): use UCRT64 environment instead of MinGW64. (#2323)
Co-authored-by: Conn O'Griofa <connogriofa@gmail.com>
2024-05-25 16:28:14 -04:00
hdL6c 5c1bad7155 Musl Linux fixes (#2401) 2024-04-11 22:34:26 -05:00
ReenigneArcher 2da6fb050a fix(logging): add logging namespace and create logging::init method (#2336) 2024-04-02 20:57:57 -04:00
ReenigneArcher 4ebc7b5cef build(macos): add build strategy matrix (#2211) 2024-03-05 08:56:09 -05:00
Cameron Gutman 83e3ea5aa7 Use a common function to abort for debugging purposes 2024-02-27 21:21:16 -06:00
ReenigneArcher 8074bf8c8d fix(main): fix version printing (#2167) 2024-02-23 20:00:53 -05:00
ReenigneArcher 8689469ea8 refactor(main): move remaining entry related code (#2127) 2024-02-11 14:15:45 -05:00
ReenigneArcher cd2153f340 refactor(main): move file operation functions to new source (#2124) 2024-02-10 07:37:27 -05:00
ReenigneArcher 1c50bc502b refactor(main): move map_port to network (#2115) 2024-02-09 09:15:47 -05:00
ReenigneArcher 0aa4f06c39 refactor(logging): separate logging from main (#2110) 2024-02-07 09:59:24 -05:00
Cameron Gutman 0d7811ad43 Demote FFmpeg fatal errors
Fixes #1849
2023-12-29 23:01:28 -06:00
ns6089 a0fcaf7d19 Properly join session monitor window thread 2023-10-10 21:10:40 -05:00
Cameron Gutman a29978d3de Don't start the session monitor window when launched in command mode 2023-10-05 21:50:48 -05:00
ReenigneArcher f76879eb0d feat(ui): add port mapping table (#1681) 2023-09-30 13:52:56 -04:00
Elia ZammutoandReenigneArcher dc967ccc7b Event Ballons and Tray Icon improvements (#1561)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
2023-09-15 20:48:51 -04:00
Cameron Gutman f9a00f3ed4 Fix FFmpeg logging going to stdout rather than our log file 2023-08-24 18:24:24 -05:00
Cameron Gutman cadd3da9a7 Use UTF-8 conversion for log output and C standard library functions 2023-08-11 20:15:14 -05:00
ns6089 f245f777f7 Modify and restore NVIDIA control panel settings
Namely:
- Power profile for sunshine.exe
- Global OpenGL/Vulkan DXGI swapchain
2023-07-19 01:14:08 -05:00