cvs commit: src/sys/kern kern_prot.c src/sys/sys ucred.h

Simon Schubert corecode at
Mon Jan 8 13:34:11 PST 2007

corecode    2007/01/08 13:32:57 PST

DragonFly src repository

  Modified files:
    sys/kern             kern_prot.c 
    sys/sys              ucred.h 
  Fix the obscure at(1) permission problem.
  change_[er]uid() both use cratom(), however their consumers happened to cache
  the original cred in a variable.  If the cred happened to be shared before
  (for example due to an open(2)), a conditional lateron would still reference
  the old cred instead of the new one, which was instanciated in change_[er]uid.
  Fix this by returning the new cred from change_[er]uid and using this in
  subsequent conditionals.
  Revision  Changes    Path
  1.27      +11 -10    src/sys/kern/kern_prot.c
  1.9       +2 -2      src/sys/sys/ucred.h

More information about the Commits mailing list