22893 Commits

Author SHA1 Message Date
Thilo Fromm
877120d96c SDK container README.md: better bullet points
Co-authored-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2021-11-26 17:54:43 +01:00
Thilo Fromm
337e0d7c3c SDK container: spelling + cp optimisation from code review
Add suggestions by @pothos from code review
- use `cp --reflink=auto`
- spelling error fixes

Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2021-11-26 17:54:43 +01:00
Thilo Fromm
9fba5789f9 ci-automation: simplified CI automation unsing containers
ci-automation builds on the SDK container and simplifies CI automation
build tasks (SDK bootstrap, SDK container, packages, image, VMs).

See ci-automation/README.md for a brief introduction.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-11-26 17:54:43 +01:00
Thilo Fromm
b567344234 sdk-container: add scripts for containerised SDK
This change introduces a containerised SDK as a replacement for cork SDK
operations. It also simplifies versioning by removing the need for
manifest repos as well as usage of the "repo" tool by use of git
submodules for coreos-overlay and portage-stable.

The following feature scripts are added:
- run_sdk_container: Run a command in an SDK container, using the
        current scripts repo + ebuild submodules.
        current scripts repo + ebuild submodules.
- bootstrap_sdk_container / build_sdk_container_image: Bootstrap a new
        SDK and create an SDK container from the resulting SDK tarball.

The following additions have been made to SDK scripts:
- setup_board: add --pkgdir parameter to use a custom binary packge
  directory.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2021-11-26 17:54:43 +01:00
Dongsu Park
f386da4005 Merge pull request #1445 from flatcar-linux/dongsu/gcc-9.4.0
profiles: delete unnecessary keywords for gcc
2021-11-26 16:00:03 +01:00
Dongsu Park
26f8cb61b7 Merge pull request #252 from flatcar-linux/dongsu/gcc-9.4.0
sys-devel/gcc: update gcc to 9.4.0
2021-11-26 15:59:52 +01:00
Dongsu Park
7a0c0028b5
Merge pull request #183 from flatcar-linux/dongsu/em-arm-parallel-tests
jenkins: override PARALLEL_TESTS for ARM servers in da11
2021-11-26 15:49:51 +01:00
Dongsu Park
0eac2e4aaa changelog: add new changelog for gcc 9.4.0 2021-11-26 15:34:52 +01:00
Dongsu Park
4841bcaebf sys-devel/gcc: update gcc to 9.4.0
Update sys-devel/gcc to 9.4.0, mainly to address CVE-2020-13844.
2021-11-26 15:34:08 +01:00
Dongsu Park
bb66a28afe changelog: use date format of YYYY-MM-DD
If we use date format of DD-MM-YYYY in changelog file names, the files
will not sorted by date. e.g. 01-12-2021 will come before 25-11-2021.
Use date format of YYYY-MM-DD to make the files sorted by date.
2021-11-26 15:31:09 +01:00
Dongsu Park
16efbc99c0 changelog: use date format of YYYY-MM-DD
If we use date format of DD-MM-YYYY in changelog file names, the files
will not sorted by date. e.g. 01-12-2021 will come before 25-11-2021.
Use date format of YYYY-MM-DD to make the files sorted by date.
2021-11-26 15:29:11 +01:00
Dongsu Park
daab3ae59f Merge pull request #253 from flatcar-linux/dongsu/changelog-date-format
changelog: use date format of YYYY-MM-DD
2021-11-26 15:27:09 +01:00
Dongsu Park
80972c2b70 changelog: use date format of YYYY-MM-DD
If we use date format of DD-MM-YYYY in changelog file names, the files
will not sorted by date. e.g. 01-12-2021 will come before 25-11-2021.
Use date format of YYYY-MM-DD to make the files sorted by date.
2021-11-26 15:21:29 +01:00
Dongsu Park
5c391e9008 jenkins: override PARALLEL_TESTS for ARM servers in da11
We override `PARALLEL_TESTS`, because kola run with PARALLEL_TESTS >= 4
causes the tests to provision >= 12 ARM servers at the same time. As the
da11 region does not have that many free ARM servers, the whole tests
will fail. With PARALLEL_TESTS=2 the total number of servers stays < 10.
In addition, we override `timeout` to 10 hours, because it takes more
than 8 hours to run all tests only with 2 tests in parallel.
2021-11-25 16:55:10 +01:00
Dongsu Park
e580958b30 profiles: delete unnecessary keywords for gcc
Now that gcc 9.4.0 already has stable keywords both amd64 and arm64,
we do not need to accept keywords in profiles. Simply delete.
2021-11-25 16:18:07 +01:00
Sayan Chowdhury
9ea89fe87f Merge pull request #1436 from flatcar-linux/sayan/mandate-changelog-entry
changelog: Add placeholder directory to add the changelogs
2021-11-24 22:53:45 +05:30
Sayan Chowdhury
38b1b51b46
Merge pull request #180 from flatcar-linux/sayan/mandate-changelog-entry
changelog: Add placeholder directory to add the changelogs
2021-11-24 22:53:26 +05:30
Sayan Chowdhury
d5fad356fb Merge pull request #250 from flatcar-linux/sayan/mandate-changelog-entry
changelog: Add placeholder directory to add the changelogs
2021-11-24 22:51:02 +05:30
Sayan Chowdhury
14b91f57e6 changelog: Add placeholder directory to add the changelogs
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2021-11-24 22:50:19 +05:30
Sayan Chowdhury
663fee4c68
changelog: Add placeholder directory to add the changelogs
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2021-11-24 22:50:02 +05:30
Sayan Chowdhury
025273dd18 changelog: Add placeholder directory to add the changelogs
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
Co-authored-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2021-11-24 22:49:48 +05:30
Vincent Batts
5c21980ff3
Merge pull request #182 from flatcar-linux/tormath1/cpe
build_library/set_release: add CPE_NAME - v2.3
2021-11-24 09:51:44 -05:00
Mathieu Tortuyaux
dc0f93015b
build_library/set_release: add CPE_NAME - v2.3
Flatcar is in the NIST CPE dictionary. Let's programmatically build the
`CPE_NAME` in the build process in order to be scanned.

`CPE_NAME` is part of `/etc/os-release` with the following manual entry:

```
CPE_NAME=
  A CPE name for the operating system, in URI binding syntax, following the Common Platform Enumeration Specification[2] as proposed by the NIST.
  This field is optional. Example: "CPE_NAME="cpe:/o:fedoraproject:fedora:17""
...
[^2]: Common Platform Enumeration Specification
           http://scap.nist.gov/specifications/cpe/
```

Which indicates that the current version of CPE is 2.3.

Closes: https://github.com/flatcar-linux/Flatcar/issues/536

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2021-11-23 18:22:16 +01:00
Dongsu Park
8ec91fc7c8 Merge pull request #1408 from ArkaprabhaChakraborty/arkaprabha/upgrade-net-libs-libmicrohttpd
Upgrade net-libs/libmicrohttpd to 0.9.73
2021-11-23 15:28:38 +01:00
Dongsu Park
c62bdbf1d4 Merge pull request #243 from ArkaprabhaChakraborty/arkaprabha/update-net-libs-libmicrohttpd
Upgrade net-libs/libmicrohttpd to 0.9.73
2021-11-23 15:28:31 +01:00
Kai Lüke
aff7df952a Merge pull request #1442 from flatcar-linux/kai/logrotate-fix
app-admin/logrotate: Correct downstream changes to take effect
2021-11-23 14:20:14 +01:00
Kai Lueke
e860093fe1 app-admin/logrotate: Correct downstream changes to take effect
By accident the upstream files from the example folder got used,
instead of the downstream files that were added in the files/ folder.
Also, the configuration file didn't get installed.

Use the right paths to install the downstream files.
2021-11-23 10:50:25 +01:00
Mathieu Tortuyaux
e86eadcdeb
Merge pull request #181 from flatcar-linux/tormath1/arm-em-server
kola/packet: override EM region for ARM64 server
2021-11-22 19:59:30 +01:00
Mathieu Tortuyaux
c746ab2333
kola/packet: override EM region for ARM64 server
Equinix Metal ARM server are not yet hourly available in the default `sv15` region
so we override the `PACKET_REGION` to `Dallas` since it's available in this region.
We do not override `PACKET_REGION` for both board on top level because we need to keep proximity
for PXE booting.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2021-11-22 19:43:27 +01:00
ArkaprabhaChakraborty
4032d3a5e5 Remove net-libs/libmicrohttpd from package.accept_keywords 2021-11-21 15:09:15 +00:00
ArkaprabhaChakraborty
d7d1a79cd7 Upgrade net-libs/libmicrohttpd to 0.9.73
Signed-off-by: ArkaprabhaChakraborty <chakrabortyarkaprabha998@gmail.com>
2021-11-21 13:39:52 +00:00
Dongsu Park
d68272f5e6 Merge pull request #1431 from flatcar-linux/dongsu/rsync-3.2.3-r5
profiles: accept keywords for rsync 3.2.3-r5
2021-11-19 17:41:44 +01:00
Dongsu Park
eef37ccc04 Merge pull request #249 from flatcar-linux/dongsu/rsync-3.2.3-r5
net-misc/rsync: update to 3.2.3-r5
2021-11-19 17:41:34 +01:00
Dongsu Park
4739a90732 Merge pull request #1435 from flatcar-linux/linux-5.10.80-main
Upgrade Linux Kernel in main from 5.10.78 to 5.10.80
2021-11-19 17:38:25 +01:00
Dongsu Park
755e675fca Merge pull request #1430 from flatcar-linux/docker-20.10.11-main
Upgrade Docker in main from 20.10.10 to 20.10.11
2021-11-19 17:33:06 +01:00
Mathieu Tortuyaux
218b96730b app-emulation/docker-cli: use ${PV} for CLI version
Upstream isn't updating the file regularly, so use ${PV}.

