mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Some changes meow
This commit is contained in:
parent
b74589b5c8
commit
d784e08e78
4 changed files with 20 additions and 15 deletions
11
PORTING.md
11
PORTING.md
|
|
@ -19,18 +19,17 @@
|
|||
| ChromeOS/ChromiumOS | 0.4% | Неизвестное |
|
||||
| MacOS | 10% | Неизвестное, но работа ведётся |
|
||||
|
||||
|
||||
# Окружения рабочего стола
|
||||
| Окружение | Завершено |
|
||||
| LXDE | 100% |
|
||||
| XFCE | 0% |
|
||||
| GNOME | 0% |
|
||||
| KDE | 0% |
|
||||
| XFCE | 10% |
|
||||
| GNOME | 10% |
|
||||
| KDE | 10% |
|
||||
| LXQt | 0% |
|
||||
| MATE | 0% |
|
||||
| Cinnamon | 0% |
|
||||
| Cinnamon | 10% |
|
||||
| Budgie | 0% |
|
||||
| Deepin | 0% |
|
||||
| Deepin | 10% |
|
||||
| COSMIC | 0% |
|
||||
| Pantheon | 0% |
|
||||
| Enlightenment | 0% |
|
||||
|
|
|
|||
|
|
@ -54,3 +54,6 @@ crash() function update
|
|||
Start house reworked
|
||||
removed SDL joystick support
|
||||
fixed SECCOMP blocking UDEV sockets
|
||||
Some Barens changes
|
||||
dev room!
|
||||
MacOS support in SecurityManager
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "meow.h"
|
||||
#include "debugwriter.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include <SDL3/SDL_system.h>
|
||||
// In the future, we plan to add a mod loader, so this component is needed to protect users from mod attacks.
|
||||
|
||||
#ifdef __linux__
|
||||
|
|
@ -49,16 +49,20 @@ void SecurityManagerInit(){
|
|||
if(seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EPERM), SCMP_SYS(socketpair), 1, SCMP_CMP(0, SCMP_CMP_NE, AF_UNIX))){
|
||||
Debug() << "seccomp_rule_add failed for extra rules (socketpair)";
|
||||
}
|
||||
|
||||
|
||||
if(seccomp_load(ctx) < 0) {
|
||||
WarnMsg("Warning: Failed to load SECCOMP! If you receive this warning, IT IS NOT RECOMMENDED to add any third-party modifications to Sunshine!");
|
||||
seccomp_release(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
SDL_Sandbox Sandbox = SDL_GetSandbox();
|
||||
securitystate = "sandboxed_SECCOMP";
|
||||
|
||||
if(Sandbox == SDL_SANDBOX_FLATPAK)
|
||||
securitystate = "sandboxed_FLATPAK";
|
||||
if(Sandbox == SDL_SANDBOX_SNAP)
|
||||
securitystate = "sandboxed_SNAP";
|
||||
#elif __APPLE__
|
||||
if(SDL_GetSandbox() == SDL_SANDBOX_MACOS)
|
||||
securitystate = "sandboxed_MacOS";
|
||||
#else
|
||||
Debug() << "[SECURITY] SecurityManager doesn't support this platform.";
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN 1
|
||||
#include <windows.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue