-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[secure boot] Support rw files allowlist (#4585)
* Support rw files allowlist for Sonic Secure Boot * Improve the performance * fix bug * Move the config description into a md file * Change to use a simple way to remove the blank line * Support chmod a-x in rw folder * Change function name * Change some unnecessary words
- Loading branch information
Showing
5 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
home/.* | ||
var/core/.* | ||
var/log/.* | ||
etc/adjtime | ||
etc/default/ntp | ||
etc/dhcp/dhclient.conf | ||
etc/ebtables.filter | ||
etc/group | ||
etc/gshadow | ||
etc/hostname | ||
etc/hosts | ||
etc/machine-id | ||
etc/network/interfaces | ||
etc/nsswitch.conf | ||
etc/ntp.conf | ||
etc/pam.d/common-auth-sonic | ||
etc/pam.d/sshd | ||
etc/pam.d/login | ||
etc/pam.d/sshd.old | ||
etc/passwd | ||
etc/rsyslog.conf | ||
etc/shadow | ||
etc/sonic/acl.json | ||
etc/sonic/config_db.json | ||
etc/sonic/minigraph.xml | ||
etc/sonic/old_config/.* | ||
etc/sonic/snmp.yml | ||
etc/sonic/updategraph.conf | ||
etc/ssh/ssh_host_rsa_key.pub | ||
etc/ssh/ssh_host_rsa_key | ||
etc/subgid | ||
etc/subuid | ||
etc/tacplus_nss.conf | ||
etc/tacplus_user | ||
lib/systemd/system/serial-getty@.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Configuration Guide | ||
It is the patterns of the relative paths in /host/image-{{hash}}/rw folder. | ||
The patterns will not be used if the Sonic Secure Boot feature is not enabled. | ||
The files that are not in the allowlist will be removed when the Sonic System cold reboot. | ||
|
||
### Example config to add all the files in a folder to allowlist | ||
home/.* | ||
|
||
### Example config to add a file to allowlist | ||
etc/nsswitch.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters