STABLE14-no-default-setuid-20070319

FIXES 54713

disable default setuid for localcell


(cherry picked from commit c4183dbc1fb0e3d4db5105fe3312816fc82a7a33)
This commit is contained in:
Derrick Brashear 2007-03-20 00:52:20 +00:00
parent e3f9d9a1de
commit bed7e986cb

View File

@ -708,8 +708,7 @@ afs_NewCell(char *acellName, afs_int32 * acellHosts, int aflags,
tc->vlport = AFS_VLPORT; tc->vlport = AFS_VLPORT;
RWLOCK_INIT(&tc->lock, "cell lock"); RWLOCK_INIT(&tc->lock, "cell lock");
newc = 1; newc = 1;
if (afs_thiscell && !strcmp(acellName, afs_thiscell)) aflags |= CNoSUID;
aflags &= ~CNoSUID;
} }
ObtainWriteLock(&tc->lock, 688); ObtainWriteLock(&tc->lock, 688);