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

Add docker support #80

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

malvads
Copy link

@malvads malvads commented Nov 22, 2023

As I've seen from many users here, current support for RHEL8 or any other OS is deprecated due to the Python 2 issue. So, I've created a Docker version of it that should fix the dependency issues for any user who wants to run this on RHEL7, RHEL8, RHEL9, or any other OS.

The install_docker.sh script does the build and runs the container, also creating a script in /usr/bin

For example, you can run rhsecapi.sh CVE-2013-4113 CVE-2014-3669 CVE-2004-0230 CVE-2015-4642, and the result will be as executing the script in the main OS:

result:

Missing optional python module: argcomplete

  To enable bash auto-magic tab-completion, install it:
    yum/dnf install python-pip
    pip install argcomplete
    activate-global-python-argcomplete
    (Open new shell)

  To skip using argcomplete AND disable future printing of this message:
    touch ~/.rhsecapi-no-argcomplete
      OR
    touch /etc/rhsecapi-no-argcomplete

[NOTICE ] rhsda: Found 4 CVEs on cmdline
[NOTICE ] rhsda: Valid Red Hat CVE results retrieved: 3 of 4

CVE-2013-4113
  SEVERITY : Critical Impact
  DATE     : 2013-07-11
  BUGZILLA : 983689
  FIXED_RELEASES :
   Red Hat Enterprise Linux 3 Extended Lifecycle Support: [php-0:4.3.2-56.ent] via RHSA-2013:1063 (2013-07-15)
   Red Hat Enterprise Linux 4 Extended Lifecycle Support: [php-0:4.3.9-3.37.el4] via RHSA-2013:1063 (2013-07-15)
   Red Hat Enterprise Linux 5: [php-0:5.1.6-40.el5_9] via RHSA-2013:1049 (2013-07-12)
   Red Hat Enterprise Linux 5: [php53-0:5.3.3-13.el5_9.1] via RHSA-2013:1050 (2013-07-12)
   Red Hat Enterprise Linux 5.3 Long Life: [php-0:5.1.6-23.4.el5_3] via RHSA-2013:1061 (2013-07-15)
   Red Hat Enterprise Linux 5.6 EUS - Server Only: [php-0:5.1.6-27.el5_6.5] via RHSA-2013:1061 (2013-07-15)
   Red Hat Enterprise Linux 5.6 EUS - Server Only: [php53-0:5.3.3-1.el5_6.3] via RHSA-2013:1062 (2013-07-15)
   Red Hat Enterprise Linux 6: [php-0:5.3.3-23.el6_4] via RHSA-2013:1049 (2013-07-12)
   Red Hat Enterprise Linux 6.2 EUS - Server and Compute Node Only: [php-0:5.3.3-3.el6_2.10] via RHSA-2013:1061 (2013-07-15)
   Red Hat Enterprise Linux 6.3 EUS - Server and Compute Node Only: [php-0:5.3.3-14.el6_3.1] via RHSA-2013:1061 (2013-07-15)
  FIX_STATES :
   Not affected: Red Hat Enterprise Linux 7 [php]
   Not affected: Red Hat Software Collections [php54-php]

CVE-2014-3669
  SEVERITY : Moderate Impact
  DATE     : 2014-09-18
  BUGZILLA : 1154500
  FIXED_RELEASES :
   Red Hat Enterprise Linux 5: [php53-0:5.3.3-26.el5_11] via RHSA-2014:1768 (2014-10-30)
   Red Hat Enterprise Linux 5: [php-0:5.1.6-45.el5_11] via RHSA-2014:1824 (2014-11-06)
   Red Hat Enterprise Linux 6: [php-0:5.3.3-40.el6_6] via RHSA-2014:1767 (2014-10-30)
   Red Hat Enterprise Linux 6.5 Extended Update Support: [php-0:5.3.3-27.el6_5.3] via RHSA-2015:0021 (2015-01-08)
   Red Hat Enterprise Linux 7: [php-0:5.4.16-23.el7_0.3] via RHSA-2014:1767 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6: [php54-php-0:5.4.16-22.el6] via RHSA-2014:1765 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6: [php55-php-0:5.5.6-13.el6] via RHSA-2014:1766 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS: [php54-php-0:5.4.16-22.el6] via RHSA-2014:1765 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS: [php55-php-0:5.5.6-13.el6] via RHSA-2014:1766 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS: [php54-php-0:5.4.16-22.el6] via RHSA-2014:1765 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.5 EUS: [php55-php-0:5.5.6-13.el6] via RHSA-2014:1766 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS: [php54-php-0:5.4.16-22.el6] via RHSA-2014:1765 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.6 EUS: [php55-php-0:5.5.6-13.el6] via RHSA-2014:1766 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 7: [php54-php-0:5.4.16-22.el7] via RHSA-2014:1765 (2014-10-30)
   Red Hat Software Collections 1 for Red Hat Enterprise Linux 7: [php55-php-0:5.5.6-13.el7] via RHSA-2014:1766 (2014-10-30)

CVE-2004-0230
  BUGZILLA : No Bugzilla data
   Too new or too old? See: https://bugzilla.redhat.com/show_bug.cgi?id=CVE_legacy

CVE-2015-4642
  Not present in Red Hat CVE database
  Try https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4642

it creates a wrapper for the docker in /usr/bin/rhsecapi.sh that you can use with commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant