From nobody Fri May 17 09:38:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614797222; cv=none; d=zohomail.com; s=zohoarc; b=D3CbJsVL8Fua0BQcz/kgthSk7rJrBqSvOR0d4FkRB05fVBXaS9wvg43dY9xyvGp5exJoi1y36fiiCkeZ0P/T0H9oZ5+Vjr3DF2iA6kfsLsqOhHkxdS++RNOH8uDC+GOXsJr3yPWyjjEJfjwIGA0KtdLb2t8lShjsudUyue/X9UU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614797222; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0ygJSAUu3nItqoE7XwzNiQqtuF4qShdTNiOm3t1xDK4=; b=W4UCBO3upTGRddzDmSlXOBjRFUZLoYD5MIesftJYNsSfrzljrRljeA/efNEP2xe/SZaQXquv6amIqmHmjVQ9Fn0o1kuynHILlR5gOxCvBSqjQDAMj01fyhdx4fWfZi78I1PGcIoj0D5VKgUAmYA975a9/ZzGOWOj0/LkunmZADQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1614797222411856.8720377676811; Wed, 3 Mar 2021 10:47:02 -0800 (PST) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-380-F2SxFyUMN7KggPbeyTtvJg-1; Wed, 03 Mar 2021 13:46:57 -0500 Received: by mail-wm1-f72.google.com with SMTP id v5so3407355wml.9 for ; Wed, 03 Mar 2021 10:46:57 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id x6sm5938379wmj.32.2021.03.03.10.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614797221; h=from:from:reply-to:subject:subject: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=0ygJSAUu3nItqoE7XwzNiQqtuF4qShdTNiOm3t1xDK4=; b=I8mcYGnLbp7EmRFRLrHuVPwgQr6DOgRSSeEz4poZ1JFeZk63a+M53koSDDDmWicCEmu8y4 +QQymgLP3TedqyCO0CSiPpCmt8QD1OZqvkaD1BzdLiV/wHrMqs33vC4YjKXjJ36daOkIY0 ZtHVlku9r4StPU3sqTJiU0xrdvz3jP0= X-MC-Unique: F2SxFyUMN7KggPbeyTtvJg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0ygJSAUu3nItqoE7XwzNiQqtuF4qShdTNiOm3t1xDK4=; b=V3/jOp4xIFmO2slQNKoNLLYcN19rRTrDn0IlRYynTl5S3uX89Zz1sdvgH3YDoIT6zh MfHbrmX1VAUFKu31KwjIHvRG8KIZap5Z+bwtdDrGdGPjXTFygEbGkmhwYFwG8pwR77Rz dkwVN1FYVdksElqmknPYzoig/KZJNZ5DSZJOVtQwou6jv27PqJrjaTQ82/qK+OvfPcAc LNhHcUCzlSw6y7byKkW6yFEDRX3OI+x/pRLRbcKbP+cYsd9zGtwYFlIYDUT6jCEq6RmW FZIX/I/ksvz3otQ+Z+TJcFQpj656bpdxjRl659+7x8eHg27rZtCwLt5lrDoHseP2uDS0 4scg== X-Gm-Message-State: AOAM530XYaUh7kcJ0V1NviGZWbPdNsdyNNfWfpu2uUOXY2DkonVpUPVc SYlfNcjqbu1urxrYWhQZyLA41KcFzjRzEe41X5/+GYS23FIhalmquMAvjXtPMzHJ/E4KUT3gmW7 1N9qZuY1fCYzIsQ== X-Received: by 2002:a1c:2e58:: with SMTP id u85mr317004wmu.71.1614797216478; Wed, 03 Mar 2021 10:46:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfHSzIWGLrgw5CwL8PqoywVG313c7fQf3yvNocBzZ2Tfq9ubtsxolSUUrI7Mp7vTD1awYHlA== X-Received: by 2002:a1c:2e58:: with SMTP id u85mr316991wmu.71.1614797216348; Wed, 03 Mar 2021 10:46:56 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Dr. David Alan Gilbert" , Kevin Wolf , Michael Roth , Stefan Hajnoczi , qemu-trivial@nongnu.org, Aurelien Jarno , Peter Maydell , Alex Williamson , Eduardo Otubo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth Subject: [PATCH v3 1/5] ui: Replace the word 'whitelist' Date: Wed, 3 Mar 2021 19:46:40 +0100 Message-Id: <20210303184644.1639691-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210303184644.1639691-1-philmd@redhat.com> References: <20210303184644.1639691-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately. [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md Reviewed-by: Gerd Hoffmann Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- ui/console.c | 2 +- ui/vnc-auth-sasl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/console.c b/ui/console.c index c5d11bc7017..5a8311ced20 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1708,7 +1708,7 @@ bool dpy_gfx_check_format(QemuConsole *con, return false; } } else { - /* default is to whitelist native 32 bpp only */ + /* default is to allow native 32 bpp only */ if (format !=3D qemu_default_pixman_format(32, true)) { return false; } diff --git a/ui/vnc-auth-sasl.c b/ui/vnc-auth-sasl.c index f67111a3662..df7dc08e9fc 100644 --- a/ui/vnc-auth-sasl.c +++ b/ui/vnc-auth-sasl.c @@ -288,7 +288,7 @@ static int protocol_client_auth_sasl_step(VncState *vs,= uint8_t *data, size_t le goto authreject; } =20 - /* Check username whitelist ACL */ + /* Check the username access control list */ if (vnc_auth_sasl_check_access(vs) < 0) { goto authreject; } @@ -409,7 +409,7 @@ static int protocol_client_auth_sasl_start(VncState *vs= , uint8_t *data, size_t l goto authreject; } =20 - /* Check username whitelist ACL */ + /* Check the username access control list */ if (vnc_auth_sasl_check_access(vs) < 0) { goto authreject; } --=20 2.26.2 From nobody Fri May 17 09:38:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614797227; cv=none; d=zohomail.com; s=zohoarc; b=XeptEuHkz1RbPNYdoYkgpR2nzNrTOJF2h5M3gYI1PX5KIOYBWxznmcYqtfK2zc8/vCvbS19N+5mUlrxfmNMY383Qbx9TQLVQO88ZLLYA0h3MQnXPBvmFHHMWPg5XfPsv6xAotD3RvNFT7LbpbPYYEvQ632ukfLCL3PAO5Gj+Q0A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614797227; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=NoCyAkDbqm7qqBRK5Dn5W3Vg1Q8erVg+5wGiFEk0raM=; b=U88NEIizynhGBa0jeUkHl2r3NMMy7nQFp0HJH9DsH7eJ4ikQwUTHWABDuEHfdbWauFhjhaldo4MDxWg/j82JG+WU7iZJiOFj/0dT+esNJeVIzzHkjiV7UPppaEfkA+/a29cascbPoZcZ4wdMZJ15JaTt5j7YDhtKYFf5IZfDgTg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1614797227694299.81872750432433; Wed, 3 Mar 2021 10:47:07 -0800 (PST) Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-10-q4mdoeopPiiQ7qzYpFNT_g-1; Wed, 03 Mar 2021 13:47:02 -0500 Received: by mail-wr1-f69.google.com with SMTP id m9so7457045wrx.6 for ; Wed, 03 Mar 2021 10:47:02 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id p17sm6248355wmq.47.2021.03.03.10.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:47:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614797226; h=from:from:reply-to:subject:subject: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=NoCyAkDbqm7qqBRK5Dn5W3Vg1Q8erVg+5wGiFEk0raM=; b=I1btfJlG1yOgiRNmNbAt+dJN7uUBPBiz4hDZahVUmBotEBCuKfVxMCGTgTfo5UaLlw+bJF uBYiJ2/uxmQA8EWj1dCYRN7JWMh/klBay8Ivs4+FVMBrDYtWvy32uC6WYwPMsDuAsGbEsc qU5iHjHU92jqoFp3YSxGylEEJOG8tOM= X-MC-Unique: q4mdoeopPiiQ7qzYpFNT_g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NoCyAkDbqm7qqBRK5Dn5W3Vg1Q8erVg+5wGiFEk0raM=; b=A6QKhESbg1AlcIG8ZfrxQ8d7vF3Z4k5o3cWauYXLK0PpeDgz0S1wRjkYbeD7MyRq80 9IxyeWo5947jRRL6fETX2s+EWGzNp5ql6RbdL6TbfaxHNg9HJklGO2eMMqbq37Mf2v2v fGelzXUYAOPp5rsTZulKxYsGDiLlYM959jOS+oGvQKhry7CQMnVUtRri3tzfiYn6dMPg 42kVyoJpNFltfO1BgdBNYCAnOG+2KbJzxCqucKF+VfezBhNKh42e0SFgrVrp3eTHxUCX aYm0Ga2RbhkYQ7N01WjopWjq/cKbl2VTDGqtp477Fz6hUxkbSqyDBNsmaT22y9up0Zlk Cggg== X-Gm-Message-State: AOAM531YM1RnLgDGviYejvSlAXYY3VEV9RiWwRF3uZIJnLtVYIzKqqPC xiFLKIVyteQpnfl5LamrdkaXj8h4ZKJa96WP91cOzFC9RFIdV6G5HbAm4jpHlXiC+SwICFeppu/ Z7neUWj0OYXg3PA== X-Received: by 2002:adf:f292:: with SMTP id k18mr29025370wro.335.1614797221654; Wed, 03 Mar 2021 10:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXNoAkTi1EjnqkFTfdC9dxH+7fkHpU2XpEtaWryEqqFaJWWzS4eXv81bSvplkiukPBV5j0sA== X-Received: by 2002:adf:f292:: with SMTP id k18mr29025362wro.335.1614797221547; Wed, 03 Mar 2021 10:47:01 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Dr. David Alan Gilbert" , Kevin Wolf , Michael Roth , Stefan Hajnoczi , qemu-trivial@nongnu.org, Aurelien Jarno , Peter Maydell , Alex Williamson , Eduardo Otubo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Thomas Huth Subject: [PATCH v3 2/5] scripts/tracetool: Replace the word 'whitelist' Date: Wed, 3 Mar 2021 19:46:41 +0100 Message-Id: <20210303184644.1639691-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210303184644.1639691-1-philmd@redhat.com> References: <20210303184644.1639691-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the words "whitelist" appropriately. [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Stefan Hajnoczi Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- scripts/tracetool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.py index 96b1cd69a52..5bc94d95cfc 100644 --- a/scripts/tracetool/__init__.py +++ b/scripts/tracetool/__init__.py @@ -100,7 +100,7 @@ def validate_type(name): if bit =3D=3D "const": continue if bit not in ALLOWED_TYPES: - raise ValueError("Argument type '%s' is not in whitelist. " + raise ValueError("Argument type '%s' is not allowed. " "Only standard C types and fixed size integer= " "types should be used. struct, union, and " "other complex pointer types should be " --=20 2.26.2 From nobody Fri May 17 09:38:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614797231; cv=none; d=zohomail.com; s=zohoarc; b=L+d0473/k8lahVEEzUNPDPaZRLIAZLkHlPjoadMjVKeibbWOi8fhEtG+xp+BFb6uLesAyQrTQzHbboAn/aq2ig9JLmGW9Tlz713iW8Qc96PbE3ozRLep3qBhUAzXIEwCfR9walWoh03zoZu84yeXMGDykL204hXLvmlZs7u2xEw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614797231; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OrF+E+zCequnzlZnWp4hjwf+NwYf8uUkBRCyiILemeQ=; b=CjzhHU2uBfIcamHlh7XEzr7/zS8PY0gYoBYUo2aTxu4gc5EAUNAzYAWEVsEDKV+kEpeIN3oryZdZH2hFwtoc6bVdc1UbNgvWo/XwjKcjrD/J+Lr0OIRTnSiNQVCEcGW3WhYe7CG0pbUMb2y0AsiRdUL9u4IoYBGLCwoZflgZytM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1614797231138101.8784926122895; Wed, 3 Mar 2021 10:47:11 -0800 (PST) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-41-xYnwWPjENZivEnhBnXzRYA-1; Wed, 03 Mar 2021 13:47:08 -0500 Received: by mail-wr1-f71.google.com with SMTP id s10so2250063wre.0 for ; Wed, 03 Mar 2021 10:47:07 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id e1sm5848347wrw.85.2021.03.03.10.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614797230; h=from:from:reply-to:subject:subject: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=OrF+E+zCequnzlZnWp4hjwf+NwYf8uUkBRCyiILemeQ=; b=OwXp5l6rI52EWaP+HJBJl8xJepGZvpWWH/7MEq7dxhixlUW4B8v4sUyhezqPUe8lhFEo2p 6H/3b/V1zo3I1edAGk3ltsHG767x89cMOX7KNEWPuRx97IGO7YcS7QUOAUKBhBis+cQ+jL 8hlt1F7s4iBqqvjpV3Wqw6gdB9dA1zw= X-MC-Unique: xYnwWPjENZivEnhBnXzRYA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OrF+E+zCequnzlZnWp4hjwf+NwYf8uUkBRCyiILemeQ=; b=ogepZkj4aPZahJE8d4MKDYRkuzWI0A2wRJhSV2707CyNOt21cmQpUMsLCVtNvgPTEy 58eKUOmldYLir4ijfrISJHnzH+hX5J9Du8PAggKcCmt5nIfpjHWMjNPjSmNIa5wHnCU4 lFMMwuikxz4mh4NCIPJytO6RzKQ8YNnvufSc9L6Xc01CsK5JkbH95VCEdtWW60EkWg9V 7IiVB3bL8XRP5Xhs7+SOphB/d9BA19Mn2ihqq+bAhh1wkUX81lxtJwql+l9Yz4Bg/OVA a4jL/COdJxDbaAJ+deovHhOMsFxJ0L7/3sZnqFhjfguFgI/rQQ6I1iJeF4HlvGK84n7g FXHA== X-Gm-Message-State: AOAM531BlNjXgHDySsiR3sOLUO+6XWiju9kOhXM0qbWYWAVxniD63Khx 5alIyQlNvxYySNUss04AGFwFprPeUjh7ZVQDD9Gmd9aZzU2KTkP1t+IgRbO9vxf4mGyPE+6cwuf ryNu6z7x617163g== X-Received: by 2002:adf:ecca:: with SMTP id s10mr99432wro.324.1614797227053; Wed, 03 Mar 2021 10:47:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJycHxQvlOnM6FizoZ5rxZXTKjf0vtyPdQkxbbHaBtg6FZ0jWTbXMMadH/C/uhtJJbVK69mS1g== X-Received: by 2002:adf:ecca:: with SMTP id s10mr99413wro.324.1614797226889; Wed, 03 Mar 2021 10:47:06 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Dr. David Alan Gilbert" , Kevin Wolf , Michael Roth , Stefan Hajnoczi , qemu-trivial@nongnu.org, Aurelien Jarno , Peter Maydell , Alex Williamson , Eduardo Otubo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= Subject: [PATCH v3 3/5] seccomp: Replace the word 'blacklist' Date: Wed, 3 Mar 2021 19:46:42 +0100 Message-Id: <20210303184644.1639691-4-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210303184644.1639691-1-philmd@redhat.com> References: <20210303184644.1639691-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately. [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md Reviewed-by: Daniel P. Berrang=C3=A9 Acked-by: Eduardo Otubo Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- v3: Reworded comment (thuth) --- softmmu/qemu-seccomp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/softmmu/qemu-seccomp.c b/softmmu/qemu-seccomp.c index 377ef6937ca..9c29d9cf007 100644 --- a/softmmu/qemu-seccomp.c +++ b/softmmu/qemu-seccomp.c @@ -45,8 +45,8 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] =3D { { .arg =3D 1, .op =3D SCMP_CMP_NE, .datum_a =3D SCHED_IDLE } }; =20 -static const struct QemuSeccompSyscall blacklist[] =3D { - /* default set of syscalls to blacklist */ +static const struct QemuSeccompSyscall denylist[] =3D { + /* default set of syscalls that should get blocked */ { SCMP_SYS(reboot), QEMU_SECCOMP_SET_DEFAULT }, { SCMP_SYS(swapon), QEMU_SECCOMP_SET_DEFAULT }, { SCMP_SYS(swapoff), QEMU_SECCOMP_SET_DEFAULT }, @@ -175,18 +175,18 @@ static int seccomp_start(uint32_t seccomp_opts, Error= **errp) goto seccomp_return; } =20 - for (i =3D 0; i < ARRAY_SIZE(blacklist); i++) { + for (i =3D 0; i < ARRAY_SIZE(denylist); i++) { uint32_t action; - if (!(seccomp_opts & blacklist[i].set)) { + if (!(seccomp_opts & denylist[i].set)) { continue; } =20 - action =3D qemu_seccomp_get_action(blacklist[i].set); - rc =3D seccomp_rule_add_array(ctx, action, blacklist[i].num, - blacklist[i].narg, blacklist[i].arg_cm= p); + action =3D qemu_seccomp_get_action(denylist[i].set); + rc =3D seccomp_rule_add_array(ctx, action, denylist[i].num, + denylist[i].narg, denylist[i].arg_cmp); if (rc < 0) { error_setg_errno(errp, -rc, - "failed to add seccomp blacklist rules"); + "failed to add seccomp denylist rules"); goto seccomp_return; } } --=20 2.26.2 From nobody Fri May 17 09:38:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614797241; cv=none; d=zohomail.com; s=zohoarc; b=Ob5BQfIOFrx4S+AV43mnDs6KGg5pt6nJooYuPUtz/Iwbj4aC8y3KWlsFtukGi0epfZKBELX6QtecD2kZbFchYaHcRsW738tcHrVTqVf4pjWGXwBkAagjSJngtRDJdAswp52sMNWQI4y+LBU7jhRrUc28KVDWUsQAIq2gHBCYgn8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614797241; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=8KZhKK31KyfnjQDhDEVhCsxY2Kwq4sGCBZtEFirnrhs=; b=XN39LyO56ZhF9TyIHMycbFsnJ6r5DTz70wZQkOH99UwG5sabJmF6WYOLELtBRWbYVzSrjQtkoVWu0yxbiL5nIvb/crejGUrFFbpYpNysHIrBG0LxWXCUCX9Tifipww/AbZq5vu3cZLoJ/pSfx57SB+cmNmKkZ6D/m9g/vv6+5sY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1614797241044471.3596972168946; Wed, 3 Mar 2021 10:47:21 -0800 (PST) Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-569-e3ypfzd1P_CuNXYl3qS2vw-1; Wed, 03 Mar 2021 13:47:18 -0500 Received: by mail-wr1-f70.google.com with SMTP id f3so6338183wrt.14 for ; Wed, 03 Mar 2021 10:47:18 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id y10sm24628852wrl.19.2021.03.03.10.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614797240; h=from:from:reply-to:subject:subject: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=8KZhKK31KyfnjQDhDEVhCsxY2Kwq4sGCBZtEFirnrhs=; b=CGckAb2qA1bswyJBlt029fWZ0g2jziE41n1B83edXC3eEkCy5GfO1KARbhu43+wBOJX8yA qlEE+9Z2XYYMKlJ0LqYuULkcoJWw25SEgriCr31N3yDG3JpnMMHyY9T8+wWb+hBkmv/gAY M4zpS9ihNWaNKoJXZvNsIj1E1Z6thtk= X-MC-Unique: e3ypfzd1P_CuNXYl3qS2vw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8KZhKK31KyfnjQDhDEVhCsxY2Kwq4sGCBZtEFirnrhs=; b=XeXG6f106YH4twA/XFvBC0EaIUTENqjJb59U42sZ88jo5ROMWfTeEe2YGPmxWBSy0q EcmXclivWf1DKozWoAmui9+cP7KSf+s3oIpQN1zNSdHNYXmWaHJ9sYJmTX1GMO1kHx+t e7YU5CDfTUD8ZMYjrLo2JgXwy3GvVZpIgeZoAnBCJpzOTPCtWavGU08Vhxs9d90VW4YG 7fJY9mORugu6/9E6svuZ8o5dzt352S1ZZp2WhKUuLIvnu/dY31yvKqgY7BW1yWhsIP2Y X67ZDHyHJa7fXLvsK4ma/VVSa1OjvYOsxQS6EI9Nb8tf2vhCq5o1dq0XgTtZQlo37FUF 56iA== X-Gm-Message-State: AOAM533mU6jyeLSbJeP77PK71dIvpscCB8CiRdMBl3CU8gb9jwOV9qgq eIDWcluitEHUdYw/x68Xcdm6k8WtPb/rHt01E7ifvTim95Ol+B50CGnKVohuX+MeEv7qQLji8le 17m/XtoB4UOkpgA== X-Received: by 2002:a05:6000:5:: with SMTP id h5mr12103wrx.97.1614797237293; Wed, 03 Mar 2021 10:47:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4HCfJjsCF5sPq6Cl+Y+hdP+ZJ1b47KHwEHN5NwjCgeUwkyzysRQYLOfHZnxnzpEGqO1bDfA== X-Received: by 2002:a05:6000:5:: with SMTP id h5mr12094wrx.97.1614797237174; Wed, 03 Mar 2021 10:47:17 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Dr. David Alan Gilbert" , Kevin Wolf , Michael Roth , Stefan Hajnoczi , qemu-trivial@nongnu.org, Aurelien Jarno , Peter Maydell , Alex Williamson , Eduardo Otubo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= Subject: [PATCH v3 4/5] qemu-options: Replace the word 'blacklist' Date: Wed, 3 Mar 2021 19:46:43 +0100 Message-Id: <20210303184644.1639691-5-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210303184644.1639691-1-philmd@redhat.com> References: <20210303184644.1639691-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately. [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- qemu-options.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 252db9357ca..8462dc5f158 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -4299,12 +4299,12 @@ DEF("sandbox", HAS_ARG, QEMU_OPTION_sandbox, \ " use 'obsolete' to allow obsolete system calls that ar= e provided\n" \ " by the kernel, but typically no longer used by mo= dern\n" \ " C library implementations.\n" \ - " use 'elevateprivileges' to allow or deny QEMU process= to elevate\n" \ - " its privileges by blacklisting all set*uid|gid sy= stem calls.\n" \ + " use 'elevateprivileges' to allow or deny the QEMU pro= cess ability\n" \ + " to elevate privileges using set*uid|gid system ca= lls.\n" \ " The value 'children' will deny set*uid|gid system= calls for\n" \ " main QEMU process but will allow forks and execve= s to run unprivileged\n" \ " use 'spawn' to avoid QEMU to spawn new threads or pro= cesses by\n" \ - " blacklisting *fork and execve\n" \ + " blocking *fork and execve\n" \ " use 'resourcecontrol' to disable process affinity and= schedular priority\n", QEMU_ARCH_ALL) SRST --=20 2.26.2 From nobody Fri May 17 09:38:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614797246; cv=none; d=zohomail.com; s=zohoarc; b=jWh7EsbGcvqRjIKNP/PRdPoRIJkumnN3///pJyedVvOgprOSaKgiEAE4QAWzC4GtjZDs87OC+LxwC6iN8JP5BfYpIDUAaZ4Ztl1MM8lyad2lVhbhGrpdA4gPLTgS+jqOhAhvlA5dm4Ot7ENOl5MpVNMGRk/A5CRptnpfwEpRFQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614797246; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=zv/BwC5POPyWjWYZMgFmMVd8R/Xa4KoRgVF20B1JO98=; b=U+uz9rPKXyAi0mQYf1ldmXLhBiggCJm9SA2aSMvvaMUyX/lHrY+nXpStoL9z8N8SOp9FjGbTR378qYLAhsZSuXqbhFVFfb3BrjAjdstoyy0un9UPDVCGmKzIpcQXznBVAhvsVyHOPxyHK+KYURl8Rc61BSUDv/W/Syll0LSavjk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1614797246176206.00874687675923; Wed, 3 Mar 2021 10:47:26 -0800 (PST) Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-527-p0U4cqPmOUmlvWlNCMcS6A-1; Wed, 03 Mar 2021 13:47:23 -0500 Received: by mail-wr1-f69.google.com with SMTP id z6so4469716wrh.11 for ; Wed, 03 Mar 2021 10:47:23 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id m11sm20480462wrz.40.2021.03.03.10.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 10:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614797245; h=from:from:reply-to:subject:subject: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=zv/BwC5POPyWjWYZMgFmMVd8R/Xa4KoRgVF20B1JO98=; b=PUjoyjuiiia8Qc/sadCRsc+cqVUmbh7l+NLXWtqEx+3eI02y5p85BwiPj7oyM1a+9m1Vfd D3uXB8aLIFFCDhT5duiZ3zeMmDXHzrektEEeHO0RdzfYppQFwu/XSA9A8xXTup+6mixhGc Zl8DrMx+mB3fCDx9wrDtzu5cnNn8o8U= X-MC-Unique: p0U4cqPmOUmlvWlNCMcS6A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zv/BwC5POPyWjWYZMgFmMVd8R/Xa4KoRgVF20B1JO98=; b=HAHLHD19qK3mhVRLsh8iicqFcBSDYalPG+P67K5yxsjnwopWvODavYp+Fcx8c4THds Oqp9iQDdvq1zQZK1oLUNv49ceW097MPNCNzXmppmL/Prh/Wue2IpOBJDGZyz3B7Wg1Ej 8iDof5g2nrEi2wL55mYCz/1ecIs0zLbnCmhoOyjxinNyahI+TOxyHV0Pl3BUE/xH0ZQ9 KInbsBIvR9PIkbWGTTIFx9lwKvTZcY1C5f4MmeFv8lcYB9AezlVJj9TTsCGoNEFDEgMM KyOUdX3lXtXq+wSuP8U86/PJyqT7KLS689IxEd4+q+lhYi1TYi8k0SQSFYaUgJN78SNu PrnQ== X-Gm-Message-State: AOAM533O2Si97eechE50ENF+n1wE8mFq0kis1muVgFiI6hwwUTYY05xk EImAZQKAjyFRf2rsU1kwsLuEcqCFmmmGv9GGIdomEXU/Va0GCoLf78FaeqkY6yAUSaHplMj6NAK OJUXYTIwG5e0ciA== X-Received: by 2002:adf:a4d0:: with SMTP id h16mr130682wrb.52.1614797242492; Wed, 03 Mar 2021 10:47:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5JgQpBX92H6UGgShZ4/nvXSRy+FEwNApU2icyYpt9aUmnJnLP8p5aGqMj2y+myurUBLCLZA== X-Received: by 2002:adf:a4d0:: with SMTP id h16mr130662wrb.52.1614797242368; Wed, 03 Mar 2021 10:47:22 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Dr. David Alan Gilbert" , Kevin Wolf , Michael Roth , Stefan Hajnoczi , qemu-trivial@nongnu.org, Aurelien Jarno , Peter Maydell , Alex Williamson , Eduardo Otubo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= Subject: [PATCH v3 5/5] tests/fp/fp-test: Replace the word 'blacklist' Date: Wed, 3 Mar 2021 19:46:44 +0100 Message-Id: <20210303184644.1639691-6-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210303184644.1639691-1-philmd@redhat.com> References: <20210303184644.1639691-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Follow the inclusive terminology from the "Conscious Language in your Open Source Projects" guidelines [*] and replace the word "blacklist" appropriately. [*] https://github.com/conscious-lang/conscious-lang-docs/blob/main/faq.md Acked-by: Alex Benn=C3=A9e Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- tests/fp/fp-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index 06ffebd6db1..5a4cad8c8b2 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -123,7 +123,7 @@ static void not_implemented(void) fprintf(stderr, "Not implemented.\n"); } =20 -static bool blacklisted(unsigned op, int rmode) +static bool is_allowed(unsigned op, int rmode) { /* odd has not been implemented for any 80-bit ops */ if (rmode =3D=3D softfloat_round_odd) { @@ -161,10 +161,10 @@ static bool blacklisted(unsigned op, int rmode) case F32_TO_EXTF80: case F64_TO_EXTF80: case F128_TO_EXTF80: - return true; + return false; } } - return false; + return true; } =20 static void do_testfloat(int op, int rmode, bool exact) @@ -194,7 +194,7 @@ static void do_testfloat(int op, int rmode, bool exact) verCases_writeFunctionName(stderr); fputs("\n", stderr); =20 - if (blacklisted(op, rmode)) { + if (!is_allowed(op, rmode)) { not_implemented(); return; } --=20 2.26.2