From owner-p4-projects@FreeBSD.ORG Mon Jul 4 11:16:54 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9F94416A428; Mon, 4 Jul 2005 11:16:53 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F03116A437 for ; Mon, 4 Jul 2005 11:16:53 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ACFC43D4C for ; Mon, 4 Jul 2005 11:16:53 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j64BGrW2004810 for ; Mon, 4 Jul 2005 11:16:53 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j64BGq4b004804 for perforce@freebsd.org; Mon, 4 Jul 2005 11:16:52 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Mon, 4 Jul 2005 11:16:52 GMT Message-Id: <200507041116.j64BGq4b004804@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 79536 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 11:16:54 -0000 http://perforce.freebsd.org/chv.cgi?CH=79536 Change 79536 by rwatson@rwatson_paprika on 2005/07/04 11:15:59 Don't expose file system id/handle information to non-CAP_SYS_ADMIN processes. Should investigate this more, as the compat kern_foo code should now be implementing much of this. Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/alpha/osf1/osf1_mount.c#8 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/alpha/osf1/osf1_mount.c#8 (text+ko) ==== @@ -37,6 +37,7 @@ #include #include +#include #include #include #include @@ -187,7 +188,7 @@ (error = VFS_STATFS(mp, sp, td))) continue; sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; - if (suser(td)) { + if (cap_check(td, CAP_SYS_ADMIN)) { bcopy(sp, &sb, sizeof(sb)); sb.f_fsid.val[0] = sb.f_fsid.val[1] = 0; sp = &sb;