From owner-freebsd-security@FreeBSD.ORG Thu Dec 3 11:14:56 2009 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 517141065672 for ; Thu, 3 Dec 2009 11:14:56 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id D83948FC1C for ; Thu, 3 Dec 2009 11:14:55 +0000 (UTC) Received: by bwz5 with SMTP id 5so960933bwz.3 for ; Thu, 03 Dec 2009 03:14:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=/IqYFbhyHvfHXc+37LOjr+PQrxkbltLEEP4Xp6wDkJE=; b=ejPpyWSbUMADKNVp3fHZDp8v7Tokf8J5Ap3Gd0zFHh2kuJkvqwZb/rCe6asHeWTVEX ZVuWR/jhGKFvwVM6TRyDTsgqMT+f2uh3VxBjX0XrCv321ThjTIISLU+ITpMB6g3gXZJg LPiE/kPZs4yPViMeKJ8/AtMqKSDDj/QdtTQww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=V6UmUZD+YjsDwvFicFIGvDuWfLEdoPIrzQjNOQy3spK6XKoAQs9uIDkaqnITKL28Wv fzsOxvgFTxdMugbskm/J+o7+uQyZKeJjcFfZUGzXLy3Jtc5eLZyX+eXPk5Wu31TZRppK AeqvLXAxD1yuXxtOAYYRRj9UXTNFLMVeBbZ1k= MIME-Version: 1.0 Received: by 10.204.6.65 with SMTP id 1mr1433345bky.186.1259838894705; Thu, 03 Dec 2009 03:14:54 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Dec 2009 14:14:54 +0300 Message-ID: From: pluknet To: Marc Silver Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-security@freebsd.org Subject: Re: bsd.security.see_other_uids affecting netstat? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 11:14:56 -0000 2009/12/3 Marc Silver : > Hi guys, > > Please forgive if this is a bit of a noob question > > I noticed that when the bsd.security.see_other_uids sysctl is set to 0, the > netstat command gives no output for users (non-root). No, it gives no access to sockets (switched to per-inpcb since 7) not owned by that user. See mac_seeotheruids(4): DESCRIPTION The mac_seeotheruids policy module, when enabled, denies users to see processes or sockets owned by other users. -- wbr, pluknet