summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/rcache/rc_io.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1997-03-25 06:16:54 +0000
committerTheodore Tso <tytso@mit.edu>1997-03-25 06:16:54 +0000
commit82d72a406fd3823b0ee00bfe41c4227018b454d8 (patch)
treeb4ec9d526bc9dadd88a1556d818abf83283ecd5a /src/lib/krb5/rcache/rc_io.c
parent3546280503f530047b2320136737f8b2cf500fce (diff)
downloadkrb5-82d72a406fd3823b0ee00bfe41c4227018b454d8.tar.gz
krb5-82d72a406fd3823b0ee00bfe41c4227018b454d8.tar.xz
krb5-82d72a406fd3823b0ee00bfe41c4227018b454d8.zip
rcache owner should be checked against the effective uid, not the real
uid. [krb5-libs/366] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10027 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/rcache/rc_io.c')
-rw-r--r--src/lib/krb5/rcache/rc_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/rcache/rc_io.c b/src/lib/krb5/rcache/rc_io.c
index bf11e8ff95..3d69c15bd7 100644
--- a/src/lib/krb5/rcache/rc_io.c
+++ b/src/lib/krb5/rcache/rc_io.c
@@ -185,7 +185,7 @@ krb5_error_code krb5_rc_io_open (context, d, fn)
if ((d->fd = stat(d->fn, &statb)) != -1) {
uid_t me;
- me = getuid();
+ me = geteuid();
/* must be owned by this user, to prevent some security problems with
* other users modifying replay cache stufff */
if ((statb.st_uid != me) || ((statb.st_mode & S_IFMT) != S_IFREG)) {