Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 13:44:56 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        arch@FreeBSD.org, current@FreeBSD.org
Subject:   [CFR] ucred.cr_gid
Message-ID:  <20010626134456.B86114@sunbay.com>

next in thread | raw e-mail | index | archive | help
Could someone please take a look at it before I commit this?

----- Forwarded message from Ruslan Ermilov <ru@FreeBSD.org> -----

Date: Fri, 22 Jun 2001 18:05:09 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
To: arch@FreeBSD.org, current@FreeBSD.org
Subject: ucred.cr_gid
Message-ID: <20010622180509.D31008@sunbay.com>
Mail-Followup-To: arch@FreeBSD.org, current@FreeBSD.org

Hi!

The attached patch replaces ucred.cr_groups[0] with ucred.cr_gid.
This is mostly needed for POSIX alignment.  setegid(2) etc. should
not change supplementary groups set.

Also, type of <grp.h>'s group.gr_gid changed to a more natural
gid_t (also as in POSIX).

getgrouplist(3)'s and initgroups(3)'s prototypes fixed.
getgrouplist(3) has been also fixed to not duplicate the
primary group, and always return number of suplementary
groups, even if ngroups is zero (similar to sysctl(3)).

Assorted changes:

cmsgcred.cmcred_egid	New
kproc_info.ki_gid	New
portal_cred.pcr_gid	New
xucred.cr_gid		New

I'm not sure what to do with xucred.

Also, I'm not sure about KINFO_PROC_SIZE on ia64 and PowerPC.

Please review.

See also ChangeLog.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

----- End forwarded message -----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010626134456.B86114>