Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overrides: fast-track rpm-ostree-2024.4-6.fc39 #2950

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion manifest-lock.overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
# in the `metadata.reason` key, though it's acceptable to omit a `reason`
# for FCOS-specific packages (ignition, afterburn, etc.).

packages: {}
packages:
rpm-ostree:
evr: 2024.4-6.fc39
metadata:
bodhi: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4afd3d38ae
reason: https://github.com/coreos/fedora-coreos-tracker/issues/1705
type: fast-track
rpm-ostree-libs:
evr: 2024.4-6.fc39
metadata:
bodhi: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4afd3d38ae
reason: https://github.com/coreos/fedora-coreos-tracker/issues/1705
type: fast-track
17 changes: 0 additions & 17 deletions tests/kola/files/etc-passwd-group-permissions

This file was deleted.

44 changes: 44 additions & 0 deletions tests/kola/files/etc-permissions
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash
## kola:
## exclusive: false
## description: Verify that /etc/(passwd|group|shadow|gshadow) have correct permissions.

set -xeuo pipefail

# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

incorrect=""
for f in '/etc/passwd' '/etc/group'; do
if [[ $(stat --format="%a %u %g" "${f}") != "644 0 0" ]]; then
incorrect+=" ${f}"
fi
done
for f in '/etc/passwd-' '/etc/group-'; do
if [[ -f "${f}" ]]; then
if [[ $(stat --format="%a %u %g" "${f}") != "644 0 0" ]]; then
incorrect+=" ${f}"
fi
fi
done
for f in '/etc/shadow' '/etc/gshadow'; do
if [[ $(stat --format="%a %u %g" "${f}") != "0 0 0" ]]; then
incorrect+=" ${f}"
fi
done
for f in '/etc/shadow-' '/etc/gshadow-'; do
if [[ -f "${f}" ]]; then
if [[ $(stat --format="%a %u %g" "${f}") != "0 0 0" ]]; then
incorrect+=" ${f}"
fi
fi
done

if [[ -n "${incorrect}" ]]; then
# We explicitely want to split on whitespace here
# shellcheck disable=SC2086
ls -al ${incorrect}
fatal "found incorrect permissions for: ${incorrect}"
fi

ok "correct ownership and mode on /etc/passwd, /etc/group, /etc/shadow and /etc/gshadow"
Loading