From nobody Mon Nov 23 04:34:28 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=ibr.cs.tu-bs.de ARC-Seal: i=1; a=rsa-sha256; t=1794256541; cv=none; d=zohomail.com; s=zohoarc; b=dr6LYQPcqEOUvo6GOoZONtKON7yz48mdjUM2zh+yZCagHc/xu9ZrhZc1kq3kVgmlAIlsoIn3jx2v4cifdpvh9WGz9+ou0OncMjmEPIq2hvstSZpCWS7a+Fw1Rd7aC3JymJswqnz75Y8jcS0YBDxWy8sOYFcv/AZLpLXR0j/hTq0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794256541; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jUWtT8Y6EbyUnHrD5BqH4XyAE19BB5cVuibSnu6TYYM=; b=dc2MtH7TaQ08BcR8UM1CuZU/G7x1zmR5Dk6089pwF39soadJUWnkbxL98adhWavvcwDeRkPzcTup25ak0MxfYG2+cLj8FnwU7NdeSROcF016C6hvm2COHr9uHHjfYj3lfxh6weN9NHnQNldQeKNzLdgYqm2bph9nST88dxLPLqI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179425654115255.39895855499856; Mon, 9 Nov 2026 12:35:41 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQW1T-0003hC-TP; Mon, 09 Nov 2026 15:31:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQRir-00032I-Mk for qemu-devel@nongnu.org; Mon, 09 Nov 2026 10:55:53 -0500 Received: from mail.ibr.cs.tu-bs.de ([134.169.34.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQRip-0004cM-UN for qemu-devel@nongnu.org; Mon, 09 Nov 2026 10:55:53 -0500 Received: from work (unknown [IPv6:2001:638:602:d023:bb5a:b7cc:7fd8:120f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gollenst) by mail.ibr.cs.tu-bs.de (Postfix) with ESMTPSA id C52127CBF18F; Mon, 9 Nov 2026 16:55:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ibr.cs.tu-bs.de; s=key2; t=1794239750; bh=7wp3v31tJCTSjX65gDazYU7h48T6JQWedELv7Gw+uBY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zph1vgZ1NGmhjslYHvScHs69mZ58iINVHylXz5G2diqXoCQ3xiNzxxgIHStj+TmsZ tAMr5UzUR6Y5qfCHAhV0rgezg79nN2cfvKFozgzlaEzo1jqJNELtuLD6RsHica2hzt IQIi7aSh7Q14QP7qV+h9DHopAZUEkkMeQpyoLeGw= X-Virus-Scanned: Debian amavisd-new at ibr.cs.tu-bs.de From: Niklas Gollenstede To: qemu-devel@nongnu.org Cc: Christian Schoenebeck , Greg Kurz , Niklas Gollenstede Subject: [PATCH 1/2] 9pfs/local: allow exporting traversable but non-readable directories Date: Mon, 9 Nov 2026 16:55:02 +0100 Message-ID: <20261109155503.2530430-2-gollenstede@ibr.cs.tu-bs.de> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261109155503.2530430-1-gollenstede@ibr.cs.tu-bs.de> References: <20261109155503.2530430-1-gollenstede@ibr.cs.tu-bs.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=134.169.34.14; envelope-from=gollenstede@ibr.cs.tu-bs.de; helo=mail.ibr.cs.tu-bs.de X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 09 Nov 2026 15:31:03 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ibr.cs.tu-bs.de) X-ZM-MESSAGEID: 1794256543401158500 Content-Type: text/plain; charset="utf-8" Exporting directories via 9p that are not readable (`r`) by the current use= r failed for no reason other than requesting read permissions when opening = directories. Since the resulting directory file descriptors are only to operate on child= files, passing `O_PATH` (or rather `O_PATH_9P_UTIL`) to the open calls fix= es this. AI-used-for: root-cause analysis (Claude Opus 5.5) Signed-off-by: Niklas Gollenstede --- hw/9pfs/9p-local.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c index ee592b62f8..3bebebea04 100644 --- a/hw/9pfs/9p-local.c +++ b/hw/9pfs/9p-local.c @@ -97,7 +97,8 @@ int local_open_nofollow(FsContext *fs_ctx, const char *pa= th, int flags, int local_opendir_nofollow(FsContext *fs_ctx, const char *path) { - return local_open_nofollow(fs_ctx, path, O_DIRECTORY | O_RDONLY, 0); + return local_open_nofollow(fs_ctx, path, + O_DIRECTORY | O_RDONLY | O_PATH_9P_UTIL, 0); } static void renameat_preserve_errno(int odirfd, const char *opath, int ndi= rfd, @@ -526,7 +527,7 @@ static int local_opendir(FsContext *ctx, int dirfd; DIR *stream; - dirfd =3D local_opendir_nofollow(ctx, fs_path->data); + dirfd =3D local_open_nofollow(ctx, fs_path->data, O_DIRECTORY | O_RDON= LY, 0); if (dirfd =3D=3D -1) { return -1; } @@ -1207,7 +1208,7 @@ static int local_statfs(FsContext *s, V9fsPath *fs_pa= th, struct statfs *stbuf) { int fd, ret; - fd =3D local_open_nofollow(s, fs_path->data, O_RDONLY, 0); + fd =3D local_open_nofollow(s, fs_path->data, O_RDONLY | O_PATH_9P_UTIL= , 0); if (fd =3D=3D -1) { return -1; } @@ -1471,7 +1472,7 @@ static int local_init(FsContext *ctx, Error **errp) { LocalData *data =3D g_malloc(sizeof(*data)); - data->mountfd =3D open(ctx->fs_root, O_DIRECTORY | O_RDONLY); + data->mountfd =3D open(ctx->fs_root, O_DIRECTORY | O_RDONLY | O_PATH_9= P_UTIL); if (data->mountfd =3D=3D -1) { error_setg_file_open(errp, errno, ctx->fs_root); goto err; -- 2.54.0 From nobody Mon Nov 23 04:34:28 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=ibr.cs.tu-bs.de ARC-Seal: i=1; a=rsa-sha256; t=1794256565; cv=none; d=zohomail.com; s=zohoarc; b=QMsgvOHz+X8Cy/JsP3rX+vR4t+UtKQAcbyNokgE2iguWzcKqsPCI9e0nL48pDPZtnzi3iN53+N6YratdM6Xt0b59BZsiZi7R9e5eZisVuFqqRPIGM/Z92WxqJADN+UvIaLS6vFVzM+Wz8Qfp0F3ILI5r0gZUq8P+GAdgR9c9Rss= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794256565; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RNObRFjULvX/9YkxNQo7oD2TFVfZv12YtPBVmfvtNtA=; b=hsFm/KXQaCHzjxKVRtcAqqL+M6XaGNqiOuohe1t/DKUb4XPt2V4HfxeQDp13ooUzhK6MJtTjQke1Hd0HcOr5q3yEbPAqoT6Ie06XGUyFoRqji6SWzu8upgyRgXyr0TaCmVyROOQOSb8E2MEVXueCKGyoRbbrskpCco6ad4SYFHQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1794256565333801.1762892392145; Mon, 9 Nov 2026 12:36:05 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xQW1W-0003pH-4i; Mon, 09 Nov 2026 15:31:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQRiy-00032r-7z for qemu-devel@nongnu.org; Mon, 09 Nov 2026 10:56:00 -0500 Received: from mail.ibr.cs.tu-bs.de ([134.169.34.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xQRiu-0004cZ-P7 for qemu-devel@nongnu.org; Mon, 09 Nov 2026 10:55:58 -0500 Received: from work (unknown [IPv6:2001:638:602:d023:bb5a:b7cc:7fd8:120f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gollenst) by mail.ibr.cs.tu-bs.de (Postfix) with ESMTPSA id 972DE7CBF195; Mon, 9 Nov 2026 16:55:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ibr.cs.tu-bs.de; s=key2; t=1794239755; bh=p0bDgaPVOZFsYpYl1c0Sj4Iq0iIVE1QaqJ51pxBquOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DUlf+TQ9vR60H9NLV8vGjTdi02SU8BKgNx0FrFaaLBUYUxIRIvYF9NZ5huNwMb2f7 tQxaapmHUWqqf/cZEXJQ+7wCTrywOV4izJ7bw2NC+7iuCnH4yUjEoXZXNHl/F8eI25 rIAVVjMmw/RwBYDKcRcGmq0HA8EabE+W9MsxVozY= X-Virus-Scanned: Debian amavisd-new at ibr.cs.tu-bs.de From: Niklas Gollenstede To: qemu-devel@nongnu.org Cc: Christian Schoenebeck , Greg Kurz , Niklas Gollenstede Subject: [PATCH 2/2] tests/qtest/virtio-9p: test non-readable but traversable directories Date: Mon, 9 Nov 2026 16:55:03 +0100 Message-ID: <20261109155503.2530430-3-gollenstede@ibr.cs.tu-bs.de> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261109155503.2530430-1-gollenstede@ibr.cs.tu-bs.de> References: <20261109155503.2530430-1-gollenstede@ibr.cs.tu-bs.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=134.169.34.14; envelope-from=gollenstede@ibr.cs.tu-bs.de; helo=mail.ibr.cs.tu-bs.de X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 09 Nov 2026 15:31:03 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @ibr.cs.tu-bs.de) X-ZM-MESSAGEID: 1794256568074158500 Content-Type: text/plain; charset="utf-8" From: Claude Add two 'local' driver tests for directories that the user running QEMU may traverse (x) but not read (r), e.g. a host's /nix/store with mode 1771 that is shared with a VM: - local/walk/unreadable_dir: such a directory inside the export - local/attach/unreadable_root: the export root itself is such a directory In both cases, walking to, stat'ing and reading a known file inside the directory must work, while listing the directory must fail with EACCES. The tests are skipped if directory permissions are not enforced (e.g. when running as root). Without the previous commit, both tests fail: the walk through the non-readable directory stops at it, and with a non-readable export root QEMU does not even start. Also make the test dir cleanup restore permissions before 'rm -fr', so that it can remove such directories. AI-used-for: code (Claude Opus 5.5) Signed-off-by: Niklas Gollenstede --- tests/qtest/libqos/virtio-9p.c | 4 +- tests/qtest/virtio-9p-test.c | 134 +++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+), 1 deletion(-) diff --git a/tests/qtest/libqos/virtio-9p.c b/tests/qtest/libqos/virtio-9p.c index 823756de8c..ddb5c5030b 100644 --- a/tests/qtest/libqos/virtio-9p.c +++ b/tests/qtest/libqos/virtio-9p.c @@ -64,7 +64,9 @@ void virtio_9p_create_local_test_dir(void) void virtio_9p_remove_local_test_dir(void) { g_assert(local_test_path !=3D NULL); - g_autofree char *cmd =3D g_strdup_printf("rm -fr '%s'\n", local_test_p= ath); + /* tests may have removed permissions that 'rm' needs */ + g_autofree char *cmd =3D g_strdup_printf("chmod -R u+rwx '%s'; rm -fr = '%s'\n", + local_test_path, local_test_pat= h); int res =3D system(cmd); if (res < 0) { /* ignore error, dummy check to prevent compiler error */ diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c index 22302bd2f8..390b3cc0a3 100644 --- a/tests/qtest/virtio-9p-test.c +++ b/tests/qtest/virtio-9p-test.c @@ -1009,6 +1009,123 @@ static void fs_deep_absolute_path(void *obj, void *= data, g_string_free(path, TRUE); } +/* + * Tests for directories that are traversable (x) but not readable (r) by = the + * user running QEMU, like a Nix store directory with mode 0751 or 1771 sh= ared + * with a VM by a user that is not in its group: listing such a directory + * must fail, but all entries with known names must still be accessible. + */ +#define UNREADABLE_DIR_MODE 0111 +#define UNREADABLE_DIR_FILE_CONTENT "known file content\n" + +/* creates "/known/file", then removes read permission from */ +static void create_unreadable_dir(const char *dir) +{ + g_autofree char *known =3D g_build_filename(dir, "known", NULL); + g_autofree char *file =3D g_build_filename(known, "file", NULL); + + g_assert(g_mkdir_with_parents(known, 0755) =3D=3D 0); + g_assert(g_file_set_contents(file, UNREADABLE_DIR_FILE_CONTENT, -1, NU= LL)); + g_assert(chmod(dir, UNREADABLE_DIR_MODE) =3D=3D 0); +} + +/* true if the permission setup is ineffective, e.g. because we are root */ +static bool unreadable_dir_is_readable(const char *dir) +{ + DIR *d =3D opendir(dir); + + if (d) { + closedir(d); + return true; + } + g_assert_cmpint(errno, =3D=3D, EACCES); + return false; +} + +/* + * Walk to and read "known/file" in the unreadable directory @dir_path (NU= LL + * for the export root), and check that the unreadable directory can't be + * listed. + */ +static void do_unreadable_dir_checks(QVirtio9P *v9p, const char *dir_path) +{ + const uint32_t len =3D strlen(UNREADABLE_DIR_FILE_CONTENT); + g_autofree char *buf =3D g_malloc0(len + 1); + g_autofree char *file_path =3D + g_build_filename(dir_path ? dir_path : "", "known/file", NULL); + struct v9fs_attr attr; + uint32_t fid_dir, fid_file, count; + uint16_t nwqid; + + /* the unreadable dir itself can be walked to and stat'ed ... */ + fid_dir =3D twalk({ .client =3D v9p, .fid =3D 0, .path =3D dir_path })= .newfid; + tgetattr({ + .client =3D v9p, .fid =3D fid_dir, .request_mask =3D P9_GETATTR_BA= SIC, + .rgetattr.attr =3D &attr + }); + g_assert_cmpint(attr.mode & 07777, =3D=3D, UNREADABLE_DIR_MODE); + /* ... but not opened for listing */ + tlopen({ + .client =3D v9p, .fid =3D fid_dir, .flags =3D O_RDONLY | O_DIRECTO= RY, + .expectErr =3D EACCES + }); + + /* entries with known names in it are fully accessible */ + /* (a partial walk is not an error on protocol level, so check nwqid) = */ + fid_file =3D twalk({ + .client =3D v9p, .fid =3D 0, .path =3D file_path, + .rwalk =3D { .nwqid =3D &nwqid } + }).newfid; + g_assert_cmpint(nwqid, =3D=3D, dir_path ? 3 : 2); + tgetattr({ + .client =3D v9p, .fid =3D fid_file, .request_mask =3D P9_GETATTR_B= ASIC, + .rgetattr.attr =3D &attr + }); + g_assert_cmpint(attr.size, =3D=3D, len); + tlopen({ .client =3D v9p, .fid =3D fid_file, .flags =3D O_RDONLY }); + count =3D tread({ + .client =3D v9p, .fid =3D fid_file, .offset =3D 0, .count =3D len, + .rread =3D { .count =3D &count, .data =3D buf } + }).count; + g_assert_cmpint(count, =3D=3D, len); + g_assert_cmpstr(buf, =3D=3D, UNREADABLE_DIR_FILE_CONTENT); +} + +/* non-readable but traversable directory within the export root */ +static void fs_walk_unreadable_dir(void *obj, void *data, + QGuestAllocator *t_alloc) +{ + QVirtio9P *v9p =3D obj; + v9fs_set_allocator(t_alloc); + g_autofree char *dir =3D virtio_9p_test_path("unreadable_dir"); + + create_unreadable_dir(dir); + if (unreadable_dir_is_readable(dir)) { + g_test_skip("Directory permissions are not enforced (root?)"); + return; + } + + tattach({ .client =3D v9p }); + do_unreadable_dir_checks(v9p, "unreadable_dir"); +} + +/* the export root itself is non-readable but traversable */ +static void fs_attach_unreadable_root(void *obj, void *data, + QGuestAllocator *t_alloc) +{ + QVirtio9P *v9p =3D obj; + v9fs_set_allocator(t_alloc); + g_autofree char *root =3D virtio_9p_test_path(""); + + if (unreadable_dir_is_readable(root)) { + g_test_skip("Directory permissions are not enforced (root?)"); + return; + } + + tattach({ .client =3D v9p }); + do_unreadable_dir_checks(v9p, NULL); +} + static void fs_local_xattr_limit_default(void *obj, void *data, QGuestAllocator *t_alloc) { @@ -1070,6 +1187,18 @@ static void *assign_9p_local_driver(GString *cmd_lin= e, void *arg) return arg; } +static void *assign_9p_local_driver_unreadable_root(GString *cmd_line, + void *arg) +{ + g_autofree char *root =3D NULL; + + assign_9p_local_driver_with_args(cmd_line, NULL); + /* must be set up before QEMU opens the export root */ + root =3D virtio_9p_test_path(""); + create_unreadable_dir(root); + return arg; +} + static void *local_max_xattr_custom_opt(GString *cmd_line, void *arg) { assign_9p_local_driver_with_args(cmd_line, "max_xattr=3D100"); @@ -1140,6 +1269,8 @@ static void register_virtio_9p_test(void) &opts); qos_add_test("local/deep_absolute_path", "virtio-9p", fs_deep_absolute_path, &opts); + qos_add_test("local/walk/unreadable_dir", "virtio-9p", + fs_walk_unreadable_dir, &opts); qos_add_test("local/xattr_limit/default", "virtio-9p", fs_local_xattr_limit_default, &opts); opts.before =3D local_max_xattr_custom_opt; @@ -1148,6 +1279,9 @@ static void register_virtio_9p_test(void) opts.before =3D local_max_xattr_unlimited_opt; qos_add_test("local/xattr_limit/unlimited", "virtio-9p", fs_local_xattr_limit_unlimited, &opts); + opts.before =3D assign_9p_local_driver_unreadable_root; + qos_add_test("local/attach/unreadable_root", "virtio-9p", + fs_attach_unreadable_root, &opts); } libqos_init(register_virtio_9p_test); -- 2.54.0