From 1ecb15494a769dad02d2278dbe50d34cab0cab05 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Sun, 24 Apr 2005 15:01:29 +0000 Subject: [PATCH] avoid-leaking-stat-info-20050424 otherwise we are effectively giving stat powers to people who shouldn't have it --- src/afs/VNOPS/afs_vnop_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 229bba463..c82496a47 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -1198,7 +1198,7 @@ afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, struct AFS_UCRED /* Check for read access as well. We need read access in order to * stat files, but not to stat subdirectories. */ - if (!afs_AccessOK(adp, PRSFS_LOOKUP, &treq, CHECK_MODE_BITS)) + if (!afs_AccessOK(adp, PRSFS_READ, &treq, CHECK_MODE_BITS)) no_read_access = 1; /* special case lookup of ".". Can we check for it sooner in this code, -- 2.39.5