openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/rsconf.c
static rsRetVal dropPrivileges(rsconf_t* cnf)
{
    DEFiRet;

    if (cnf->globals.gidDropPriv != 0)
    {
        CHKiRet(doDropPrivGid());
        DBGPRINTF("group privileges have been dropped to gid %u\n",
                  (unsigned)ourConf->globals.gidDropPriv);
    }

    if (cnf->globals.uidDropPriv != 0)
    {
        doDropPrivUid(ourConf->globals.uidDropPriv);
        DBGPRINTF("user privileges have been dropped to uid %u\n",
                  (unsigned)ourConf->globals.uidDropPriv);
    }

finalize_it:
    RETiRet;
}
/* drop privileges. This will drop to the configured privileges, if
 * set by the user. After this method has been executed, the previous
 * privileges can no be re-gained.
 */
drop privileges. This will drop to the configured privileges, if
set by the user. After this method has been executed, the previous
privileges can no be re-gained.
drop privileges . This will drop to the configured privileges if set by the user . After this method has been executed the previous privileges can no be re - gained .
static rsRetVal dropPrivileges(rsconf_t* cnf)
{
    DEFiRet;
    if (cnf->globals.gidDropPriv != 0)
    {
        CHKiRet(doDropPrivGid());
        DBGPRINTF("group privileges have been dropped to gid %u\n",
                  (unsigned)ourConf->globals.gidDropPriv);
    }
    if (cnf->globals.uidDropPriv != 0)
    {
        doDropPrivUid(ourConf->globals.uidDropPriv);
        DBGPRINTF("user privileges have been dropped to uid %u\n",
                  (unsigned)ourConf->globals.uidDropPriv);
    }
finalize_it:
    RETiRet;
}
static rsRetVal dropPrivileges ( rsconf_t * cnf ) { DEFiRet ; if ( cnf -> globals . gidDropPriv != 0 ) { CHKiRet ( doDropPrivGid ( ) ) ; DBGPRINTF ( " \n " , ( unsigned ) ourConf -> globals . gidDropPriv ) ; } if ( cnf -> globals . uidDropPriv != 0 ) { doDropPrivUid ( ourConf -> globals . uidDropPriv ) ; DBGPRINTF ( " \n " , ( unsigned ) ourConf -> globals . uidDropPriv ) ; } finalize_it : RETiRet ; }
drop privileges.
drop privileges .