[3019] in Kerberos-V5-bugs
pending/676: Bugs with solutions (Linux)
daemon@ATHENA.MIT.EDU (Leif Jakob)
Sun Dec 13 10:30:13 1998
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, Leif Jakob <jakob@weite-welt.com>
Date: Sat, 12 Dec 1998 23:57:22 +0100
From: Leif Jakob <jakob@weite-welt.com>
To: krb5-bugs@MIT.EDU
>Number: 676
>Category: pending
>Synopsis: Bugs with solutions (Linux)
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Sun Dec 13 10:30:00 EST 1998
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Hi MIT!
Specification:
Linux 2.0.35 (former Suse 5.1 but hardly hacked)
libc.so.5.4.33
gcc 2.7.2.1
krb5-1.0.5
libncurses.so.3.0.970515
Here are my bugs:
After running configure the telnet and telnetd didn't link. I had
to add the -lncurses in both Makefiles. But the telnet did cause
stack overflows because the tgetent called itself recursiv (checked
with debugger). Don't know why.
I added the line just before this function:
#define HAVE_SETUPTERM
So this part isn't compiled anymore - it works.
Next Bug (probably Linux specific):
In ksu the program calls first seteuid(target) this is no problem,
but the next call to seteuid(0) fails.
Solution:
Set the real and effective user to superuser at start of program:
### CUT HERE ### patch -u
--- main.c Sat Dec 12 23:33:51 1998
+++ main.c.backup Sat Feb 7 04:41:57 1998
@@ -1,5 +1,3 @@
-#include <unistd.h>
-
/*
* Copyright (c) 1994 by the University of Southern California
*
@@ -384,9 +382,6 @@
if (cc_source_tag_tmp == (char *) 1)
cc_source_tag_tmp = cc_source_tag;
}
-
- setreuid(0,0);
-
if (krb5_seteuid(source_uid)) {
com_err ( prog_name, errno, "while setting euid to source user");
exit(1);
### CUT HERE ###
Now it works. May be linux specific?
If for any reason you think this patch is no good idea, please
send me some mail.
Thanks for the product its really cute
Leif Jakob
--
################################################################
# FAX/Voice : +49-251-211236 | Admin of www.weite-welt.com #
# To get my PGP-Key send | #
# message with subject : | Visit my private homepage: #
# GETPGPKEY | http://www.jakob.weite-welt.com #
################################################################
This mail was composed on a 100% M$ free system - Linux rules.