diff options
author | jkh <jkh@FreeBSD.org> | 2001-02-03 20:56:32 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2001-02-03 20:56:32 +0000 |
commit | 7af2fba0c0ea1f0a371c8aefd97f24b6b0348be3 (patch) | |
tree | 767a875b05802c430e4ac8a4dfddc313840b4a0f /usr.sbin/pkg_install/info/perform.c | |
parent | 416d33d3f0dca622fb40233535300cb9e2b8c0ba (diff) | |
download | FreeBSD-src-7af2fba0c0ea1f0a371c8aefd97f24b6b0348be3.zip FreeBSD-src-7af2fba0c0ea1f0a371c8aefd97f24b6b0348be3.tar.gz |
Add a -g flag for verifying an installed package against its recorded
checksums (to see if it's been modified post-installation). Naturally,
this mechanism is only as secure as the contents of /var/db/pkg if you're
using it for auditing purposes.
Submitted by: Roman Shterenzon <roman@xpert.com>
Diffstat (limited to 'usr.sbin/pkg_install/info/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/info/perform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c index e9fa6d5..f9955bc 100644 --- a/usr.sbin/pkg_install/info/perform.c +++ b/usr.sbin/pkg_install/info/perform.c @@ -205,6 +205,8 @@ pkg_do(char *pkg) show_files("Files:\n", &plist); if ((Flags & SHOW_SIZE) && installed) show_size("Package Size:\n", &plist); + if ((Flags & SHOW_CKSUM) && installed) + show_cksum("Mismatched Checksums:\n", &plist); if (Flags & SHOW_ORIGIN) show_origin("Origin:\n", &plist); if (!Quiet) |