<p>While rpm -V and -q from rpmdb do verify existing signatures on rpmdb walk, this is largely useless as an attacker with sufficient permissions can modify the signature tags in rpmdb headers to make a package appear unsigned, after which it can be freely modified further without rpm seeing anything wrong. Additionally, a digest/signature check failure causes the entire header to be skipped as unreadable and so it cannot be inspected or even removed (without using --nodigest/--nosignature).</p>
<p>If there's one situation where checking signatures and all for packages coming from rpmdb makes sense, it's rpm -V, and in this case it needs to output the checks and results explicitly and make missing signatures and/or digests a verification error if so configured (and perhaps by default, require digests, similar to pkg file verification).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/811?email_source=notifications&email_token=ADLPZU4C2ROLQZUBIVSNZULQEKERHA5CNFSM4ILJMGBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HE5OXUA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYYMIBM6BKTKV46DKLQEKERHANCNFSM4ILJMGBA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZMZBAGYLZVXGVLSJ3QEKERHA5CNFSM4ILJMGBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HE5OXUA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/811?email_source=notifications\u0026email_token=ADLPZU4C2ROLQZUBIVSNZULQEKERHA5CNFSM4ILJMGBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HE5OXUA",
"url": "https://github.com/rpm-software-management/rpm/issues/811?email_source=notifications\u0026email_token=ADLPZU4C2ROLQZUBIVSNZULQEKERHA5CNFSM4ILJMGBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HE5OXUA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>