The NetBSD Project

CVS log for pkgsrc/pkgtools/pkg_install/files/lib/vulnerabilities-file.c

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / lib

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jul 21 14:32:00 2020 UTC (6 years, 3 months ago) by sjmulder
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -2 lines
pkg_install: BOOTSTRAP guard on libarchive-using function

Initial bootstrap builds of pkg_install don't use libarchive. Guarding
this function (as other places are) with #ifndef BOOTSTRAP prevents
'implicit declaration of archive_...()' warnings on FreeBSD 12 and Xcode
beta, which due to -Werror broke the bootstrap.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Feb 26 23:45:02 2018 UTC (8 years, 8 months ago) by ginsbach
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -8 lines
pkg_install-20180226:
- add option to include IGNORE_URL pkg_install.conf entries in audit
  but flagged as "ignored".
- bump version to 20180226

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Apr 19 21:42:50 2017 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +20 -14 lines
pkg_install-20170419:
- Convert to libarchive 3.x interfaces, avoiding the legacy glue.
- Rename local copy of netpgpverify to match installed headers.
- Shuffle bootstrap code to reduce special cases in pkg_add.
- Always read/write file names in tar archives as binary. While they are
  supposed to be UTF-8, locale conversion creates more problems than it
  solves here.
- Fix const correctness in gpg_verify.
- Add format string annotation for xasprintf for GCC-like compilers.
- Restrict supported archive formats for binary packages to ar (signed
  packages) and tar (actual content) with uncompressed/gzip/bzip2/xz as
  compression choices. This reduces the exposed libarchive surface.
