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

feat(rocky): support Rocky Linux #107

Merged
merged 12 commits into from
Jan 18, 2022

Conversation

MaineK00n
Copy link
Contributor

@MaineK00n MaineK00n commented Sep 22, 2021

Extract Security-related Errata from Rocky Linux updateInfo.
Add the security-related Errata (RLSA) to the vuln-list.

$ VULN_LIST_DEBUG=1 ./vuln-list-update -target rocky
2022/01/12 02:46:06 target repository is aquasecurity/vuln-list
2022/01/12 02:46:06 Skip git pull
2022/01/12 02:46:06 Fetching Rocky Linux 8 BaseOS x86_64 data...
2022/01/12 02:46:06 Remove Rocky Linux 8 BaseOS x86_64 directory /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/8/BaseOS/x86_64
2022/01/12 02:46:07 Write Errata for Rocky Linux 8 BaseOS x86_64 2021
9 / 9 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s
2022/01/12 02:46:07 Fetching Rocky Linux 8 BaseOS aarch64 data...
2022/01/12 02:46:07 Remove Rocky Linux 8 BaseOS aarch64 directory /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/8/BaseOS/aarch64
2022/01/12 02:46:07 Write Errata for Rocky Linux 8 BaseOS aarch64 2021
9 / 9 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s
2022/01/12 02:46:07 Fetching Rocky Linux 8 AppStream x86_64 data...
2022/01/12 02:46:07 Remove Rocky Linux 8 AppStream x86_64 directory /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/8/AppStream/x86_64
2022/01/12 02:46:08 Write Errata for Rocky Linux 8 AppStream x86_64 2021
21 / 21 [---------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s
2022/01/12 02:46:08 Fetching Rocky Linux 8 AppStream aarch64 data...
2022/01/12 02:46:08 Remove Rocky Linux 8 AppStream aarch64 directory /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/8/AppStream/aarch64
2022/01/12 02:46:09 Write Errata for Rocky Linux 8 AppStream aarch64 2021
21 / 21 [---------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s
2022/01/12 02:46:09 Fetching Rocky Linux 8 Devel x86_64 data...
2022/01/12 02:46:09 Remove Rocky Linux 8 Devel x86_64 directory /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/8/Devel/x86_64
2022/01/12 02:46:09 Write Errata for Rocky Linux 8 Devel x86_64 2021
5 / 5 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s
2022/01/12 02:46:09 Fetching Rocky Linux 8 Devel aarch64 data...
2022/01/12 02:46:09 Remove Rocky Linux 8 Devel aarch64 directory /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/8/Devel/aarch64
2022/01/12 02:46:10 Write Errata for Rocky Linux 8 Devel aarch64 2021
3 / 3 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% ? p/s

$ tree /home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/
/home/mainek00n/.cache/vuln-list-update/vuln-list/rocky/
└── 8
    ├── AppStream
    │   ├── aarch64
    │   │   └── 2021
    │   │       ├── RLSA-2021:1979.json
    │   │       ├── ...
    │   │       └── RLSA-2021:4903.json
    │   └── x86_64
    │       └── 2021
    │           ├── RLSA-2021:1979.json
    │           ├── ...
    │           └── RLSA-2021:4903.json
    ├── BaseOS
    │   ├── aarch64
    │   │   └── 2021
    │   │       ├── RLSA-2021:2575.json
    │   │       ├── ...
    │   │       └── RLSA-2021:5226.json
    │   └── x86_64
    │       └── 2021
    │           ├── RLSA-2021:2575.json
    │           ├── ...
    │           └── RLSA-2021:5226.json
    └── Devel
        ├── aarch64
        │   └── 2021
        │       ├── RLSA-2021:2363.json
        │       ├── ...
        │       └── RLSA-2021:4381.json
        └── x86_64
            └── 2021
                ├── RLSA-2021:2363.json
                ├── ...
                └── RLSA-2021:4646.json

16 directories, 68 files

refs. aquasecurity/trivy#1053

@MaineK00n MaineK00n force-pushed the support-rocky-linux branch from 9575413 to 5319cea Compare January 11, 2022 16:41
updateinfo_valid.xml Outdated Show resolved Hide resolved
Copy link
Collaborator

@knqyf263 knqyf263 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I left some nit comments.

rocky/rocky.go Outdated Show resolved Hide resolved
rocky/rocky.go Outdated Show resolved Hide resolved
rocky/rocky.go Outdated Show resolved Hide resolved
rocky/rocky.go Show resolved Hide resolved
rocky/rocky_test.go Outdated Show resolved Hide resolved
rocky/rocky_test.go Outdated Show resolved Hide resolved
rocky/rocky_test.go Show resolved Hide resolved
rocky/rocky.go Show resolved Hide resolved
@MaineK00n MaineK00n force-pushed the support-rocky-linux branch from 5925d6b to 38d6347 Compare January 18, 2022 04:57
Copy link
Collaborator

@knqyf263 knqyf263 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@knqyf263 knqyf263 merged commit 4d919c3 into aquasecurity:main Jan 18, 2022
@MaineK00n MaineK00n deleted the support-rocky-linux branch January 18, 2022 13:45
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.

2 participants