Skip to content

Commit 18b7a0d

Browse files
committed
overlay coreos/user-patches: Rework SELinux patches
- Merge all the patches into one. Previously there were a bunch of smaller patches, but their filenames and their contents did not really explain what they were fixing. - Document some of the changes that we have made. Try to put as much information about our own modifications. - Drop deprecated killall(kernel_t), mcs_file_read_all(kernel_t), mcs_file_write_all(kernel_t), mcs_ptrace_all(kernel_t). - Add more changes to cover more of the AVCs we were getting.
1 parent 4aed2a5 commit 18b7a0d

File tree

10 files changed

+518
-239
lines changed

10 files changed

+518
-239
lines changed

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/0001-Flatcar-modifications.patch

Lines changed: 501 additions & 0 deletions
Large diffs are not rendered by default.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/0001-policy-modules-kernel-all-more-actions-for-kernel.patch

Lines changed: 0 additions & 16 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
The following steps were needed to make these patches:
2+
3+
- Clone the refpolicy repo:
4+
- https://github.com/SELinuxProject/refpolicy.git
5+
- Checkout the appropriate tag:
6+
- For example `RELEASE_2_20231002`.
7+
- Apply the Gentoo patch:
8+
- See the sec-policy/selinux-base ebuild in portage-stable for the
9+
patch tarball URL.
10+
- Apply our changes.
11+
- Generate the patch:
12+
- Since sec-policy/selinux- packages set their source directory to
13+
work directory (in Gentooese: `S=${WORKDIR}/`), the user patches
14+
are applied from the parent directory of the refpolicy sources. In
15+
order to generate proper patches, do `git format-patch
16+
--src-prefix=a/refpolicy/ --dst-prefix=b/refpolicy/
17+
<SINCE_COMMIT>`

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/container.patch

Lines changed: 0 additions & 78 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/files-relabel.patch

Lines changed: 0 additions & 44 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/icmp-bind.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/init.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/locallogin.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/logging.patch

Lines changed: 0 additions & 18 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/ping.patch

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)