Skip to content

Commit fe7570c

Browse files
OS Guard: Remove unnecessary SELinux context mapping and enable SELinux and IPE lockout module (#14546)
tardev-snapshotter is not present or used in our linuxguard / osguard images. So remove SELinux label for it. Also enable azureci_prod SELinux module to prevent tampering with SELinux and IPE settings at runtime. Signed-off-by: Chris Co <[email protected]>
1 parent 00befca commit fe7570c

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

toolkit/imageconfigs/files/linuxguard/selinux-ci-uki.semanage

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ login -m -s ci_unconfined_u -r 's0' root
1616
login -m -s ci_unconfined_u -r 's0' __default__
1717
fcontext -a -f f -t bin_t -r 's0' '/etc/grub\.d/.*'
1818
fcontext -a -f f -t fsadm_exec_t -r 's0' '/usr/bin/lsblk'
19-
fcontext -a -f f -t dockerd_exec_t -r 's0' '/usr/bin/tardev-snapshotter'
2019
fcontext -a -f f -t bin_t -r 's0' '/usr/share/netplan/netplan\.script'
2120
fcontext -a -e /etc/selinux /usr/etc/selinux

toolkit/imageconfigs/files/osguard/selinux-ci-uki.semanage

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ login -m -s ci_unconfined_u -r 's0' root
1616
login -m -s ci_unconfined_u -r 's0' __default__
1717
fcontext -a -f f -t bin_t -r 's0' '/etc/grub\.d/.*'
1818
fcontext -a -f f -t fsadm_exec_t -r 's0' '/usr/bin/lsblk'
19-
fcontext -a -f f -t dockerd_exec_t -r 's0' '/usr/bin/tardev-snapshotter'
2019
fcontext -a -f f -t bin_t -r 's0' '/usr/share/netplan/netplan\.script'
2120
fcontext -a -e /etc/selinux /usr/etc/selinux

toolkit/imageconfigs/scripts/common/selinux-ci-config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"authlogin",
3131
"azureci",
3232
"azureci_deletions",
33+
"azureci_prod", # enables SELinux and IPE lockout
3334
"bootloader",
3435
"brctl",
3536
"clock",

0 commit comments

Comments
 (0)