From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ePMdxO5U; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id D394B5A065B for ; Mon, 24 Feb 2025 08:38:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1740382710; 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=3XJpfYZYAap9cvGgypvXxLCFBwsTxY9tF1+uZ+nBt9o=; b=ePMdxO5UVaeh3J2gnTfXiX4pLtvTsNKj30RqJeXIt8BEO9N5QePXzaYbTkrps9mBJT5n4M nWG8KylT3TtvCNDuhIdWIRgHOMQUZjPYv51B/cR0AMEU3SpmGpOFC2ZRovYh/rkqEL2Mp5 oS4pvxdR1+4X6xIY4HsnHHCuJcus1r4= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-65-8cbgkDnkN6WHC0LuXDxk5w-1; Mon, 24 Feb 2025 02:38:28 -0500 X-MC-Unique: 8cbgkDnkN6WHC0LuXDxk5w-1 X-Mimecast-MFC-AGG-ID: 8cbgkDnkN6WHC0LuXDxk5w_1740382708 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-38f2f438fb6so4206714f8f.1 for ; Sun, 23 Feb 2025 23:38:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740382707; x=1740987507; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3XJpfYZYAap9cvGgypvXxLCFBwsTxY9tF1+uZ+nBt9o=; b=G3qIjMAMyZQZEUAd9hA1AXquzLzriZEPINhY0S042rlYTDLSgUDUEtf8J4G8Oly0uW L7mAoNwqn8cISeiilQ9rQewC6UfrlsoWjzz+729KANxB/VMLTzloQp9zBDfq3UnXHLpv g7m755Z28uvC5z/r5X2wZ2AkjqiZp6Q+Fu9i3tGiu5GAkFGC7JmS9mhIYmTiRPRaVAYW yYzR7BABSPFCPs0KF49vIk1cCHoMHW4NmajkRCIBgSLiN9CEEB6/5scOWnVH2/P6ggGy Yx7WP0mzLw2vYYpBQ2N/M92GJJo8XD3M+hzNk0MMsEbXV6irvGhenM89B2MykNckrJAm jXLA== X-Forwarded-Encrypted: i=1; AJvYcCUFmEptX4sfup1/8egXdtXphLXySGqa8PsXcNo1qbMBD17fXwuOdbu9FYuxG4bO6FvxL6gl34RAKQo=@passt.top X-Gm-Message-State: AOJu0Yxz/I0WkS5yMntWN5oq+vqk7E9OSSWF5j9e4ptpn5FwynM8P7Qf uorYNS3Dhe3LwlTgMOOUHPNIhh3MJPhCy937r8tYvtS9k1Uj6daSRsyGwvwOpJsrn/ID0axDdgv 5rR/3EdqIIhCns5+PB24cx7SlUShYFINASNCXoWbxPRke7eru+CLnezYGGg== X-Gm-Gg: ASbGnctmldGBIW7kSK3dLA4CNMDDG0IuK7SsetcJDLZJRAQK2udKdbDMqPQJjs60n8w n4xpXxptuaCrsaj3z5i1XDI6xSbnymWycmfL3psaQhjSM/YNNhzyWrSfSnIN/qu91r/kdBce8mi KP3mKKranH6ID13z4IIeMkXzJhwB0gvWgBr7Pz9QjS3Yg8E4nOv4B0wmh22yLiK/11zFzprJ/5q cLEsOpFuNx/ASdZpH95N4ACCby8YzpgfhWJgJ1B5l6cjqntpxzTuReAnCVWhOGfClerSxLaXAOy CIAwV12C1NqoQIamMykPNqE4WedPHjaGU6bnXK8PT+db X-Received: by 2002:a5d:584b:0:b0:38d:d299:7097 with SMTP id ffacd0b85a97d-38f6e7567b4mr9315373f8f.5.1740382706955; Sun, 23 Feb 2025 23:38:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHwDz+9VsIZFHSxd4/dBUQRqLv2fY6h4aq2FhtY3MPCzA/NlIozXpRY2Q1e3qgf+JAU7MheQ== X-Received: by 2002:a5d:584b:0:b0:38d:d299:7097 with SMTP id ffacd0b85a97d-38f6e7567b4mr9315359f8f.5.1740382706640; Sun, 23 Feb 2025 23:38:26 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f259d8dd6sm31236570f8f.62.2025.02.23.23.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2025 23:38:25 -0800 (PST) Date: Mon, 24 Feb 2025 08:38:24 +0100 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH] seccomp.sh: Silence stty errors Message-ID: <20250224083824.1272e641@elisabeth> In-Reply-To: References: Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 2ZqNKXdIep73hdS9vX2QFiPXf7_bPQs9Ws3HPEGN-dg_1740382708 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: 5HQBX7RIRATB4357N2VB52DM2JIHNQ7Z X-Message-ID-Hash: 5HQBX7RIRATB4357N2VB52DM2JIHNQ7Z X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Michal Privoznik , passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, 24 Feb 2025 13:05:40 +1100 David Gibson wrote: > On Fri, Feb 21, 2025 at 12:53:13PM +0100, Michal Privoznik wrote: > > When printing list of allowed syscalls the width of terminal is > > obtained for nicer output (see commit below). The width is > > obtained by running 'stty'. While this works when building from a > > console, it doesn't work during rpmbuild/emerge/.. as stdout is > > usually not a console but a logfile and stdin is usually > > /dev/null or something. This results in stty reporting errors > > like this: > > > > stty: 'standard input': Inappropriate ioctl for device > > > > Redirect stty's stderr to /dev/null to silence it. > > > > Fixes: 712ca3235329b049bf9a4e481ba38a4c64768e8b > > Signed-off-by: Michal Privoznik > > Reviewed-by: David Gibson > > Although, I also wonder if we'd do just as well to use the shell > provided $COLUMNS variable without poking at the terminal ourselves. No, because that's a Bash/KSH thing. At least ash, dash and csh don't have it. -- Stefano