From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5823EC4332D for ; Thu, 4 Mar 2021 00:26:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C59F64E56 for ; Thu, 4 Mar 2021 00:26:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242761AbhCDAY1 (ORCPT ); Wed, 3 Mar 2021 19:24:27 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:42146 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241161AbhCCK1X (ORCPT ); Wed, 3 Mar 2021 05:27:23 -0500 Received: from liv.coker.com.au (unknown [103.75.204.227]) (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) (Authenticated sender: russell@coker.com.au) by smtp.sws.net.au (Postfix) with ESMTPSA id 5AB9BF295 for ; Wed, 3 Mar 2021 21:26:40 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1614767201; bh=8Flta4RrrG2/Nmw/BXaWc2+34jYTqCrYIBi2ENwC7LQ=; l=331; h=From:To:Subject:Date:From; b=nqgkTzL6GulUaWgjTAK0E8Iwaich/5cLOQa/EZnWInEqkT1UBAjThcuYKHSqt/C7h +NuZ0Qlb/hQOLb61B+/TKwK0COKQ0gzcnBEeHAafBL8NAMPHPKNEkPJCStwyEgGQbf /OwZhUoiOtitCv+sO1OVf22a/26qmuh7cdd1swTI= From: Russell Coker To: selinux-refpolicy@vger.kernel.org Subject: unreserved_port_t Date: Wed, 03 Mar 2021 21:26:37 +1100 Message-ID: <1956679.fmg26ZhMKt@liv> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org How are we supposed to write policy for programs that bind to random unused ports >1024? There doesn't seem to be any macro that allows binging to unreserved_port_t except corenet_tcp_bind_all_unreserved_ports() which is too permissive. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/