Merge branch 'main' of github.com:infinito-nexus/core into feature/store-i18n

# Conflicts:
#	.github/workflows/call-images-build-ci.yml
#	.github/workflows/call-test-deploy.yml
#	.github/workflows/call-test-install-pkgmgr.yml
#	.github/workflows/call-test-workspace.yml
#	roles/svc-bkp-local-2-device/README.md
#	roles/svc-storage-nfs-client/README.md
#	roles/web-app-pixelfed/meta/services.yml
#	scripts/tests/deploy/act/workflow.sh
#	tests/unit/python/utils/recovery/test_base.py
This commit is contained in:
kevinveenbirkenbach committed 2026-10-20 20:05:15 +02:00
commit d0b45f8b2d
66 files changed
+686 -74

No files matched your search

Whitespace-only changes.
@@ -0,0 +1,48 @@
"""The AppArmor teardown must keep docker-default loaded.
Run 39332343490 lost 39 swarm jobs: the runner's teardown unloaded every
profile, and BuildKit then failed each node image RUN step with
`apparmor failed to apply profile: write .../attr/apparmor/exec: no such file`.
"""
from __future__ import annotations
import subprocess
import unittest
from utils.cache.files import PROJECT_ROOT
COMMON = PROJECT_ROOT / "scripts" / "system" / "apparmor" / "common.sh"
PROFILES = """wg-quick (enforce)
wg-quick//ip (enforce)
docker-default (enforce)
/usr/bin/man (enforce)
unprivileged_userns (unconfined)
docker-defaults (complain)
"""
class TestRemovableProfiles(unittest.TestCase):
def test_keeps_docker_default_and_child_profiles(self) -> None:
result = subprocess.run(
["bash", "-c", f'source "{COMMON}"; apparmor_removable_profiles'],
input=PROFILES,
capture_output=True,
text=True,
check=True,
)
self.assertEqual(
[
"wg-quick",
"/usr/bin/man",
"unprivileged_userns",
"docker-defaults",
],
result.stdout.splitlines(),
)
if __name__ == "__main__":
unittest.main()