aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/pipewire/fcc8d79b6b5e1bc21ff7ea6353f3cd230e9243ee.patch
blob: c5318f4facc42f8a5d6b91db4c7775ae5cec89c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From fcc8d79b6b5e1bc21ff7ea6353f3cd230e9243ee Mon Sep 17 00:00:00 2001
From: Julian Bouzas <julian.bouzas@collabora.com>
Date: Fri, 16 Oct 2026 14:44:36 -0400
Subject: [PATCH] m-lua-scripting: fix the values of the Perm constants

Lua does not support octal literals, so the permission values were
parsed as decimal numbers and did not match the PipeWire ones. This
gave restricted and flatpak clients write and link permissions. Use
hexadecimal values instead.

Fixes: #1044
Assisted-by: Claude:claude-opus-5-5
---
 modules/module-lua-scripting/api/api.lua | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/module-lua-scripting/api/api.lua b/modules/module-lua-scripting/api/api.lua
index aafa49d98..0ca8c4155 100644
--- a/modules/module-lua-scripting/api/api.lua
+++ b/modules/module-lua-scripting/api/api.lua
@@ -184,11 +184,11 @@ local Feature = {
   },
 }
 
-PERM_R_VAL = 0400
-PERM_W_VAL = 0200
-PERM_X_VAL = 0100
-PERM_M_VAL = 0010
-PERM_L_VAL = 0020
+PERM_R_VAL = 0x100
+PERM_W_VAL = 0x080
+PERM_X_VAL = 0x040
+PERM_M_VAL = 0x008
+PERM_L_VAL = 0x010
 
 local Perm = {
   NONE = 0,
-- 
GitLab