Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ground work for implementation of CPE applicability language #7613

Merged
merged 31 commits into from
Nov 1, 2021

Commits on Nov 1, 2021

  1. introduce new classes for CPEAL

    create list of CPE checks during parsing of product and content cpes
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    9bac616 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d602de3 View commit details
    Browse the repository at this point in the history
  3. create first prototype

    finish xml output of CPEAL elements
    implement logic for parsing of platform lines
    try to include it into build system
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    dec6e03 View commit details
    Browse the repository at this point in the history
  4. fix build

    switched from usage of check-fact-ref to fact-ref
    check-fact-ref can't be used now because of xccdf 1.1
    also fact-ref can reuse existiing cpe names
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    cfc72e5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b9076f9 View commit details
    Browse the repository at this point in the history
  6. platforms build but applicability seems broken

    trying chronyd_or_ntp_set_maxpoll
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    b6174a3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9e07223 View commit details
    Browse the repository at this point in the history
  8. fix comparison of CPE AL tests

    previous implementation was inaccurate
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    bbd7dee View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c652073 View commit details
    Browse the repository at this point in the history
  10. remove definitions of check-fact-ref class

    they are not used now and they could cause confusion
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    0dc1147 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3736f50 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fc34ed7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7c3f99c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    6316463 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bd120fd View commit details
    Browse the repository at this point in the history
  16. shorten variable names

    replace cpe_al_* with cpe_*
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    6839ea7 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    431a245 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    bc853b9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    50210c0 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    56b1052 View commit details
    Browse the repository at this point in the history
  21. fix assigning of platform ids

    substrings were not replaced
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    f35358a View commit details
    Browse the repository at this point in the history
  22. get rid of cpe_names object for groups and rules

    for profiles I am still waiting
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    51fc77b View commit details
    Browse the repository at this point in the history
  23. make sure that multiple AND operators are handled correctly

    rework comparing of platformspecifications, logicaltests and factrefs
    when dumping logicaltest into xml, nested logicaltests must go first and then factrefs
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    4657f17 View commit details
    Browse the repository at this point in the history
  24. make sure that platform is added to global list of platforms

    this step was not done in all situations and it caused datastream contain references to not defined platforms
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    e7bcea3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    c50ac10 View commit details
    Browse the repository at this point in the history
  26. extracted the parse_platform_line function

    it is not dependent on ProductCPE class
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    ccb7669 View commit details
    Browse the repository at this point in the history
  27. move convert_platform_to_id function out of the class

    it is independent
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    281e4d4 View commit details
    Browse the repository at this point in the history
  28. move parse_platform_definition function out of the class

    it is independent
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    2ca29c6 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    bed490a View commit details
    Browse the repository at this point in the history
  30. remove some logic around logical operators which are not implemented yet

    the logic might come back in future improvements
    vojtapolasek committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    50dc5be View commit details
    Browse the repository at this point in the history
  31. Update platform handling in the test suite

    The machine platform applicability definition in rules/groups has changed,
    so the test suite had to be extended accordingly.
    matejak committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    b9a3a01 View commit details
    Browse the repository at this point in the history