2 ms·
Is it possible to have a proper compile time ACL for C++? Arguably the Badge pattern as presented in the article is just an honor system that provides zero sec
by desdiv 7y ago
Is it possible to have a proper compile time ACL for C++?
Arguably the Badge pattern as presented in the article is just an honor system that provides zero security, since it's trivial to forge a fake Badge: https://repl.it/repls/BountifulQuerulousCron https://repl.it/repls/BountifulQuerulousCron
- vnorilo 7y agoIt's less trivial if you make the copy/move constructors private. https://repl.it/repls/HatefulMadeupMicrostation https://repl.it/repls/HatefulMadeupMicrostation Of course, type systems are orthogonal to any real security, at least in most languages, and certainly all languages with no-holds-barred interface to machine code.