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

6191 Коммитов

Автор SHA1 Сообщение Дата
Christopher Co a928ed0b6b
feat: Enable MPTCP (#10014)
Enable Multipath TCP (MPTCP) to allow using multiple interface paths to send and receive TCP packets for improving throughput and redundancy.

Signed-off-by: Chris Co <chrco@microsoft.com>
2024-08-05 11:09:19 -07:00
Rachel Menge c311b35d87
Enable EVM (#10004)
Enable the Extended Verification Module (EVM) support to allow the verification of security-related extended attributes like SELinux file labels or IMA hash

Signed-off-by: Chris Co <chrco@microsoft.com>
Co-authored-by: Chris Co <chrco@microsoft.com>
2024-08-02 19:54:17 -07:00
Aditya Dubey 1b37ef84a8
yasm: patch CVE-2021-33454 (3.0) (#10001) 2024-08-02 14:09:21 -07:00
Andrew Phelps ca199000c6
msopenjdk: update to latest prod version and add hash verification (#10005) 2024-08-01 21:29:24 -07:00
Daniel McIlvaney e42bf48e7a
Remove old -j flag from check-circular-deps.yml (#10000) 2024-08-01 15:56:39 -07:00
Chris Gunn 496538ffce
Image Customizer: Fix merge in 'TestCustomizeImagePartitionsLegacy'. (#10002) 2024-08-01 15:20:51 -07:00
Chris Gunn 4b1db90cdb
Fix call to `parted mkpart`. (#9983)
In PR #9932, a bug fix was made to ensure that GPT partitions don't receive a default label of "primary". Unfortunately, that change relies on a bug fix to `parted` that was made in v3.5, which is relatively recent.

For reference:

- Ubuntu 22.04: 3.4
- Ubuntu 24.04: 3.6
- Azure Linux 2.0: 3.4
- Azure Linux 3.0: 3.6

This change provides a workaround by giving partitions a default name of "primary", if the build host has an older version of parted.
2024-08-01 14:23:52 -07:00
Chris Gunn d4c16113c5
Image Customizer: Add tests for services enable/disable. (#9944)
Add tests for enabling and disabling services, both for services that exist and ones that don't exist.

Also, fix a bug in the `IsServiceEnabled` function where the disabled state isn't being properly distinguished from other types of errors.
2024-08-01 13:47:35 -07:00
Chris Gunn d80ba54c18
Image Customizer: Fixes for grub2-install. (#9978)
1. Use either the `grub-install` or `grub2-install` command, whichever is available on the build host.

2. Add `grub2-install` to the image customizer prerequisites list in the README.

3. Add `grub2-install` to the image customizer container.

4. Remove the `grub2` package from the legacy boot config, since it isn't needed.

5. Allow the `USER` environment variable to be empty, which is the case in docker containers.
2024-08-01 13:20:58 -07:00
Riken Maharjan 4f545f6cdb
Remove unnecessary Requires:libselinux from coreutils to fix Circular dependency (#9999) 2024-08-01 12:47:46 -07:00
Christopher Co 747a3268ab
feat: Enable FS_VERITY and SECURITY_IPE LSM (#9979)
Enable FS-verity and Integrity Policy Enforcement LSM. These are useful security features that users/services can leverage to better secure their system.

Signed-off-by: Chris Co <chrco@microsoft.com>
2024-08-01 11:11:12 -07:00
KavyaSree2610 4f04a77894
Add systemd service to postgresql (#9906) 2024-08-01 10:43:41 +05:30
Riken Maharjan 8bd64e7f9d
Add missing runtime dependencies for automake. (#9977) 2024-07-31 10:02:49 -07:00
Muhammad Falak R Wani 87f82d2af2
toolkit/pkgbld.sh: add a helper script to build packages locally (#9960)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2024-07-31 11:08:16 +05:30
CBL-Mariner-Bot e1fbaab983
[AUTOPATCHER-kernel] Kernel upgrade to version 6.6.43.1 - branch 3.0-dev (#9976) 2024-07-30 20:49:24 -07:00
Muhammad Falak R Wani d0b4c65ce1
coreutils: introduce patch to address CVE-2024-0684 (#9910)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2024-07-31 08:18:22 +05:30
Chris Gunn 123e72b3c8
Image Customizer: Improve copy directory error message. (#9933)
1. When calling `cp`, include the last line of `stderr` in the error message.

2. Ensure that the `file.CopyDir` function adds useful information to the error message.

3. Add path information to error message for `.os.additionalDirs` errors.
2024-07-30 17:48:07 -07:00
Aditya Dubey b21bfd500c
Onboarding cpufrequtils, mtr, and sysfsutils packages to 3.0 (#9913) 2024-07-30 14:44:01 -07:00
Chris Gunn 6ba5269748
Image Customizer: Add checks for missing/duplicate partition labels. (#9935) 2024-07-30 11:43:12 -07:00
Christopher Co 3e0884c6f1
feat: Add drivers for DMI and EROFS, dm-verity verification (#9971)
Add DMI sysfs and EROFS module support. Additionally hooks for Secure Boot with dm-verity verification.
These kconfigs will also be necessary to onboard Azure Linux into upstream systemd's CI testing.

Signed-off-by: Chris Co <chrco@microsoft.com>
2024-07-30 11:27:07 -07:00
Sumynwa fcd059b5bf
Upgrade httpd to 2.4.62 to address CVE-2024-40725 (#9926)
Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2024-07-30 10:48:17 +05:30
Muhammad Falak R Wani dd75c98e24
cf-cli: address CVE-2023-39325 (#9949)
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2024-07-30 07:48:33 +05:30
CBL-Mariner-Bot cacdec2d12
[AUTOPATCHER-kernel] Kernel upgrade to version 6.6.39.1 - branch 3.0-dev (#9945)
Co-authored-by: Cameron Baird <cameronbaird@microsoft.com>
2024-07-29 14:18:08 -07:00
Harshit Gupta dbf0de7771
Enable CONFIG_RT_GROUP_SCHED in kernel-rt (#9869)
Co-authored-by: Harshit Gupta <guptaharshit@microsoft.com>
2024-07-29 16:25:15 -04:00
Daniel McIlvaney 150888f716
Better toolchain downloader (#9941) 2024-07-29 13:19:27 -07:00
Daniel McIlvaney d96751d59c
Integrate new license checker package into image and package builds. (#9885) 2024-07-29 13:11:26 -07:00
Daniel McIlvaney 806d57df36
Make check-circular-deps.yml faster with -j, use lkg (#9962) 2024-07-29 13:10:57 -07:00
Sam Meluch c60100ab77
update go link commands for go-1.21 in ubuntu prereq (#9943) 2024-07-26 16:32:02 -05:00
Chris Gunn 47b47bb971
Toolkit: Do not give GPT partitions a default label of "primary". (#9932)
When creating partitions using `parted`, the API is:

- MBR: `parted mkpart <partition-type> <fs-type> ...`
- GPT: `parted mkpart <partition-label> <fs-type> ...`

But currently we are treating the first param as always being the `<partition-type>`, when for GPT it is `<partition-label>`. This has the effect that GPT partitions are given a default label of "primary", which is a tad silly. (If an explicit label is provided by the user, then the label is overridden in a subsequent step.)

This change fixes this behavior so that GPT partitions have a default label of nothing ("").
2024-07-26 11:58:56 -07:00
Kelsey Steele 1e36b3d4e0
kernel: config_aarch64: convert selected configs to modules (#9471)
Moving batch of configs that were built-in to be modules to maintain flexibility, though reduce kernel size and boot speed.

These modules are already set as modules on x86 and only targeted to change on arm64.

Signed-off-by: Kelsey Steele <kelseysteele@microsoft.com>
2024-07-26 10:09:16 -07:00
Andrew Phelps 26fe98357f
compiler-rt: fix path issue (#9937) 2024-07-26 09:50:41 -07:00
CBL-Mariner-Bot 8dbb6f0a43
Prepare August 2024 Release (#9936)
Co-authored-by: jslobodzian <joslobo@microsoft.com>
2024-07-26 12:21:00 -04:00
Muhammad Falak R Wani 586698f74c
bind: upgrade 9.19.21 -> 9.20.0 to address CVE-CVE-2024-0760, CVE-2024-1737, CVE-2024-1975 & CVE-2024-4076 (#9918)
Changelog: https://gitlab.isc.org/isc-projects/bind9/-/blob/v9.20.0/CHANGES
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2024-07-26 10:12:14 +05:30
Daniel McIlvaney 39dc854346
Add automatic mode for DAILY_BUILD_ID (#9899)
Co-authored-by: Jon Slobodzian <joslobo@microsoft.com>
2024-07-25 17:18:58 -07:00
Daniel McIlvaney 5d9747d71c
Use structs to pass data to scheduler prints (#9883) 2024-07-25 17:05:39 -07:00
Daniel McIlvaney 5016f3f5f9
Add new license validator tool (#9060)
Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>
2024-07-25 14:26:09 -07:00
joejoew 7b1635b878
Add patch for CVE-2024-6655 (#9916)
Co-authored-by: Zhichun Wan <zhichunwan@microsoft.com>
2024-07-25 14:22:26 -07:00
CBL-Mariner-Bot 6d6e31e558
[AUTOPATCHER-CORE] Upgrade krb5 to 1.21.3 CVE-2024-37371, CVE-2024-37370 (#9922) 2024-07-25 13:35:23 -07:00
Chris Gunn c30db7485c
Image Customizer: Partition UUID reset. (#9435) 2024-07-24 17:15:32 -07:00
Henry Li 898c473529
[3.0] Add libnvidia-nscq to NVIDIA GPU driver container image (#9920)
Co-authored-by: Henry Li <lihl@microsoft.com>
2024-07-24 15:14:23 -07:00
Henry Li db4724477b
Onboard NVIDIA Driver Container to PublishContainer script (#9439)
Co-authored-by: Henry Li <lihl@microsoft.com>
2024-07-24 13:28:20 -07:00
Chris PeBenito fbb71da05c
selinux-policy: Clean up testing rules and add systemd fix. (#9911)
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2024-07-24 14:48:20 -04:00
Hideyuki Nagase 4dfd6c8ce8
3.0-dev: add xorg-x11-server-Xwayland v24.1.1 (#9875) 2024-07-23 16:27:13 -07:00
Chris Gunn 03be749c9f
Image Customizer: Increase loopback detach timeout. (#9892)
Ubuntu seems to like to call dumpe2fs on ext4 partitions when you mount a disk (even if you don't mount any of the partitions). Depending the size of partition, this can take a little bit of time to run, which can block the loopback from detaching.

The Image Customizer tool uses loopback devices a lot, some of which are only used for a short period of time. So, it can timeout waiting for the loopback to detach. So, this change increases the timeout.
2024-07-23 12:01:37 -07:00
Chris Gunn 8eb68c37b4
Image Customizer: Validate HOME and USER env vars. (#9900)
The gpg command, and by extension, the tdnf command expects the USER and HOME environment variables to be valid for the OS they are running under (including under chroot). Since, the image customizer tool is typically run under `sudo` and since root is always a valid user, this generally isn't a problem. But this isn't true if `sudo -E` is used. And this can result in strange difficult to diganose errors in tdnf. So, this change verifies that `sudo -E` isn't being used.
2024-07-23 12:01:25 -07:00
CBL-Mariner-Bot 643ca821ed
[AUTOPATCHER-CORE] Upgrade python-idna to 3.7 CVE-2024-3651 (#9907) 2024-07-23 09:51:34 -07:00
Hideyuki Nagase 321d359429
3.0-dev: move xorg-x11-server and xorg-x11-drv-libinput to SPECS-EXTE… (#9884) 2024-07-20 06:00:28 -04:00
Betty 0978d4ef00
libguestfs: restore removed tests (#9882)
Co-authored-by: Betty Lakes <bettylakes@microsoft.com>
2024-07-19 15:30:56 -07:00
Henry Li 4878d16de2
Add NVIDIA Container Build Script (#8946)
Co-authored-by: Henry Li <lihl@microsoft.com>
2024-07-19 14:13:52 -07:00
Chris Gunn 2f3865f7ea
Image Customizer: Do not shrink verity hash partition. (#9880)
The verity hash partition must be given a placeholder filesystem type. This should probably be `fat32` for simplicty's sake. But currently, the verity example config uses `ext4`. This causes a problem when the `--shrink-filesystems` is set because it means the verity hash partition gets shrunk to almost nothing and therefore isn't big enough to store the hash tree.

This change fixes this problem by ensuring that the verity hash partition is never subject to being shrunk regardless of its placeholder filesystem type. A test is added to verify this.
2024-07-19 12:39:29 -07:00