selinux: keys: Remove stray debugging

This commit is contained in:
Danny Lin 2021-12-17 14:17:59 -08:00
parent 9f2d25d7be
commit a1d82d9806

View file

@ -124,11 +124,6 @@ export async function readKeysConfRecursive(root: string) {
} }
export function resolveKeys(srcKeys: Array<KeyInfo>, srcMacPerms: Array<MacSigner>, compiledMacPerms: Array<MacSigner>) { export function resolveKeys(srcKeys: Array<KeyInfo>, srcMacPerms: Array<MacSigner>, compiledMacPerms: Array<MacSigner>) {
console.log({
srcKeys: srcKeys,
srcMacPerms: srcMacPerms,
compiledMacPerms: compiledMacPerms,
})
// Build key ID -> paths map // Build key ID -> paths map
let keyToPaths = new Map(srcKeys.map(k => [k.keyId, Array.from(k.certPaths.values())])) let keyToPaths = new Map(srcKeys.map(k => [k.keyId, Array.from(k.certPaths.values())]))
@ -156,10 +151,6 @@ export async function writeMappedKeys(keys: Map<Uint8Array, Iterable<string>>) {
for (let [cert, paths] of keys.entries()) { for (let [cert, paths] of keys.entries()) {
let serialized = serializeCert(cert) let serialized = serializeCert(cert)
for (let path of paths) { for (let path of paths) {
console.log({
path: path,
cert: serialized,
})
await fs.writeFile(path, serialized) await fs.writeFile(path, serialized)
} }
} }