Some changes meow

This commit is contained in:
whitecum1488 2026-07-08 02:07:36 +04:00
parent b74589b5c8
commit d784e08e78
4 changed files with 20 additions and 15 deletions

View file

@ -19,18 +19,17 @@
| ChromeOS/ChromiumOS | 0.4% | Неизвестное | | ChromeOS/ChromiumOS | 0.4% | Неизвестное |
| MacOS | 10% | Неизвестное, но работа ведётся | | MacOS | 10% | Неизвестное, но работа ведётся |
# Окружения рабочего стола # Окружения рабочего стола
| Окружение | Завершено | | Окружение | Завершено |
| LXDE | 100% | | LXDE | 100% |
| XFCE | 0% | | XFCE | 10% |
| GNOME | 0% | | GNOME | 10% |
| KDE | 0% | | KDE | 10% |
| LXQt | 0% | | LXQt | 0% |
| MATE | 0% | | MATE | 0% |
| Cinnamon | 0% | | Cinnamon | 10% |
| Budgie | 0% | | Budgie | 0% |
| Deepin | 0% | | Deepin | 10% |
| COSMIC | 0% | | COSMIC | 0% |
| Pantheon | 0% | | Pantheon | 0% |
| Enlightenment | 0% | | Enlightenment | 0% |

View file

@ -54,3 +54,6 @@ crash() function update
Start house reworked Start house reworked
removed SDL joystick support removed SDL joystick support
fixed SECCOMP blocking UDEV sockets fixed SECCOMP blocking UDEV sockets
Some Barens changes
dev room!
MacOS support in SecurityManager

View file

@ -3,7 +3,7 @@
#include "meow.h" #include "meow.h"
#include "debugwriter.h" #include "debugwriter.h"
#include <stdio.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. // In the future, we plan to add a mod loader, so this component is needed to protect users from mod attacks.
#ifdef __linux__ #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))){ 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)"; Debug() << "seccomp_rule_add failed for extra rules (socketpair)";
} }
if(seccomp_load(ctx) < 0) { 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!"); 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); seccomp_release(ctx);
} }
} }
SDL_Sandbox Sandbox = SDL_GetSandbox();
securitystate = "sandboxed_SECCOMP"; 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 #else
Debug() << "[SECURITY] SecurityManager doesn't support this platform."; Debug() << "[SECURITY] SecurityManager doesn't support this platform.";
#endif #endif

View file

@ -1,4 +1,3 @@
#ifdef _WIN32 #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN 1 #define WIN32_LEAN_AND_MEAN 1
#include <windows.h> #include <windows.h>