Working on package rhnmd I look in file rhnmdwrap.c and find there:
/* This hack is needed to get around a Red Hat patch that disallows
non-root users to run the sshd binary. */
int setgroups(size_t size, const gid_t *list)
{
return 0;
}
I was wondering if it is true. So I tried it and appareantly I can run
sshd as normal user. On both RHEL4 and RHEL5.
So I digged into history and in our old internal cvs find the same file
but with slightly different comment:
/* This hack is needed to get around a Red Hat patch that disallows
non-root users to run the sshd binary. For the RHEL 3 release, openssh
will be un-patched and this hack should not be needed */
So it seems that this hack was done for RHEL 2. I'm going to remove this
wrapper and make from rhnmd noarch package.
If somebody know reason why we should leave this wrapper on place,
please raise your voice now.
--
Miroslav Suchy
RHN Satellite Engineering, Red Hat
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel