Opened 16 years ago

Last modified 14 years ago

#202 closed defect

libc gid setting is calling wrong backend function — at Version 1

Reported by: Yuri Dario Owned by: bird
Priority: normal Milestone: libc-0.6.4
Component: libc-backend Version:
Severity: normal Keywords:
Cc:

Description (last modified by bird)

gid related functions are calling uid backend, here is the supposed corrected source code:

Index: b_processCredentials.c
===================================================================
--- b_processCredentials.c	(revision 3523)
+++ b_processCredentials.c	(working copy)
@@ -135,7 +135,7 @@
 int __libc_Back_processSetGid(gid_t gid)
 {
     LIBCLOG_ENTER("gid=%d (%#x)\n", gid, gid);
-    int rc = __libc_spmSetUid(gid);
+    int rc = __libc_spmSetGid(gid);
     if (!rc)
         LIBCLOG_RETURN_INT(rc);
     LIBCLOG_ERROR_RETURN_INT(rc);
@@ -155,7 +155,7 @@
 int __libc_Back_processSetGidAll(gid_t rgid, gid_t egid, gid_t svgid)
 {
     LIBCLOG_ENTER("rgid=%d (%#x) egid=%d (%#x) svgid=%d (%#x)\n", rgid, rgid, egid, egid, svgid, svgid);
-    int rc = __libc_spmSetUidAll(rgid, egid, svgid);
+    int rc = __libc_spmSetGidAll(rgid, egid, svgid);
     if (!rc)
         LIBCLOG_RETURN_INT(rc);
     LIBCLOG_ERROR_RETURN_INT(rc);

Change History (1)

comment:1 by bird, 14 years ago

Description: modified (diff)
Status: newassigned
Note: See TracTickets for help on using tickets.