From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 4 18:20:19 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E3501065670 for ; Mon, 4 Jun 2012 18:20:19 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 9C8868FC12 for ; Mon, 4 Jun 2012 18:20:18 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type; q=dns; s=sweb; b=YGXtOQyrDbnQDZ/Fe/axTT2xS5eD4EQ0 Amepyvo5va6uL/Re9+0RZ1GMfLeB58kYE7KBZFA7mx40C38vM28GUl3AfaKKmeOr YNCw10hEGCBjQjz+UfyigH47IyIrIv74jBoVPukSkPS8c4bCPlCoO20ccmSeh1Y+ YizydWns84A= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type; s=sweb; bh=y7runUwKVvkfMqTCvmunN87yVIlPTAGl2YAf2r rUqVE=; b=wYqu9GRQTQqqkQW0odSQyzhhyB/rszBQI16ALJSY/KOL2ZnFUDxSnB LFI/WwVvRfeTGQroElhzF8gla7Ik8Bn1IKhTGmtkqmiRSH7FOVb1uck0CgckHqez nxe39nfW6WOf0HQoazl2ci3T5EC3OhoTThcoOP1vMJeDlyx6a2VjM= Received: (qmail 47954 invoked from network); 4 Jun 2012 13:20:17 -0500 Received: from unknown (HELO ?192.168.21.109?) (bryan@shatow.net@74.94.87.209) by sweb.xzibition.com with ESMTPA; 4 Jun 2012 13:20:17 -0500 Message-ID: <4FCCFC65.4090400@shatow.net> Date: Mon, 04 Jun 2012 13:20:21 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4FCC126C.1020600@shatow.net> <20120604094214.GC1387@garage.freebsd.pl> <4FCCB584.4050808@shatow.net> In-Reply-To: <4FCCB584.4050808@shatow.net> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1516D44EF4348E22ACAD7A95" Subject: Re: [RFC] last(1) with security.bsd.see_other_uids support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 18:20:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1516D44EF4348E22ACAD7A95 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 6/4/2012 8:17 AM, Bryan Drewery wrote: >=20 >=20 > On 6/4/2012 4:42 AM, Pawel Jakub Dawidek wrote: >> A library is definiately a better place, although then I wouldn't pass= >> see_other_uids as an argument, but obtain it within the function itsel= f. >=20 > Does libc make sense for this? I'm thinking yes since it's where the ut= x > functions live. >=20 > In particular this change seems to make sense in getutxent(3). >=20 > Though I do not want to violate POSIX... >=20 > The endutxent(), getutxent(), getutxid(), getutxline() and setutxe= nt() > functions are expected to conform to IEEE Std 1003.1-2008 > (``POSIX.1''). >=20 Found this [1]: An implementation that provides extended security controls may impose implementation-defined restrictions on accessing the user accounting database. In particular, the system may deny the existence of some or all of the user accounting database entries associated with users other than the caller. So POSIX allows this. I will proceed and submit another patch for review soon. Regards, Bryan Drewery bdrewery@freenode, bryan@EFNet [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/getutxid.htm= l --------------enig1516D44EF4348E22ACAD7A95 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJPzPxlAAoJEG54KsA8mwz5OicQAKqrHdLvO0tqMcLHYQFTkgBe Y8XH6PcG6JkiCxp6J5kVA6gQlOX5HKAWMD/qw7NMzxavRYuogGJf6vm3b66tp1A+ aA7yLr5MPPSW8L2FiQjskax38lWB3OSvQzrRKC6gPxQAzgkXVCpQ+krcSMGFgl6/ abX28PI9yytp1XWwv0gFO68CB5lWcmsStj5oGS2BaucpRuJuJmCJ9RWbFyeXcllY TUNfHzVaXPQ4MxDJQMwGHvCZoLRcAHZIeYdErbaKvtu17t2eGz6mnjW6mi9CJ8ol A3eTp+kh1rTKmqjWcZZuqSFYsKTO3zAus7PO3ZTNK5hyfubX9DAqydgjRaboJTep 3LadKoK6XtZaSw4apyy1HxG2piqC0i9yz/VzAVa/+SWTxBLNgCStNZlnL9c0WQli bfUOuGN2spE7hWAqJxsooiu2eO/1Rm6awxUkxKg6M969coRBMX5CnBrUIvzb20lF IADjoakUJL3pfOTV1RtCsmTGOFccevVEwrSToXTgUrZ0MRTAYHOY7n05mNpFToiv U0Cp1JEr3zFwurnyT21jUksXkZEL9mHqxyC+ZKGlLR+GL6OFlDTkUPUQQrEZDjz7 yUuseCzWkgLXO3EdArEM2tiM+RnjRn8yvTI3QyIiStDwkcgGzLxJ3IDzWmfUAQVW lmSxMqJvuk1d0ed+fAl9 =Zjx3 -----END PGP SIGNATURE----- --------------enig1516D44EF4348E22ACAD7A95--