Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1195164pxb; Thu, 4 Mar 2021 05:56:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsgma7vgsmz2AHwdASJchzsdQHnmGyRhLF0yYQXhz5XBRd6BBH2Dqj5jInG7ya7VRVt4VZ X-Received: by 2002:a17:906:8308:: with SMTP id j8mr4212622ejx.339.1614866206584; Thu, 04 Mar 2021 05:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614866206; cv=none; d=google.com; s=arc-20160816; b=vUqqBLnTFFnz14AcmNUdo7QlJ9H+HtCxdKu69p1XWCKW+/4aOWFKUwkteONyXCpz60 WEBC9IBXF91SMW4NjGPrF/B1ABRW+3rf4ZFR1pEvQvmi8f/Fw0pqfDzDujqYAeCjfrv1 jXV6VSwh7Afye2Oa40KF9difH2lwqGarLfXG9GfZc6LGTx+p2b1e8/Wu8vZL7nzX1j2M 6qg2nGcjAwl04jH4kUycm0H9Vg7UyFdhuMPP0iny0FX/NYNyXNNNzMsgm4cvsHFtFqRG DfoqQywdC+qtWFNBY4uv6MDqSbK8cJ0DaglGL/jILt8jrPMeY5Sj3byiomU60Yo3iIqj LeDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=8Flta4RrrG2/Nmw/BXaWc2+34jYTqCrYIBi2ENwC7LQ=; b=og+/ZFYAl6lfdz5LEDG+hH6ep0gl/YLLXGgaRV/gAa5cOt5/E2w/3IV+hefwdueYQg YJE8PGC6jFzDjwqpdtB2y3zmXR8BCnfeYSdvCSmFa9sRK0EPcCWR+387XlyCiPM5AtxZ zPt2LO9YFzdE+yzmg2AFzIA2P8YiDB1Q76YF+Kkdc8EKxN+E6AfrFHJLGDhHFdd/WRln vdh10YKGAR34qGnV6Mszu+RfFV4RBaU0AfHMegNXV4juSsKEpuMcGT1uM8HDWrc1ukQ3 fKm9kqsntHAZdFoRXApqyqlCbaJnP5h3GVbp/q73D/jKBqPdxus3MAEnklEJ3NGSGGkT 1RsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=nqgkTzL6; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s28si9536745edw.110.2021.03.04.05.56.41; Thu, 04 Mar 2021 05:56:46 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=nqgkTzL6; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242761AbhCDAY1 (ORCPT + 16 others); 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/