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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham 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 3B8B0C43387 for ; Tue, 8 Jan 2019 12:31:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08E0820685 for ; Tue, 8 Jan 2019 12:31:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=coker.com.au header.i=@coker.com.au header.b="cNDorfTy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728763AbfAHMbG (ORCPT ); Tue, 8 Jan 2019 07:31:06 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:40490 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728655AbfAHMbG (ORCPT ); Tue, 8 Jan 2019 07:31:06 -0500 Received: from liv.localnet (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id C7614EBA9 for ; Tue, 8 Jan 2019 23:31:04 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1546950665; bh=a4hvdrbsSzKzLIcZmrx9tztf3VO+1AvzQ19OhHAxic8=; l=334; h=From:To:Subject:Date:From; b=cNDorfTykQMAX/NQkRVI9PQcNok4zwg03A5YcsX2NYELkH5UO1lUhntk2KhU75cTb kdCSNU2O6AXZd11mdLE6AFLK0U1KMIf9iWZFPubEVCnHhOV0pEwd5a7WtzRb3WrwnQ 2ke02i8Q0nddgExvCnkjaPerxSkkLCeDrEGWLk6o= From: Russell Coker To: selinux-refpolicy@vger.kernel.org Subject: fd use Date: Tue, 08 Jan 2019 23:30:57 +1100 Message-ID: <6322354.IqHVsHREFi@liv> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org Is there an easy way of determining what number fd corresponds to an audit message about fd use? If a fd has a number <=2 then it's probably deliberately being inherited while if it's >2 then someone probably forgot to set close on exec. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/