Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CC37105F78C for ; Fri, 13 Mar 2026 11:08:49 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 19A9D3E4906 for ; Fri, 13 Mar 2026 12:08:48 +0100 (CET) Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 195EA3E56B4 for ; Fri, 13 Mar 2026 12:07:49 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) (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) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 58B3F200987 for ; Fri, 13 Mar 2026 12:07:49 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CDB385BD6B; Fri, 13 Mar 2026 11:07:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1773400049; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j3t51JopTKKjq0tYKlFvVvhVDclv1FOiWVFxjl7cQTk=; b=uOnaevNfgVA5SKmIIoM0nNV4eEutnDmXTO4tSWNFI0zePHFmih5PVKZgnBsyK9+ZHcnehp oeYcLz+neXmRad5AYKg1KWdRcE+42A6db54CMjwWhMHrMUMPLApzYSbcNAwwD2ADeuHMjo v88WPPQI8e8v51IcHPDabN4Yjh0iDo8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1773400049; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j3t51JopTKKjq0tYKlFvVvhVDclv1FOiWVFxjl7cQTk=; b=PD1lOihVUrCPdA3Dh6bDqIL+mfbmL5AppGSi0EAjfLCdmfrYInaJgu0tko1tkC4NBwN4o8 Qp3ri1BpFz9QyADA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=uOnaevNf; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=PD1lOihV DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1773400049; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j3t51JopTKKjq0tYKlFvVvhVDclv1FOiWVFxjl7cQTk=; b=uOnaevNfgVA5SKmIIoM0nNV4eEutnDmXTO4tSWNFI0zePHFmih5PVKZgnBsyK9+ZHcnehp oeYcLz+neXmRad5AYKg1KWdRcE+42A6db54CMjwWhMHrMUMPLApzYSbcNAwwD2ADeuHMjo v88WPPQI8e8v51IcHPDabN4Yjh0iDo8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1773400049; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j3t51JopTKKjq0tYKlFvVvhVDclv1FOiWVFxjl7cQTk=; b=PD1lOihVUrCPdA3Dh6bDqIL+mfbmL5AppGSi0EAjfLCdmfrYInaJgu0tko1tkC4NBwN4o8 Qp3ri1BpFz9QyADA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B02FB404C0; Fri, 13 Mar 2026 11:07:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id UD1EKfHvs2ndbAAAD6G6ig (envelope-from ); Fri, 13 Mar 2026 11:07:29 +0000 From: Andrea Cervesato Date: Fri, 13 Mar 2026 12:07:28 +0100 MIME-Version: 1.0 Message-Id: <20260313-listns-v1-2-04ef0081a377@suse.com> References: <20260313-listns-v1-0-04ef0081a377@suse.com> In-Reply-To: <20260313-listns-v1-0-04ef0081a377@suse.com> To: Linux Test Project X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773400049; l=1287; i=andrea.cervesato@suse.com; s=20251210; h=from:subject:message-id; bh=AjcLmnHiPrV19z7JPdestYgUKl8Z5IC5R9XpnTEaPPw=; b=X4FaXzAQ9nDOWqHJmwirANRlHCQifUai0YHrbZxdo68wBPdJf1A0qEJZJssk/lpUTw5VJFUiN mfWcThb3ZCXAI46J7bXrAJ2KArbMUTabHiyv3c9wz8nI/u3IvwWu5Iu X-Developer-Key: i=andrea.cervesato@suse.com; a=ed25519; pk=zKY+6GCauOiuHNZ//d8PQ/UL4jFCTKbXrzXAOQSLevI= X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.com:mid,suse.com:email]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Queue-Id: CDB385BD6B X-Virus-Scanned: clamav-milter 1.0.9 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 2/5] Add listns fallback header X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" From: Andrea Cervesato Create include/lapi/listns.h header file for listns syscall related definitions. Signed-off-by: Andrea Cervesato --- include/lapi/listns.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/include/lapi/listns.h b/include/lapi/listns.h new file mode 100644 index 0000000000000000000000000000000000000000..d242d3340ee4286fb8621b1633061c8087c54e7c --- /dev/null +++ b/include/lapi/listns.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2025 Linux Test Project + */ + +#ifndef LAPI_LISTNS_H__ +#define LAPI_LISTNS_H__ + +#include +#include "lapi/syscalls.h" +#include "lapi/sched.h" + +#ifndef NS_ID_REQ_SIZE_VER0 +#define NS_ID_REQ_SIZE_VER0 32 +#endif + +#ifndef LISTNS_CURRENT_USER +#define LISTNS_CURRENT_USER 0xffffffffffffffffULL +#endif + +struct listns_req { + uint32_t size; + uint32_t spare; + uint64_t ns_id; + uint32_t ns_type; + uint32_t spare2; + uint64_t user_ns_id; +}; + +static inline int listns(struct listns_req *req, uint64_t *ns_ids, + size_t nr_ns_ids, unsigned int flags) +{ + return tst_syscall(__NR_listns, req, ns_ids, nr_ns_ids, flags); +} + +#endif /* LAPI_LISTNS_H__ */ -- 2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp