-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path0600-libxl-create-writable-error-xenstore-dir.patch
35 lines (31 loc) · 1.3 KB
/
0600-libxl-create-writable-error-xenstore-dir.patch
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
From ddaa31a57aae1ddeb7ed410eb2d4801b02dde8c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
<marmarek@invisiblethingslab.com>
Date: Wed, 16 Nov 2022 00:26:48 +0100
Subject: [PATCH] libxl: create writable 'error' xenstore dir
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The dir is used by backend hotplug scripts to write error details. When
the backend is in dom0, it implicitly have write access, but the
permission was missing for non-dom0 backends.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
tools/libs/light/libxl_create.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/libs/light/libxl_create.c b/tools/libs/light/libxl_create.c
index edeadd57ef5a..48c625992149 100644
--- a/tools/libs/light/libxl_create.c
+++ b/tools/libs/light/libxl_create.c
@@ -900,6 +900,9 @@ retry_transaction:
libxl__xs_mknod(gc, t,
GCSPRINTF("%s/data", dom_path),
rwperm, ARRAY_SIZE(rwperm));
+ libxl__xs_mknod(gc, t,
+ GCSPRINTF("%s/error", dom_path),
+ rwperm, ARRAY_SIZE(rwperm));
libxl__xs_mknod(gc, t,
GCSPRINTF("%s/drivers", dom_path),
rwperm, ARRAY_SIZE(rwperm));
--
2.44.0