Opened 16 years ago

Last modified 14 years ago

#202 closed defect

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

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

Description

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 (0)

Note: See TracTickets for help on using tickets.