summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs/auth.c
AgeCommit message (Collapse)Author
2022-08-01hjfs: do not truncate lines on /adm/users writeSigrid Solveig Haflínudóttir
2022-03-08hjfs: fix group ownership of home dirs created by newuser commandAlex Musolino
2017-03-27hjfs: simplify dprintingspew
2013-07-05hjfs: add users command, fix newuser ? documentationcinap_lenrek
2012-11-18hjfs: ORCLOSE parent check, estrdup / erealloc, CHFNOPERM consistencycinap_lenrek
check for write premission in the parent directory for open with ORCLOSE. honor CHFNOPERM not just in chancreat(), pikeshedd the error handling. added estrdup()/erealloc() that call sysfatal instead of returning nil.
2012-11-18hjfs: fix dump / createcinap_lenrek
getdent() introduced a bug as the qid check fails in the case when we walk to DUMPROOTQID, but get ROOTQID in the directory instead. newentry() getblk(..., GBCREATE) caused the whole directory to get dumped until it hit a free slot. we cannot do this because this changes the addresses of Dentries of files but doesnt update the loctree. this caused the bogus walks when we hit a different directory than we expected. what we do now is the following: newentry() was changed to never dump anything. it will just read the directory and return a the address of a free slot or create a new block having space for one. chancreat() then makes a loc in the loctree for the free slot, drops the dirent buffer and calls willmodify() on the new slot. this will dump the block containing the slot (and possible other slots) and updates the loctree to the new version. after that, chancreate() modifies the slot filling the Dentry. there should be no race, as newentry() skips slots that have a loc in the loctree. theres one case where newentry() can dump the block immidiately when it is called from dump. added new parameter for that and documented in the comment. createuserdir() was simplified by just calling chancreat(). to get arround the permission check, a new per channel flag CHFNOPERM was added.
2012-11-15hjfs: fix more missing dirty marks, error handling, cleanupcinap_lenrek
2012-08-11hjfs: fix permcheck bugcinap_lenrek
2012-08-08hjfs: various fixesaiju
2012-08-08hjfs: various changesaiju
2012-08-07added hjfsaiju