From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202502 header.b=XIank4oC; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 36CA55A0779 for ; Mon, 24 Feb 2025 08:43:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1740382976; bh=dK5xUSOBXEAQGBQRhjXLtCZ4HSWvszJjJ19SED9aN7c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XIank4oCOJiTdVnThjvcm5R24FlIkIf04K743FkcimPKDvoDvli9gIsC6ESMkMGFp xu4hYUFlqs0J27X6mWjRyGWTD7wCgf6Nn8zfFzVNC8AGTKKqz25XpzT5wiCToEUZxd z/M2TgmxK9hxEgeNQ8tmKlby3q8iiuzd8Pe9CTkd0oVoi/XzAVHJF7iAehxsz1Dt/O 5KPAHf8wF8Sl+LpQQuXhnEOcToWtclYYbBQsFDG2+99k47U7ciN7hCG8O0d5I0tLb7 5HHBd+dLbci8QZW8BtFEqYA/q4A9UDF9OYQ1dZVXMxh+ETeoNqA3JX3hlBzjturESZ OM3y89L+LkaQA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Z1XlN418mz4wcj; Mon, 24 Feb 2025 18:42:56 +1100 (AEDT) Date: Mon, 24 Feb 2025 18:41:57 +1100 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH] seccomp.sh: Silence stty errors Message-ID: References: <20250224083824.1272e641@elisabeth> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ERaO9S3Yek+u8D5C" Content-Disposition: inline In-Reply-To: <20250224083824.1272e641@elisabeth> Message-ID-Hash: L52IVBBP7JSPG3C5MDSPLQYGSCIBJLU3 X-Message-ID-Hash: L52IVBBP7JSPG3C5MDSPLQYGSCIBJLU3 X-MailFrom: dgibson@gandalf.ozlabs.org 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: --ERaO9S3Yek+u8D5C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 24, 2025 at 08:38:24AM +0100, Stefano Brivio wrote: > On Mon, 24 Feb 2025 13:05:40 +1100 > David Gibson wrote: >=20 > > 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: > > >=20 > > > stty: 'standard input': Inappropriate ioctl for device > > >=20 > > > Redirect stty's stderr to /dev/null to silence it. > > >=20 > > > Fixes: 712ca3235329b049bf9a4e481ba38a4c64768e8b > > > Signed-off-by: Michal Privoznik =20 > >=20 > > Reviewed-by: David Gibson > >=20 > > Although, I also wonder if we'd do just as well to use the shell > > provided $COLUMNS variable without poking at the terminal ourselves. >=20 > No, because that's a Bash/KSH thing. At least ash, dash and csh don't > have it. Having marginally uglier formatting in those shells doesn't strike me as a disaster. --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --ERaO9S3Yek+u8D5C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAme8IrcACgkQzQJF27ox 2GcZ4Q/+MIV026o+LEI5S1n7yOp/PFs2AaMV1JVy61iDDILj2em8YqR5qCNuZdvI WVOCBLn1e0QuD54xpnvvl5PUrGT8W5O5pfDte/RAMkelrBXxxrvr1ZNZ8sVyKREk 6vnwgFCqxzdzUSsC3tjnpjplgxTgSqV3amw2MnF+jXLPcV6MjC/Q4MGz9xzLaY7n 9+DEiJK2JPBNkDbBg+H6XdN2+NQMCwRq2+v0lCqSOpenbJ25RLBjMCViCw//Z7Lv RlD8Y2JXKxqJZflm06Wtl1RzPQXqLxE+QnVTeiKz4Q8dPGlwEYq2mRcmv/dtcOzI 1Gt/GkRtjO95Uq9rYNQJBvZRIjM4FoKjShJZeUKm6BbobEVFvHAG6p+BvhI57yXF gA0m9puR+YDi73u3NeOx1mLC7GOprA1hLRQQl6c3RmIOR/JjOehaDcZ9WmZfxJBl 58i3XbpfJRy2+qqXvxNYOpaM7cJIQmFop49r3VldSN9ZVJru4q19fsvQ6yhvRTaC HNj9k4YMYvs6xeFtxII3S2d4TWhf8RFPflPKI2S7Rz3wjxSZMPrfAs2KnSTMA/OJ 1W/93q+tn3ef5CpwrmdRw/DnGamxX0laj+vnFUDr8O8m9Ae7t2ZdCH2LzGQd94vo gqIXqjf2FzgeKL6wI7nyp4NTZ7YoKSJP4d9wyWGunmLGqcD/mZg= =mLoI -----END PGP SIGNATURE----- --ERaO9S3Yek+u8D5C--