debsig-verify
Verify signatures for a Debian format package
- Provided by: debsig-verify (Version: 0.8)
- Report a bug
Verify signatures for a Debian format package
This program is part of a security model that verifies the source and validity of a Debian format package (commonly refered to as a deb).
This program implements the verification specs defined in the document, "Package Verification with dpkg: Implementation", which is a more complete reference for the verification procedure.
The program generally takes one argument, the deb file to be verified. It will then check the origin signature of the deb, find its Public Key ID (long format), and use that as the name for a policy subdirectory. If this subdirectory does not exist, then the verification fails immediately.
In this subdirectory, the program finds one or more files named with the .pol file extension, which signifies an XML format policy definition. This file contains three main parts.
The policy files will reference keyrings by a filename. These keyrings will be looked for in a subdirectory of the keyring directory. The subdirectory has the same name as the policy subdirectory (previously determined by the Origin's Public Key ID).
The program will, after first parsing the entire file, check the Origin ID against the Public Key ID of the origin signature in the deb. If these match (which they should, else something is really wrong), then it will proceed to the Selection rules.
The Selection rules decide whether this policy is suitable for verifying this deb. If these rules fail, then the program will proceed to the next policy. If it passes, then the program commits to using this policy for verification, and no other policies will be referenced.
The last verification step relies on the Verification rules. These are similar in format to the Selection rules, but are usually more constrained. If these rules fail, the program exits with a non-zero status. If they pass, then it exits with a zero status.
Ben Collins <bcollins@debian.org>