From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 1 19:40:37 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1508316A4EE for ; Fri, 1 Oct 2004 19:40:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06EA743D48 for ; Fri, 1 Oct 2004 19:40:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i91JeCp5006976 for ; Fri, 1 Oct 2004 19:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i91JeCWJ006975; Fri, 1 Oct 2004 19:40:12 GMT (envelope-from gnats) Resent-Date: Fri, 1 Oct 2004 19:40:12 GMT Resent-Message-Id: <200410011940.i91JeCWJ006975@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Björn König Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDB4116A4CE for ; Fri, 1 Oct 2004 19:35:44 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E424443D3F for ; Fri, 1 Oct 2004 19:35:44 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i91JZiaJ046872 for ; Fri, 1 Oct 2004 19:35:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i91JZiMF046866; Fri, 1 Oct 2004 19:35:44 GMT (envelope-from nobody) Message-Id: <200410011935.i91JZiMF046866@www.freebsd.org> Date: Fri, 1 Oct 2004 19:35:44 GMT From: Björn König To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/72238: mac_seeotheruids restricts root X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 19:40:37 -0000 >Number: 72238 >Category: kern >Synopsis: mac_seeotheruids restricts root >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 01 19:40:12 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Björn König >Release: FreeBSD 5.2.1 >Organization: >Environment: affects all FreeBSD 5 versions up to CURRENT >Description: mac_seeotheruids hides processes and connections from root. This is unsuitable because its hard for root to maintain a multi-user server. Another problem for example is that an ident daemon can't work properly. >How-To-Repeat: Load the kernel module "kldload mac_seeotheruids" Execute as root "sockstat" "ps aux" It shows only root's connections and processes. >Fix: Apply this patch --- src/sys/security/mac_seeotheruids/mac_seeotheruids.c.orig Thu Mar 27 20:26:39 2003 +++ src/sys/security/mac_seeotheruids/mac_seeotheruids.c Fri Oct 1 21:32:13 2004 @@ -104,6 +104,9 @@ if (!mac_seeotheruids_enabled) return (0); + if (u1->cr_ruid == 0) + return (0); + if (primarygroup_enabled) { if (u1->cr_rgid == u2->cr_rgid) return (0); >Release-Note: >Audit-Trail: >Unformatted: