Are there any good books, blogs, wiki's, etc, on coding security systems? and standards that should be followed? I'm specifically interested in writing Access Control (DAC, MAC, RBAC) and auditing. I think I have a solid working understanding of DAC due to my experience with *nix systems. But I don't know what goes into implementing these systems (example: I believe there is a standard for RBAC?) and would like to learn.
Most of this should be language independent, but language dependent resources are welcome.
update yes I know there are lots of existing modules and about NIH Syndrome and Don't Reinvent the wheel... however sometimes you have to reinvent the wheel for educational purposes. Someone has to know how to build security systems, and they have to start learning somewhere.
update I decided to make this a Community Wiki because I doubt there is any 1 good answer and I think it could be an important resource.