this one is gay and thinking about kissing girls and also designing an XML schem...

@freya@highenergymagic.net

this one is gay and thinking about kissing girls and also designing an XML schema for a codesigning signature block. I mean I might just use fucking plist. it exists, why not steal it? basically. each binary (say, /usr/bin/bash) will have a .FMISignature section embedded in the binary that specifies: binary name, publisher, origin, per-page hashes, root hash for the whole binary, signature verifying the integrity of the hashes, and that signature will be a certificate that chains back to one of the root certs in the system keychain, and if a binary doesn't have a valid signature, it won't run. I'm also thinking about using entitlements to gate things like "this binary can su to root" behind having specific cryptographically-verified entitlements in the binary's manifest, which can only be inserted at build-time like? this would, coincidentally, catch and make things like CopyFail impossible, because even if the binary was in the disk cache in ram, the integrity of the binary gets checked at execv() time, and the moment the modified page in su(1) gets detected, SIGABRT gets thrown and the whole thing dies