Simon McVittie [Mon, 23 Oct 2023 09:33:48 +0000 (10:33 +0100)]
New upstream release
Simon McVittie [Mon, 23 Oct 2023 09:23:34 +0000 (10:23 +0100)]
Update upstream source from tag 'upstream/2023.7'
Update to upstream version '2023.7'
with Debian dir
87efd50332ba01b4f3d82cb59fd1c034293ace78
Simon McVittie [Mon, 23 Oct 2023 09:23:27 +0000 (10:23 +0100)]
New upstream version 2023.7
Colin Walters [Fri, 20 Oct 2023 13:24:56 +0000 (09:24 -0400)]
Release 2023.7
Colin Walters [Fri, 20 Oct 2023 13:36:10 +0000 (09:36 -0400)]
Merge pull request #3081 from jlebon/pr/log-selinux-refresh
lib/deploy: Log SELinux policy refresh
Jonathan Lebon [Thu, 19 Oct 2023 15:35:25 +0000 (11:35 -0400)]
lib/deploy: Log SELinux policy refresh
I have a suspicion that the `semodule -N --refresh` we do here is
involved in https://github.com/coreos/fedora-coreos-tracker/issues/1597.
Let's log when we execute it and include its time.
While we're here, also log the time it takes to `syncfs()` and the
fsfreeze/thaw cycling. It's logged in a structured journal entry, but
that's less accessible than just having it in the journal message field.
Colin Walters [Wed, 18 Oct 2023 13:07:46 +0000 (09:07 -0400)]
Merge pull request #2843 from jmarrero/retry
ostree-fetcher-curl: handle non 404 errors as G_IO_ERROR_TIMED_OUT
Joseph Marrero [Mon, 3 Apr 2023 23:04:57 +0000 (19:04 -0400)]
ostree-repo-pull: add options to configure retry behavior
This introduces the "retry-all-network-errors" option which
is enabled by default. This is a behavior change as now
ostree will retry on requests that fail except when
they fail with NOT_FOUND. It also introduces the options
"low-speed-limit-bytes" and "low-speed-time-seconds these"
map to CURL options only at the moment. Which have defaults
set following librepo:
https://github.com/rpm-software-management/librepo/blob/
7c9af219abd49f8961542b7622fc82cfdaa572e3/librepo/handle.h#L90
https://github.com/rpm-software-management/librepo/blob/
7c9af219abd49f8961542b7622fc82cfdaa572e3/librepo/handle.h#L96
Currently these changes only apply when using libcurl.
Finally this change adds a final option that affects all
backends to control the max amount of connections of the
fetcher "max-outstanding-fetcher-requests".
Colin Walters [Tue, 17 Oct 2023 13:44:24 +0000 (09:44 -0400)]
Merge pull request #3078 from HuijingHei/karg-delete-array
karg-delete: support multiple times
HuijingHei [Tue, 17 Oct 2023 12:23:07 +0000 (20:23 +0800)]
doc: add `ostree admin deploy` option `--karg-delete`
HuijingHei [Mon, 16 Oct 2023 02:56:59 +0000 (10:56 +0800)]
karg-delete: support multiple times
Fix https://github.com/ostreedev/ostree/pull/2612#issuecomment-
1764412141
Colin Walters [Mon, 16 Oct 2023 14:24:10 +0000 (10:24 -0400)]
Merge pull request #3075 from cgwalters/reenable-composefs
tests: Use ext4, re-enable composefs test
Joseph Marrero Corchado [Fri, 13 Oct 2023 20:05:44 +0000 (16:05 -0400)]
Merge pull request #3077 from cgwalters/debug-finalization-lock
deploy: Remove lock when re-staging
Colin Walters [Fri, 13 Oct 2023 17:45:04 +0000 (13:45 -0400)]
deploy: Remove lock when re-staging
This closes the biggest foot-gun when doing e.g.
`rpm-ostree rebase` when zincati is running on a FCOS system.
Previously if zincati happened to have staged + locked a deployment,
we'd keep around the lock which is definitely not what is desired.
Colin Walters [Thu, 12 Oct 2023 22:24:00 +0000 (18:24 -0400)]
tests: Use ext4, re-enable composefs test
Until the XFS fsverity stuff lands.
Joseph Marrero Corchado [Thu, 12 Oct 2023 18:52:36 +0000 (14:52 -0400)]
Merge pull request #3074 from cgwalters/more-errcontext-composefs
composefs: Add more error prefixing
Joseph Marrero Corchado [Thu, 12 Oct 2023 18:49:28 +0000 (14:49 -0400)]
Merge pull request #3073 from cgwalters/context-no-stateroot
deploy: Improve error message for nonexistent stateroot
Colin Walters [Thu, 12 Oct 2023 17:30:38 +0000 (13:30 -0400)]
composefs: Add more error prefixing
To help debug https://github.com/coreos/rpm-ostree/issues/4649
Colin Walters [Thu, 12 Oct 2023 17:22:00 +0000 (13:22 -0400)]
deploy: Improve error message for nonexistent stateroot
Came up on an internal chat; previously we were only erroring
out when trying to do the SELinux labeling for `/var` which
was really misleading.
Add some other error prefixing while we have the patient open.
Colin Walters [Thu, 12 Oct 2023 16:21:27 +0000 (12:21 -0400)]
Merge pull request #3062 from alexlarsson/transient-etc
Support transient /etc
Alexander Larsson [Fri, 29 Sep 2023 11:37:22 +0000 (13:37 +0200)]
Support transient /etc
If the `prepare-root.conf` file contains:
```
[etc]
transient=yes
```
Then during prepare-root, an overlayfs is mounted as /etc, with the
upper dir being in /run. If composefs is used, the lower dir is
`usr/etc` from the composefs image , or it is the deployed
`$deploydir/usr/etc`.
Note that for this to work with selinux, the commit must have been
built with OSTREE_REPO_COMMIT_MODIFIER_FLAGS_USRETC_AS_ETC. Otherwise
the lowerdir (/usr/etc) will have the wrong selinux contexts for the
final location of the mount (/etc).
We also set the transient-etc key in the ostree-booted file, pointing it
to the directory that is used for the overlayfs.
There are some additional work happening in ostree-remount, mostly
related to selinux (as this needs to happen post selinux policy
load):
* Recent versions of selinux-poliy have issues with the overlayfs
mount being kernel_t, and that is not allowed to manage files as
needed. This is fixed in
https://github.com/fedora-selinux/selinux-policy/pull/1893
* Any /etc files created in the initramfs will not be labeled,
because the selinux policy has not been loaded. In addition, the
upper dir is on a tmpfs, and any manually set xattr-based selinux
labels on those are reset during policy load. To work around this
ostree-remount will relabel all files on /etc that have
corresponding files in overlayfs upper dir.
* During early boot, systemd mounts /run/machine-id on top of
/etc/machine-id (as /etc is readonly). Later during boot, when etc
is readwrite, systemd-machine-id-commit.service will remove the
mount and update the real file under it with the right content. To
ensure that this keeps working, we need to ensure that when we
relabel /etc/machine-id we relabel the real (covered) file, not the
temporary bind-mount.
* ostree-remount no longer needs to remount /etc read-only in the
transient-etc case.
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Colin Walters [Thu, 12 Oct 2023 14:25:40 +0000 (10:25 -0400)]
Merge pull request #3072 from alexlarsson/fix-whiteout-test
tests: Fix whiteout test
Colin Walters [Thu, 12 Oct 2023 11:57:05 +0000 (07:57 -0400)]
Merge pull request #3063 from cgwalters/label-usretc-as-etc
repo: Add an option to label /usr/etc as /etc
Alexander Larsson [Thu, 12 Oct 2023 08:18:36 +0000 (10:18 +0200)]
tests: Fix whiteout test
This test was always skipped, because the check:
if touch overlay/baz/.wh.cow &&
touch overlay/.wh.deeper &&
touch overlay/baz/another/.wh..wh..opq; then
always fails due to the missing overlay/baz/another directory.
Fix by creating the directory.
Colin Walters [Mon, 2 Oct 2023 15:05:31 +0000 (11:05 -0400)]
repo: Add an option to label /usr/etc as /etc
This will be very useful for enabling a "transient /etc" option
because we won't have to do hacks relabling in the initramfs, or
forcing it on just for composefs.
Jonathan Lebon [Wed, 11 Oct 2023 16:03:39 +0000 (12:03 -0400)]
Merge pull request #3067 from cgwalters/ci-composefs
Colin Walters [Wed, 11 Oct 2023 12:15:25 +0000 (08:15 -0400)]
ci: Disable composefs test for now
Need to change the framework to boot with an Ignition config
that switches to ext4 soon.
Colin Walters [Thu, 5 Oct 2023 23:54:54 +0000 (19:54 -0400)]
ci: Ensure composefs+openssl are is enabled on Fedora
For some reason we're not picking this up in the Prow build,
which breaks things because now rpm-ostree hard requires it.
Let's make this a fatal build time error for more clear
debugging.
Colin Walters [Tue, 3 Oct 2023 14:08:36 +0000 (10:08 -0400)]
Merge pull request #3060 from owtaylor/export-hardlinks
When exporting, use hardlinks for duplicated files
Owen W. Taylor [Fri, 29 Sep 2023 16:09:04 +0000 (12:09 -0400)]
When exporting, use hardlinks for duplicated files
For ostree_repo_export_tree_to_archive(), and 'ostree export', when the
exported tree contains multiple files with the same checksum, write an
archive with hard links.
Without this, importing a tree, then exporting it again breaks
hardlinks.
As an example of savings: this reduces the (compressed) size of the
Fedora Flatpak Runtime image from 1345MiB to 712MiB.
Resolves: #2925
Colin Walters [Thu, 28 Sep 2023 13:12:44 +0000 (09:12 -0400)]
Merge pull request #3049 from jlebon/pr/revert-virtiofs-hack
Revert "ci: Run cosa unprivileged"
Jonathan Lebon [Thu, 28 Sep 2023 12:18:16 +0000 (08:18 -0400)]
Merge pull request #3059 from cgwalters/zipl-default-s390x
Jonathan Lebon [Tue, 19 Sep 2023 18:41:36 +0000 (14:41 -0400)]
Revert "ci: Run cosa unprivileged"
This reverts commit
2fe88f80fae83e206f811003a072c73ceebcea59.
This shouldn't be necessary now with the workaround built in cosa:
https://github.com/coreos/coreos-assembler/pull/3625
Colin Walters [Wed, 27 Sep 2023 23:34:30 +0000 (19:34 -0400)]
Merge pull request #3046 from ostreedev/dependabot/submodules/composefs-
cca8be4
build(deps): bump composefs from `
af86742` to `
cca8be4`
Colin Walters [Wed, 27 Sep 2023 15:41:55 +0000 (11:41 -0400)]
repo: Default bootloader to zipl on s390x
This will allow us to drop code like
https://github.com/coreos/coreos-assembler/blob/
87fc693c115eae1e7ff0e1621ce26c9167af6e84/src/create_disk.sh#L503
which is really just unnecessary since there aren't any other
bootloaders we care about on this architecture.
Joseph Marrero Corchado [Wed, 27 Sep 2023 19:27:26 +0000 (15:27 -0400)]
Merge pull request #3058 from cgwalters/doc-authenticated-repos
docs: Add authenticated-repos.md
Colin Walters [Wed, 27 Sep 2023 18:02:25 +0000 (14:02 -0400)]
docs: Add authenticated-repos.md
Document options for accessing repositories that require authentication.
Colin Walters [Thu, 21 Sep 2023 23:50:05 +0000 (19:50 -0400)]
Merge pull request #3021 from cgwalters/insttest-composefs-binding
tests: Add an integration test for composefs signatures
Colin Walters [Thu, 21 Sep 2023 17:13:27 +0000 (13:13 -0400)]
Merge pull request #3053 from ericcurtin/add_overlay_and_erofs_to_initrd
boot/dracut: Add erofs and overlayfs kernel modules
Eric Curtin [Tue, 19 Sep 2023 13:32:10 +0000 (14:32 +0100)]
boot/dracut: Add erofs and overlayfs kernel modules
These kernel modules are required for composefs usage in the initramfs.
The composefs use-case as of today uses an overlayfs on top of EROFS.
Colin Walters [Tue, 29 Aug 2023 18:51:38 +0000 (14:51 -0400)]
tests: Add an integration test for composefs signatures
Ensure we have some automated test coverage for this.
Eric Curtin [Wed, 20 Sep 2023 13:18:31 +0000 (14:18 +0100)]
Merge pull request #3051 from cgwalters/rust-tests-update
rust/tests: Adjust for new ostree
Colin Walters [Wed, 20 Sep 2023 12:48:17 +0000 (08:48 -0400)]
Merge pull request #3052 from cgwalters/switch-libglnx-source
gitmodules: Use github GNOME mirror
Colin Walters [Wed, 20 Sep 2023 11:58:44 +0000 (07:58 -0400)]
gitmodules: Use github GNOME mirror
gitlab.gnome.org is down right now, but it's been somewhat
flaky in the past. Our CI uptime becomes an *intersection*
of all systems it depends on, and by cutting out gitlab.gnome.org
we increase its reliability.
Colin Walters [Tue, 19 Sep 2023 19:25:36 +0000 (15:25 -0400)]
tests: Rework detection of trivial-httpd
Because it's now at the toplevel.
Jonathan Lebon [Mon, 18 Sep 2023 15:08:13 +0000 (11:08 -0400)]
Merge pull request #3047 from ostreedev/dependabot/submodules/libglnx-
aff1eea
dependabot[bot] [Mon, 18 Sep 2023 12:18:48 +0000 (12:18 +0000)]
build(deps): bump libglnx from `
54ad67d` to `
aff1eea`
Bumps libglnx from `
54ad67d` to `
aff1eea`.
---
updated-dependencies:
- dependency-name: libglnx
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 18 Sep 2023 12:18:47 +0000 (12:18 +0000)]
build(deps): bump composefs from `
af86742` to `
cca8be4`
Bumps [composefs](https://github.com/containers/composefs) from `
af86742` to `
cca8be4`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/
af867425799db92c92d35feb51d2c957f3e16ac7...
cca8be49843385ce556fccf51f75821f70fb7769)
---
updated-dependencies:
- dependency-name: composefs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Jonathan Lebon [Tue, 12 Sep 2023 13:10:11 +0000 (09:10 -0400)]
Merge pull request #3039 from cgwalters/rust-switch-include
Colin Walters [Fri, 8 Sep 2023 11:50:37 +0000 (07:50 -0400)]
rust: Switch to using `include`
This way we don't randomly pick up bits from the C library
unintentionally as things change on that side.
I think the support for `!` in `include` may be relatively new
and that's why the original author here chose to do things
via `exclude`. But using `include` with a few specific exclusions
is just way better.
Colin Walters [Mon, 11 Sep 2023 13:41:13 +0000 (09:41 -0400)]
Merge pull request #2054 from jlebon/pr/static-delta-fetch-no-scan
lib/pull: Don't scan commit objects we fetch via deltas
Jonathan Lebon [Mon, 11 Sep 2023 02:14:39 +0000 (22:14 -0400)]
lib/pull: Drop static delta superblocks references
We don't need them long-lived anymore. They were just used for reporting
at this point, but we can use the new `static_delta_targets` hash table
size for that now.
Jonathan Lebon [Sat, 9 Sep 2023 00:40:07 +0000 (20:40 -0400)]
ci: Run cosa unprivileged
As a workaround for a virtiofs bug:
https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/197
xref coreos/coreos-assembler#3428 (comment)
Just like in https://github.com/coreos/rpm-ostree/pull/4585.
Jonathan Lebon [Fri, 8 Sep 2023 20:54:29 +0000 (16:54 -0400)]
lib/pull: Don't scan commit objects we fetch via deltas
When we're fetching a commit via static delta, we already take care of
fetching the full commit, so there's no need to also scan it using the
regular object workflow.
Closes: #2053
Jonathan Lebon [Fri, 8 Sep 2023 20:50:47 +0000 (16:50 -0400)]
lib/pull: Fix miscounting of missing metadata
If e.g. detached metadata or a parent commit is missing, we
don't consider it an error but we erroneously still increment the
`n_fetched_metadata` counter, causing it to be higher than it should.
This will implicitly be tested by a test added in the next patch.
Jonathan Lebon [Fri, 8 Sep 2023 19:05:37 +0000 (15:05 -0400)]
app/pull-local: Add `--disable-static-delta`
For completeness with `pull`.
Prep for using it in testing to assert we'll never use static deltas.
Colin Walters [Fri, 8 Sep 2023 16:03:21 +0000 (12:03 -0400)]
Merge pull request #3038 from cgwalters/rust-drop-composefs
rust: Drop composefs from crate
Eric Curtin [Fri, 8 Sep 2023 11:52:44 +0000 (12:52 +0100)]
Merge pull request #3037 from cgwalters/add-labeler-flow
ci: Add an automatic labeler action
Colin Walters [Fri, 8 Sep 2023 11:37:10 +0000 (07:37 -0400)]
rust: Drop composefs from crate
This greatly reduces the size. TODO: switch to using `include`.
Colin Walters [Fri, 8 Sep 2023 11:24:56 +0000 (07:24 -0400)]
Merge pull request #3035 from cgwalters/release-rust
rust/sys: Also bump semver for this
Colin Walters [Thu, 7 Sep 2023 21:38:59 +0000 (17:38 -0400)]
ci: Add an automatic labeler action
To automate a bit.
Colin Walters [Thu, 7 Sep 2023 20:21:39 +0000 (16:21 -0400)]
Merge pull request #3030 from ostreedev/dependabot/submodules/composefs-
af86742
build(deps): bump composefs from `
d085fbf` to `
af86742`
Colin Walters [Thu, 7 Sep 2023 18:54:56 +0000 (14:54 -0400)]
rust/sys: Also bump semver for this
Since we bumped the glib major.
dependabot[bot] [Wed, 6 Sep 2023 13:39:35 +0000 (13:39 +0000)]
build(deps): bump composefs from `
d085fbf` to `
af86742`
Bumps [composefs](https://github.com/containers/composefs) from `
d085fbf` to `
af86742`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/
d085fbf6c8364f3781de7988b13c0f6dbf9e975b...
af867425799db92c92d35feb51d2c957f3e16ac7)
---
updated-dependencies:
- dependency-name: composefs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Colin Walters [Wed, 6 Sep 2023 13:32:33 +0000 (09:32 -0400)]
Merge pull request #3028 from ostreedev/dependabot/submodules/composefs-
d085fbf
build(deps): bump composefs from `
597a766` to `
d085fbf`
Colin Walters [Wed, 6 Sep 2023 13:06:04 +0000 (09:06 -0400)]
Merge pull request #3029 from cgwalters/bump-glib
rust: Port to glib 0.18
Simon McVittie [Sun, 3 Sep 2023 11:06:39 +0000 (12:06 +0100)]
Release to unstable
Simon McVittie [Sun, 3 Sep 2023 11:06:23 +0000 (12:06 +0100)]
d/rules: Disable composefs for now
Official buildds don't seem to support fsetxattr on the filesystem used
for /var/tmp, which is required for the composefs tests.
Simon McVittie [Sat, 2 Sep 2023 17:52:36 +0000 (18:52 +0100)]
Release to unstable
Simon McVittie [Sat, 2 Sep 2023 17:52:14 +0000 (18:52 +0100)]
d/ostree-tests.install: trivial-httpd moved to installed-tests directory
Simon McVittie [Sat, 2 Sep 2023 10:05:57 +0000 (11:05 +0100)]
Update changelog
Simon McVittie [Sat, 2 Sep 2023 09:52:57 +0000 (10:52 +0100)]
d/rules: Enable composefs support
This is now on by default when compiled with sufficiently new kernel
headers.
Simon McVittie [Sat, 2 Sep 2023 09:44:03 +0000 (10:44 +0100)]
Update upstream source from tag 'upstream/2023.6'
Update to upstream version '2023.6'
with Debian dir
c47c418cbd7d6bd58330ef436c18523e1338ef05
Simon McVittie [Sat, 2 Sep 2023 09:43:55 +0000 (10:43 +0100)]
New upstream version 2023.6
Colin Walters [Fri, 1 Sep 2023 12:36:16 +0000 (08:36 -0400)]
rust: Bump semver to 0.19
- New glib 0.18 dependency
- Drop cap-std APIs and features
- Other minor changes
Colin Walters [Thu, 31 Aug 2023 18:40:01 +0000 (14:40 -0400)]
rust: Port to glib 0.18
- Also rolls up a few other changes in the C API
- Drop `&mut` from `OstreeKernelArgs`; it now confuses type inference.
More generally while using `&mut` here was well intentioned, it
goes against the glib standard of mapping everything to `&` and
accepting interior mutability.
dependabot[bot] [Fri, 1 Sep 2023 12:27:47 +0000 (12:27 +0000)]
build(deps): bump composefs from `
597a766` to `
d085fbf`
Bumps [composefs](https://github.com/containers/composefs) from `
597a766` to `
d085fbf`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/
597a76609574cf9133d1e17ec0a7b99877a0b709...
d085fbf6c8364f3781de7988b13c0f6dbf9e975b)
---
updated-dependencies:
- dependency-name: composefs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Joseph Marrero Corchado [Thu, 31 Aug 2023 21:48:15 +0000 (17:48 -0400)]
Merge pull request #3027 from cgwalters/drop-cap-std-public
Drop cap-std from our public APIs
Colin Walters [Thu, 31 Aug 2023 20:33:07 +0000 (16:33 -0400)]
ci: Move lints into main build
And drop another hardcoded MSRV.
Colin Walters [Thu, 31 Aug 2023 19:23:57 +0000 (15:23 -0400)]
rust: Bump rust-version = 1.70
To pick up the new `AsFd` etc.
Colin Walters [Thu, 31 Aug 2023 18:08:15 +0000 (14:08 -0400)]
Drop cap-std from our public APIs
Since it bumped semver (when I didn't expect it to; xref
https://github.com/bytecodealliance/cap-std/commit/
963eebf3ab52b04a2e8b9ba88ce6308bbed5cbd0#r121651362
It's not load-bearing enough here to matter versus just passing
an untyped file descriptor.
This mainly means that it will be the `glib` ecosystem which
forces transitive semver bumps for us, not both.
Colin Walters [Thu, 31 Aug 2023 16:16:50 +0000 (12:16 -0400)]
Merge pull request #3018 from ostreedev/dependabot/submodules/composefs-
597a766
build(deps): bump composefs from `
1aed878` to `
597a766`
Eric Curtin [Thu, 31 Aug 2023 15:30:26 +0000 (16:30 +0100)]
Merge pull request #3012 from cgwalters/default-early-prune
sysroot: Promote the "early prune" behavior to default
Colin Walters [Thu, 24 Aug 2023 14:00:13 +0000 (10:00 -0400)]
sysroot: Promote the "early prune" behavior to default
I think we have enough testing for this, let's default it to
on, and change the variable to allow opt-out in case it does
introduce a regression.
Colin Walters [Wed, 30 Aug 2023 20:24:37 +0000 (16:24 -0400)]
Merge pull request #2968 from cgwalters/drop-global-syncfs-by-default
deploy: Remove global `sync` by default
Joseph Marrero Corchado [Wed, 30 Aug 2023 20:14:28 +0000 (16:14 -0400)]
Merge pull request #3024 from cgwalters/clang-analyzer-fixes-5
Clang analyzer fixes 5
dependabot[bot] [Tue, 29 Aug 2023 12:07:40 +0000 (12:07 +0000)]
build(deps): bump composefs from `
1aed878` to `
597a766`
Bumps [composefs](https://github.com/containers/composefs) from `
1aed878` to `
597a766`.
- [Release notes](https://github.com/containers/composefs/releases)
- [Commits](https://github.com/containers/composefs/compare/
1aed8781d6ce617234175d5d3b0458f91a6e38f3...
597a76609574cf9133d1e17ec0a7b99877a0b709)
---
updated-dependencies:
- dependency-name: composefs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Colin Walters [Wed, 30 Aug 2023 13:58:01 +0000 (09:58 -0400)]
Merge pull request #3023 from ostreedev/dependabot/submodules/libglnx-
54ad67d
build(deps): bump libglnx from `
c02eb59` to `
54ad67d`
Colin Walters [Wed, 30 Aug 2023 13:23:13 +0000 (09:23 -0400)]
commit: Quiet clang-analyzer warning
Another conditional ownership.
Colin Walters [Wed, 30 Aug 2023 13:19:42 +0000 (09:19 -0400)]
keyfile-utils: Quiet a clang-analyzer warning
It complains that we could leak memory if the return value
pointer isn't set. That's actually a nonsensical case, there's
no reason to call this and ignore the return value.
So change things to require it be set, and also change the
`g_return_val_if_fail` to be hard assertions per our new policy.
dependabot[bot] [Wed, 30 Aug 2023 12:21:09 +0000 (12:21 +0000)]
build(deps): bump libglnx from `
c02eb59` to `
54ad67d`
Bumps libglnx from `
c02eb59` to `
54ad67d`.
---
updated-dependencies:
- dependency-name: libglnx
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Colin Walters [Tue, 29 Aug 2023 16:25:42 +0000 (12:25 -0400)]
Merge pull request #3020 from cgwalters/less-return-if-fail-1
mutable-tree: Change some `g_return_if_fail` to `g_assert()`
Colin Walters [Tue, 29 Aug 2023 16:25:24 +0000 (12:25 -0400)]
Merge pull request #3019 from cgwalters/more-analyzer-fixes-4
mutable-tree: Quiet clang-analyzer warning
Colin Walters [Tue, 29 Aug 2023 14:15:52 +0000 (10:15 -0400)]
mutable-tree: Change some `g_return_if_fail` to `g_assert()`
We did this in some prior patches because it's better for
static analyzers; code is either reachable or not, and we don't
want the default desktop-style behavior of "try to stumble on
without crashing". It's just likely to lead to a crash somewhere
else.
Colin Walters [Tue, 29 Aug 2023 14:09:25 +0000 (10:09 -0400)]
mutable-tree: Quiet clang-analyzer warning
The warning here was about a use-after-free which is serious, but
I don't think it was reachable in practice, because we'd only
enter the second conditional if `contents_checksum != self->contents_checksum`,
yet we made them the same thing here.
Nevertheless, refactor the code to do a direct return in this
case because that's basically what happened before, and doing
so is a lot clearer.
Joseph Marrero Corchado [Tue, 29 Aug 2023 04:11:36 +0000 (00:11 -0400)]
Merge pull request #3017 from cgwalters/more-analyzer-fixes-3
More analyzer fixes 3
Colin Walters [Mon, 28 Aug 2023 21:29:57 +0000 (17:29 -0400)]
repo: Quiet clang-analyzer warning
Another conditional ownership.
Colin Walters [Mon, 28 Aug 2023 21:28:59 +0000 (17:28 -0400)]
commit: Quiet clang-analyzer warning
Another conditional ownership.
Colin Walters [Mon, 28 Aug 2023 21:28:20 +0000 (17:28 -0400)]
commit: Quiet clang-analyzer warning
Another conditional ownership.
Colin Walters [Mon, 28 Aug 2023 21:27:04 +0000 (17:27 -0400)]
lib/commit: Quiet clang-analyzer warning
Another conditional ownership.