Closes: https://bugs.gentoo.org/815658
Closes: https://github.com/gentoo/gentoo/pull/22457
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: William Hubbs <williamh@gentoo.org>
2021-11-19 17:23:20 +01:00
Flatcar Buildbot
494c12850f app-emulation: Upgrade Docker 20.10.10 to 20.10.11 2021-11-19 17:23:19 +01:00
Dongsu Park
1492c1b19f Merge pull request #1429 from flatcar-linux/containerd-1.5.8-main
Upgrade Containerd in main from 1.5.7 to 1.5.8
2021-11-19 17:11:25 +01:00
Dongsu Park
bd623c63e9 profiles: accept keywords for rsync 3.2.3-r5 2021-11-19 09:21:07 +01:00
Flatcar Buildbot
e7d74d8a45 app-emulation: Upgrade Containerd 1.5.7 to 1.5.8 2021-11-19 09:18:57 +01:00
Flatcar Buildbot
e277aa133a sys-kernel: Upgrade Kernel 5.10.78 to 5.10.80 2021-11-19 07:24:19 +00:00
Mathieu Tortuyaux
46edd14fad Merge pull request #1426 from flatcar-linux/tormath1/selinux
sec-policy/selinux-base-policy: add capability to unlabeled_t
2021-11-18 16:57:53 +01:00
Mathieu Tortuyaux
5c25c3835c sec-policy/selinux-base-policy: add capability to unlabeled_t
with this patch, we allow `unlabeled_t` to associate to tmpfs
filesystem.
It aims to solve the AVC we have with `torcx` with the
`torcx-generator`:
```
Nov 15 09:45:43 localhost audit[688]: AVC avc: denied { associate } for pid=688 comm="torcx-generator" name="docker" dev="tmpfs" ino=2 scontext=system_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=filesystem permissive=0
```

It has been not been caught earlier because it occurs
when the system boots with `SELinux` in `enforcing` mode.

This denial was preventing torcx to finish correctly its setup and so
Docker was not able to start.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2021-11-18 16:56:55 +01:00
Dongsu Park
e3d44a3cc8 net-misc/rsync: update to 3.2.3-r5
Mainly to address CVE-2020-14387 .
2021-11-18 14:17:06 +01:00
Dongsu Park
c7acab5ccc Merge pull request #1427 from flatcar-linux/cacerts-3.72-main
Upgrade ca-certificates in main from 3.70 to 3.72
2021-11-18 13:31:06 +01:00
Flatcar Buildbot
b1f26fb9de app-misc: Upgrade ca-certificates 3.70 to 3.72 2021-11-17 16:03:23 +00:00
Dongsu Park
3377a02796 Merge pull request #1425 from flatcar-linux/dongsu/github-actions-cacerts-versiondelim
.github: fix version delimiter of ca-certs workflow for main
2021-11-17 16:58:11 +01:00
Dongsu Park
b65c369d0a .github: fix version delimiter of ca-certs workflow for main
Since every tag of the nss Github repo has `_` delimiters, we need to
first use `sort -t_` for sorting, then after that we need to replace `_`
with `.` by calling tr. Without that conversion, the input ebuild file
name will be wrong.
We fixed the issue in all other maintenance branches, but not in main.
Fix that also in main.
2021-11-17 16:25:41 +01:00
Dongsu Park
e7e8b822ac Merge pull request #1420 from flatcar-linux/dongsu/github-actions-ca-certs
.github: add Github Actions for ca-certificates
2021-11-17 15:33:33 +01:00
Dongsu Park
f561ec568c .github: add Github Actions for ca-certificates
Automatically update app-misc/ca-certificates , a derivative of
nss https://hg.mozilla.org/projects/nss . To make things easier,
we simply check for new releases on its Github mirror
https://github.com/nss-dev/nss . When the new latest tag is found,
simply bump the version of ca-certificates ebuild.
2021-11-16 15:30:13 +01:00