diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2026-05-24 15:40:32 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2026-05-24 15:40:32 +0000 |
| commit | dea2a1fa20fc8e843cd85e5920a67b9054d00b2e (patch) | |
| tree | f331ff92dc5fd26f5803b483a24a0a21fd9bb97a /repos/extra/librewolf/musl-sandbox-sched.patch | |
| parent | ef5bfeb93345a5a681d88e99775622bf28defd8d (diff) | |
| download | alicelinux-dea2a1fa20fc8e843cd85e5920a67b9054d00b2e.tar.gz alicelinux-dea2a1fa20fc8e843cd85e5920a67b9054d00b2e.zip | |
Woodpecker CI ef5bfeb93345a5a681d88e99775622bf28defd8d [SKIP CI]
Diffstat (limited to 'repos/extra/librewolf/musl-sandbox-sched.patch')
| -rw-r--r-- | repos/extra/librewolf/musl-sandbox-sched.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/repos/extra/librewolf/musl-sandbox-sched.patch b/repos/extra/librewolf/musl-sandbox-sched.patch deleted file mode 100644 index 87b6e660..00000000 --- a/repos/extra/librewolf/musl-sandbox-sched.patch +++ /dev/null @@ -1,57 +0,0 @@ -diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp ---- a/security/sandbox/linux/SandboxFilter.cpp -+++ b/security/sandbox/linux/SandboxFilter.cpp -@@ -1759,16 +1759,24 @@ - return Allow(); - case __NR_sched_get_priority_min: - case __NR_sched_get_priority_max: - return Allow(); - case __NR_sched_getparam: -- case __NR_sched_getscheduler: -- case __NR_sched_setscheduler: { -+#if defined(LIBC_GLIBC) -+ case __NR_sched_setscheduler: -+#endif -+ case __NR_sched_getscheduler: { - Arg<pid_t> pid(0); - return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr)); - } - -+#if !defined(LIBC_GLIBC) -+ // For pthread_create(3) on musl; bug 1657849. -+ case __NR_sched_setscheduler: -+ return Allow(); -+#endif -+ - // For clock(3) on older glibcs; bug 1304220. - case __NR_times: - return Allow(); - - // Bug 1372428 -@@ -1950,17 +1958,25 @@ - case __NR_sched_getaffinity: - case __NR_sched_setaffinity: - case __NR_sched_getparam: - case __NR_sched_setparam: - case __NR_sched_getscheduler: -+#if defined(LIBC_GLIBC) - case __NR_sched_setscheduler: -+#endif - case __NR_sched_getattr: - case __NR_sched_setattr: { - Arg<pid_t> pid(0); - return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr)); - } - -+#if !defined(LIBC_GLIBC) -+ // For pthread_create(3) on musl; bug 1657849. -+ case __NR_sched_setscheduler: -+ return Allow(); -+#endif -+ - // The priority bounds are also used, sometimes (bug 1838675): - case __NR_sched_get_priority_min: - case __NR_sched_get_priority_max: - return Allow(); - - |