-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Compliance] Ensure the system.map is readable only by root #15893
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
Conversation
The System.map file in Bullseye-based images is not the actual System.map file. Do we still need to have it be readable by root only?
|
@saiarcot895 , the scan should only check the file name, no care the file content. Do you know who will use it? Is it any impact changing to root readonly?
/boot/System.map-5.10.0-18-2-amd64 is no used? can we remove it? |
I don't think we have a process using this file, but it might be there for consistency/expectation purposes. I'm fine with making this root readonly, but I'll also work on a change on the sonic-linux-kernel side to make sure the file gets packaged as root readonly, so that it won't need to be manually changed here. |
Looks like the debian/ folder is not in the submodule sonic-linux-kernel, but copied from the storage account, https://github.com/sonic-net/sonic-linux-kernel/blob/d070cae8e92ae3cd9798546e27d796a71fd7e914/Makefile#L59
|
Yes, but we have patches that modify files in the |
/easycla |
@saiarcot895 , do you suggest adding the patch in https://github.com/sonic-net/sonic-linux-kernel/tree/master/patch, right? |
Why I did it
[Security] Ensure the system.map is readable only by root
It is based on the scan result: https://www.open-scap.org/security-policies/scap-security-guide/
Work item tracking
How I did it
The current permission is 0644, need to change to 0600.
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)