On 6/4/2012 8:17 AM, Bryan Drewery wrote: > > > 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 itself. > > Does libc make sense for this? I'm thinking yes since it's where the utx > functions live. > > In particular this change seems to make sense in getutxent(3). > > Though I do not want to violate POSIX... > > The endutxent(), getutxent(), getutxid(), getutxline() and setutxent() > functions are expected to conform to IEEE Std 1003.1-2008 > (``POSIX.1''). >
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.html
signature.asc
Description: OpenPGP digital signature