- The pkg-vulnerability file correspondingly supports only the same
  compression choices.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Sep 1 12:14:06 2015 UTC (11 years, 2 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -8 lines
Implement inline package signature verification.

This replaces calling out to an external gpg command for verification
with inline verification using the security/netpgpverify library.

Bump version to 20150901.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 16 23:02:49 2010 UTC (16 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +8 -5 lines
pkg_install-20100616:
- Recognize -C for pkg_add like the rest of the tools do
- Do the existing check for pkg_add -f, it makes the combination of
  -f and -U a bit less surprising
- Fix option handling for CHECK_VULNERABILITIES (from spz@)
- Make end-of-life check the default. pkg_install.conf(5) can be used to
  override the default. The existing admin -e & co continue to work as
  before.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Apr 14 18:24:58 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +92 -33 lines
pkg_install-20100405:
- Try to detect common forms of pkgdb corruption and issue a warning in
  that case.
- Refactor the pkg_vulnerabilities logic to use the compression support
  from libarchive. This reduces the amount zlib/bzip2 interaction to the
  linkage.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Mar 2 14:59:14 2009 UTC (17 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -2 lines
pkg_install-20090301:
Plug a number of file descriptor leaks.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Feb 2 12:35:01 2009 UTC (17 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +169 -68 lines
Merge pkg_install-20090201 from pkg_install-renovation branch.

- DB support is always included from libnbcompat if needed
- pkg_view and linkfarm are not installed any more; they are not moved
into the attic yet, so they can easily be installed as separte package
- common configuration file to customise the behavior of various
components; this supersedes the old audit-packages.conf
- support for PKSC7 signatures (using X509 certs) and GPG signatures for
packages in a secure way. See pkg_admin(8) for how to create them and
pkg_install.conf(5) for the options to use them
- audit-packages and download-vulnerability-list are wrapper scripts
  around pkg_admin. They try to mimic the classic options if used sanely.
  "pkg_admin audit" is now an order of magnitude faster than before
- pkg_add uses libarchive and libfetch instead of external ftp and tar:
  - progress bar is currently missing for downloads
  - "pkg_add -" is no longer supported
  - no adhoc check for conficts between dependencies and already
    installed packages
  - "pkg_add -s" has been replaced with an option in pkg_install.conf,
    verification of plain detached GPG signatures is no longer supported
  - optional check for vulnerabilities before adding a package
  - if /var and /usr/pkg are on different fileystems it is twice as fast
    now
  - conflicts due to overlapping plists are checked before installation
  - pkg_add no longer plays with the process limits
- pkg_add and pkg_delete have a new destdir option; scripts have to
  either be modified to use PKG_DESTDIR or should be disabled
- pkg_add -u for now can't be used to update to the exact same version
- internal "rm -rf" and "mkdir_p" code
- all memory allocation failures are not explicitly fatal
- if a file is not removed due to a failed checksum, still remove the
  entry from pkgdb

Revision 1.3.4.10: download - view: text, markup, annotated - select for diffs
Mon Feb 2 11:55:16 2009 UTC (17 years, 9 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.9: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.9: +72 -2 lines
pkg_install-20090201:
- sync DESCR and MESSAGE with HEAD and the branch state
- sync Makefile
- regen configure
- cleanup __RCSID
- merge audit logic in pkg_add and pkg_admin into new audit_packages
function. As side effect, pkg_add will list all vulnerabilities before
asking the user whether it should continue
- sort config_variable array

Revision 1.3.4.9: download - view: text, markup, annotated - select for diffs
Tue Jan 27 22:24:06 2009 UTC (17 years, 9 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.8: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.8: +3 -3 lines
pkg_install-20090127:
Add options to specify user-id and keyrings for GPG operations.

Revision 1.3.4.8: download - view: text, markup, annotated - select for diffs
Tue Dec 30 15:55:57 2008 UTC (17 years, 10 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.7: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.7: +3 -37 lines
pkg_install-20081230:
Add initial support for secure GPG signatures.

Revision 1.3.4.7: download - view: text, markup, annotated - select for diffs
Tue Aug 5 22:32:12 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.6: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.6: +3 -1 lines
Add some repo ID comments at the top of the files.

Revision 1.3.4.6: download - view: text, markup, annotated - select for diffs
Sat Aug 2 20:33:50 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.5: +12 -24 lines
Most memory allocation failures were fatal already and the majority of
the rest lacked an explicit check. Add the usual x* wrappers around
malloc and friends that explicitly terminate on error and use them in
all but Dewey.

Revision 1.3.4.5: download - view: text, markup, annotated - select for diffs
Sat Jul 5 17:26:40 2008 UTC (18 years, 4 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.4: +2 -2 lines
pkg_install-20080705:
Based on a discussion with tls@, make the key validation stricter.
Don't allow CA keys for packages or pkg-vulnerabilities.
Require CODE SIGN as key usage attribute for packages.
Require that no key usage attribute is set for pkg-vulnerabilities.
The latter is not finalised and might change again.

Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Mon May 12 12:46:06 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.3: +33 -15 lines
Fix a stupid comparision bug that resulted in the PKCS7 signature
covering the GPG signature as well, which is not intended.
Make the parser to decide what parts are the real content and what parts
are signatures more strict. This also allows us to later drop the GPG
signature if we want to.

Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Sun May 11 20:20:38 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +50 -5 lines
Add support PKCS7 signatures in packages and pkg-vulnerabilities.
The support for non-native OpenSSL still needs to be done, e.g.
ensure static linkage for that. Documentation is essentially missing.

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Fri May 9 00:49:38 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +20 -2 lines
Avoid using SHA512_End. OpenSSL provides the other SHA512_* functions,
but not this one and mixing implementations results in very strange
errors.

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Thu May 8 23:34:27 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -7 lines
Move configuration parser into libinstall.
Add a new VERIFY_CMD to be used by pkg_add soon.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Mar 31 16:52:13 2008 UTC (18 years, 7 months ago) by tron
Branches: MAIN
CVS tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkg_install-renovation-base, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Branch point for: pkg_install-renovation
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -2 lines
Use a workaround to prevent a linker error on Mac OS X Leopard.

Reviewed by Joerg Sonnenberger and approved by Dieter Baron.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 9 22:26:56 2008 UTC (18 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Don't print errno for missing GPG setting.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Feb 19 15:16:24 2008 UTC (18 years, 9 months ago) by joerg
Branches: MAIN
pkg_install-20080219:
Add new parser for pkg_vulnerabilities, that handles decompress
transparently and internally. Preliminary tests with a modified
audit-packages show a speed increase by 2 for common operations
like listening all vulnerable installed packages.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>