From nobody Mon Nov 17 13:42:39 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1604498804; cv=none; d=zohomail.com; s=zohoarc; b=CmDBrVyEKEEaZNjZvVKGNpR0PzIUnb9f5lb1k2K9gC9crFnoCzxTjGFbJ9FS208VOQGnORVAOYYKRe8IDdp3nJ2nZ2hldMv/RFg8jaGcVTVNVCi5hvNNZK4JX+tRBjD0xCUnDUK/EPrDfmJ+p85eHjZaaGuxa79/c6lkQC1Xlxc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604498804; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=6AH6oE8GDWXO1ylfyYrsvb2YviLu1pLR8hxq+9ZsB9s=; b=P1Yw6fQobQt6Nn5S77Gaa4yQiG3ps639r92HyQSP3L/t3MUnV88ZFkHvQ4f3MdBqrKhfppqbAhpGwTqMSKYo8ZO32+OWJvq9QS9MBn3iCFcKYqn0EDzrJy0+YHZq8v0Nsh4f6bs8KU/M1anzJB3qx7UlcWHO4fpWsAfsItr4znw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1604498804883453.9454161931707; Wed, 4 Nov 2020 06:06:44 -0800 (PST) Received: from localhost ([::1]:57454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaJQx-0006cK-4U for importer@patchew.org; Wed, 04 Nov 2020 09:06:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaJPw-00067V-MV for qemu-devel@nongnu.org; Wed, 04 Nov 2020 09:05:40 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kaJPs-0005ql-0H for qemu-devel@nongnu.org; Wed, 04 Nov 2020 09:05:40 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-225-5lCW17UJOQmWicBUnHF-bw-1; Wed, 04 Nov 2020 09:05:32 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E8C8107B27A; Wed, 4 Nov 2020 14:05:31 +0000 (UTC) Received: from fedora.redhat.com (ovpn-115-26.ams2.redhat.com [10.36.115.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7AECB5D9CC; Wed, 4 Nov 2020 14:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604498735; 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; bh=6AH6oE8GDWXO1ylfyYrsvb2YviLu1pLR8hxq+9ZsB9s=; b=ZgdEh+9TEa7e6vyPlDgQU5Y0cbJfNlBFqQRMHz7mhSEwpbjWfiV4mrHrknATCy25ZGbEvQ Zj673yFd9bji2/fcsrHN0OZ/gVxhx18V2R7/Yu6JZSbnDXQ9hmJuedRTYn2ltx5JBHpBwd B39NyoOkGImLPL0saZZnCgJdyRxqa8Y= X-MC-Unique: 5lCW17UJOQmWicBUnHF-bw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH] Prefer 'on' | 'off' over 'yes' | 'no' for bool options Date: Wed, 4 Nov 2020 14:05:28 +0000 Message-Id: <20201104140528.608015-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=berrange@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" 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=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 00:03:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-block@nongnu.org, Markus Armbruster , Max Reitz , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Update some docs and test cases to use 'on' | 'off' as the preferred value for bool options. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- docs/system/vnc-security.rst | 6 +++--- include/authz/listfile.h | 2 +- qemu-options.hx | 4 ++-- tests/qemu-iotests/233 | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/system/vnc-security.rst b/docs/system/vnc-security.rst index b237b07330..e97b42dfdc 100644 --- a/docs/system/vnc-security.rst +++ b/docs/system/vnc-security.rst @@ -89,7 +89,7 @@ but with ``verify-peer`` set to ``yes`` instead. .. parsed-literal:: =20 |qemu_system| [...OPTIONS...] \ - -object tls-creds-x509,id=3Dtls0,dir=3D/etc/pki/qemu,endpoint=3Dserve= r,verify-peer=3Dyes \ + -object tls-creds-x509,id=3Dtls0,dir=3D/etc/pki/qemu,endpoint=3Dserve= r,verify-peer=3Don \ -vnc :1,tls-creds=3Dtls0 -monitor stdio =20 .. _vnc_005fsec_005fcertificate_005fpw: @@ -103,7 +103,7 @@ authentication to provide two layers of authentication = for clients. .. parsed-literal:: =20 |qemu_system| [...OPTIONS...] \ - -object tls-creds-x509,id=3Dtls0,dir=3D/etc/pki/qemu,endpoint=3Dserve= r,verify-peer=3Dyes \ + -object tls-creds-x509,id=3Dtls0,dir=3D/etc/pki/qemu,endpoint=3Dserve= r,verify-peer=3Don \ -vnc :1,tls-creds=3Dtls0,password -monitor stdio (qemu) change vnc password Password: ******** @@ -145,7 +145,7 @@ x509 options: .. parsed-literal:: =20 |qemu_system| [...OPTIONS...] \ - -object tls-creds-x509,id=3Dtls0,dir=3D/etc/pki/qemu,endpoint=3Dserve= r,verify-peer=3Dyes \ + -object tls-creds-x509,id=3Dtls0,dir=3D/etc/pki/qemu,endpoint=3Dserve= r,verify-peer=3Don \ -vnc :1,tls-creds=3Dtls0,sasl -monitor stdio =20 .. _vnc_005fsetup_005fsasl: diff --git a/include/authz/listfile.h b/include/authz/listfile.h index 0a1e5bddd3..0b7fe72198 100644 --- a/include/authz/listfile.h +++ b/include/authz/listfile.h @@ -73,7 +73,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(QAuthZListFile, * The object can be created on the command line using * * -object authz-list-file,id=3Dauthz0,\ - * filename=3D/etc/qemu/myvm-vnc.acl,refresh=3Dyes + * filename=3D/etc/qemu/myvm-vnc.acl,refresh=3Don * */ struct QAuthZListFile { diff --git a/qemu-options.hx b/qemu-options.hx index 2c83390504..0bdc07bc47 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -5002,7 +5002,7 @@ SRST Note the use of quotes due to the x509 distinguished name containing whitespace, and escaping of ','. =20 - ``-object authz-listfile,id=3Did,filename=3Dpath,refresh=3Dyes|no`` + ``-object authz-listfile,id=3Did,filename=3Dpath,refresh=3Don|off`` Create an authorization object that will control access to network services. =20 @@ -5047,7 +5047,7 @@ SRST =20 # |qemu_system| \\ ... \\ - -object authz-simple,id=3Dauth0,filename=3D/etc/qemu/vnc-= sasl.acl,refresh=3Dyes \\ + -object authz-simple,id=3Dauth0,filename=3D/etc/qemu/vnc-= sasl.acl,refresh=3Don \\ ... =20 ``-object authz-pam,id=3Did,service=3Dstring`` diff --git a/tests/qemu-iotests/233 b/tests/qemu-iotests/233 index a5c17c3963..0b99530f7f 100755 --- a/tests/qemu-iotests/233 +++ b/tests/qemu-iotests/233 @@ -83,7 +83,7 @@ echo echo "=3D=3D check plain client to TLS server fails =3D=3D" =20 nbd_server_start_tcp_socket \ - --object tls-creds-x509,dir=3D${tls_dir}/server1,endpoint=3Dserver,id= =3Dtls0,verify-peer=3Dyes \ + --object tls-creds-x509,dir=3D${tls_dir}/server1,endpoint=3Dserver,id= =3Dtls0,verify-peer=3Don \ --tls-creds tls0 \ -f $IMGFMT "$TEST_IMG" 2>> "$TEST_DIR/server.log" =20 @@ -128,7 +128,7 @@ echo "=3D=3D check TLS with authorization =3D=3D" nbd_server_stop =20 nbd_server_start_tcp_socket \ - --object tls-creds-x509,dir=3D${tls_dir}/server1,endpoint=3Dserver,id= =3Dtls0,verify-peer=3Dyes \ + --object tls-creds-x509,dir=3D${tls_dir}/server1,endpoint=3Dserver,id= =3Dtls0,verify-peer=3Don \ --object "authz-simple,id=3Dauthz0,identity=3DCN=3Dlocalhost,, \ O=3DCthulu Dark Lord Enterprises client1,,L=3DR'lyeh,,C=3DSouth Paci= fic" \ --tls-authz authz0 \ --=20 2.28.0