Граф коммитов

22 Коммитов

Автор SHA1 Сообщение Дата
Chris PeBenito 136efa82b0
selinux-policy: Add fix for cloud-init growpart. (#9114)
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2024-05-16 16:34:27 -04:00
Chris PeBenito 508342a72a
selinux-policy: Add checkpoint restore for getty. (#8879)
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2024-04-24 08:43:35 -04:00
Chris PeBenito 32fded6ef4
selinux-policy: Silence io.containerd.internal.v1.opt denial noise. (#6449)
Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2023-10-27 16:06:24 -04:00
Chris PeBenito 47ed0529c5
Add /opt/containerd/{bin,lib} to RPMs and cherry-pick fix for systemd-hostnamed default-hostname in SELinux. (#6311)
* filesystem: Restore /opt.

/opt is part of FHS. This fixes an issue on SELinux systems where
containerd will create /opt but we'd prefer not to allow this in
the policy.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>

* selinux-policy: systemd-hostnamed fix.

Cherry pick systemd-hostnamed fix for handling /run/systemd/default-hostname.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>

* containerd: Precreate /opt/containerd/{bin,lib}.

These are created by io.containerd.internal.v1.opt but it results in the
dirs having incorrect SELinux lables.  Creating them in the package will
ensure correct labeling.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>

---------

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2023-10-12 10:31:13 -04:00
Chris PeBenito 18c84e5231
selinux-policy: Fix issues in patches. (#5735)
- Fix missing role associations in cloud-init patch.
- Fix missing require in mkinitrd patch.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2023-06-29 15:50:18 -04:00
Chris PeBenito 9cbb4cf52f
selinux-policy: Add rules for cloud-init and iptables. (#5197)
Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2023-04-18 08:52:29 -04:00
Chris PeBenito 5faeaeccb6
selinux-policy: Update to refpolicy 2.20221101. (#4848)
selinux-policy: Update to refpolicy 2.20221101.
2023-03-13 11:33:45 -04:00
Pawel Winogrodzki e0f8e7a908
Added `selinux-policy` macros to fix `openvswitch-selinux-policy` installation. (#4215) 2022-12-13 11:45:37 -08:00
Chris PeBenito cdc3586e0a
selinux-policy: Fix issue with preinst on systems that do not have selinux-policy. (#3754) 2022-09-14 16:52:46 -07:00
Chris PeBenito 2b59d099be
selinux-policy: Various updates. (#3637) 2022-08-30 15:48:08 -04:00
Chris PeBenito a45cc67104
selinux-policy: Fixes for interactive container use. (#3397) 2022-07-20 11:25:08 -04:00
Chris PeBenito f021d57259
selinux-policy: Minor fixes for groupadd, systemd-cgroups, hv_utils. (#3331) 2022-07-11 08:33:12 -04:00
Chris PeBenito 0cc7b90d63
selinux-policy: Allow unconfined domains to manipulate their own fds. (#3176)
Fixes SELinux BVTs.
2022-06-16 15:09:04 -04:00
Chris PeBenito bd04d2c953
selinux-policy: Fixes from baremetal testing. (#3047) 2022-05-26 10:59:46 -04:00
Chris PeBenito 7f3a3e9e4e
selinux-policy: Add additional patches from containers and kubernetes testing. (#2937) 2022-05-04 08:28:56 -04:00
Pawel Winogrodzki 23e3f81574
[main] Updating CGmanifest verification tools source URLs. (#2914)
* Updating source URLs and cgmanifest.json. Updating 'lcms2' to version 2.13.1.

* Updating cgmanifest.json validation script.

* Removing cgmanifest.json duplicates.

* Updating source URLs.

* Making download checks faster (thanks, Olivia!).
2022-05-02 13:29:11 -07:00
Chris PeBenito 7a5b429522
selinux-policy: Additional policy fixes for enforcing core images. (#2587)
Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2022-03-30 08:06:52 -04:00
Chris PeBenito f1042e28c4
[main] SELinux policy updates and SELinux size reduction for policy base. (#2444)
* selinux-policy: Update patches for upstreamed state.

0005 had changes prior to merging. Update the patch with the changes
from upstream review.

* Backport containers policy

* Split selinux-policy modules to a subpackage.
2022-03-25 09:54:06 -04:00
Chris PeBenito 0ec698fbc6
Enable SELinux by default on all images. (#1757)
* Add prototype SELinux auto configure

* Add 'force_enforcing' option for SELinux

* Fix setools-console tools.

* Enable SELinux by default (permissive mode) on all images.

Drop build system unit test as it breaks with SELinux enabled on core-efi.

* selinux-policy: Update to 2.20210908.

* Update to 2.20220106.

Implement policy for systemd-homed and systemd-userdbd.

* Fix RPM changelog date.

* Finalize systemd-homed policy.

* Change SELinux enablement to not affect CONFIG_LSM.

* Document build settings

* Update cgmanifest

* Update toolkit/docs/formats/imageconfig.md

Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>

* audit: Remove override so auditd starts by default.

* Add IsValid() call for SELinux inKkernelCommandLine

* Add unit test for missing selinux package

* Fix debug output for selinux setfiles

Co-authored-by: Daniel McIlvaney <damcilva@microsoft.com>
Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>
2022-02-01 08:24:41 -05:00
Chris PeBenito 07368b998e selinux-policy.spec: Remove unrelated changelog entries.
The Fedora policy once shared the same upstream, but has been a hard
fork for many years. Additionally, the version numbers are incomparable.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2021-09-21 18:36:53 +00:00
Chris PeBenito 9ef739576c selinux-policy: Bump version to 2.20210203.
Add patches so the core system can boot in enforcing. Change policy name to targeted.

Signed-off-by: Chris PeBenito <Christopher.PeBenito@microsoft.com>
2021-09-21 13:46:42 +00:00
jslobodzian 17b0e93e71
Merge 1.0 to dev branch
This merge brings the latest SELinux and many packages and CVE fixes from the 1.0 branch.
2021-08-19 13:46:51 -07:00