From owner-p4-projects@FreeBSD.ORG Sun Jan 20 22:46:07 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 21CB416A41B; Sun, 20 Jan 2008 22:46:07 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C271116A417 for ; Sun, 20 Jan 2008 22:46:06 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7883E13C447 for ; Sun, 20 Jan 2008 22:46:06 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0KMk6TY023370 for ; Sun, 20 Jan 2008 22:46:06 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0KMk6el023367 for perforce@freebsd.org; Sun, 20 Jan 2008 22:46:06 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 20 Jan 2008 22:46:06 GMT Message-Id: <200801202246.m0KMk6el023367@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 133749 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: Sun, 20 Jan 2008 22:46:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=133749 Change 133749 by rwatson@rwatson_freebsd_capabilities on 2008/01/20 22:45:20 Add rudimentary support for capability file types. There's more to it than this if done properly, but we'll need to export the indirected file descriptor type and properties, as well as the mask. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/usr.bin/procstat/procstat_files.c#2 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/usr.bin/procstat/procstat_files.c#2 (text+ko) ==== @@ -205,6 +205,15 @@ str = "h"; break; + case KF_TYPE_CAPABILITY: + /* + * XXXRW: Ideally, we'd display detailed information + * on the object behind the capability, and the + * rights on the capability. + */ + str = "a"; + break; + case KF_TYPE_NONE: case KF_TYPE_UNKNOWN: default: