Skip to content

Comments

[AGENTLESS] Remove previously installed kernels after security upgrades#234

Open
0intro wants to merge 2 commits intomasterfrom
djc/agentless-autoremove
Open

[AGENTLESS] Remove previously installed kernels after security upgrades#234
0intro wants to merge 2 commits intomasterfrom
djc/agentless-autoremove

Conversation

@0intro
Copy link
Member

@0intro 0intro commented Aug 1, 2025

What does this PR do?

This change adds "apt autoremove" after running
unattended upgrades in deployment scripts, so it removes previously installed kernels after security upgrades.

It should prevent the Agentless Scanner to report unused kernel packages in SBOM, thus preventing the vulnerability product to report vulnerabilities for them.

@0intro 0intro requested review from a team as code owners August 1, 2025 08:33
@jinroh
Copy link
Collaborator

jinroh commented Aug 4, 2025

We should add this to /etc/apt/apt.conf.d/50unattended-upgrades:

Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";

0intro and others added 2 commits August 5, 2025 10:26
This change adds "apt autoremove" after running
unattended upgrades in deployment scripts, so it removes
previously installed kernels after security upgrades.

It should prevent the Agentless Scanner to report unused
kernel packages in SBOM, thus preventing the vulnerability
product to report vulnerabilities for them.
@jinroh jinroh force-pushed the djc/agentless-autoremove branch from 278f4c0 to 47386a3 Compare August 5, 2025 08:26
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.

3 participants