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

apparmor should be disabled by default on Ubuntu #10015

Open
4 of 14 tasks
DaanDeMeyer opened this issue Jun 7, 2024 · 4 comments
Open
4 of 14 tasks

apparmor should be disabled by default on Ubuntu #10015

DaanDeMeyer opened this issue Jun 7, 2024 · 4 comments

Comments

@DaanDeMeyer
Copy link
Contributor

Description

apparmor.service being enabled by default in the images causes various issues (e.g. https://gitlab.com/apparmor/apparmor/-/issues/402). Given these are ephemeral build VMs where users have full root access already and can trivially disable apparmor anyway, there's no real point in having apparmor enabled. It only serves to cause hard to debug issues. To avoid others running into these issues, I propose to disable apparmor in the runner images.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

latest

Is it regression?

no

Expected behavior

apparmor is disabled by default

Actual behavior

apparmor is enabled by default

Repro steps

  • Run job
  • systemctl status apparmor will show that it is running
@DaanDeMeyer DaanDeMeyer changed the title apparmor should be disable by default on Ubuntu apparmor should be disabled by default on Ubuntu Jun 7, 2024
@ijunaidm ijunaidm self-assigned this Jun 10, 2024
@ijunaidm
Copy link
Contributor

@DaanDeMeyer - Thank you for bringing this issue to us, we are investigating on this issue and we will update you on this issue after our findings.

@kit-ty-kate
Copy link

any update?

@hartwork
Copy link

@jsf9k
Copy link

jsf9k commented Jan 21, 2025

FWIW, AppArmor also bit me.

praveenkumar added a commit to praveenkumar/minp that referenced this issue Jan 30, 2025
- actions/runner-images#10015
```
[1/2] STEP 15/16: RUN echo '{"auths":{"fake":{"auth":"aWQ6cGFzcwo="}}}' > /tmp/.pull-secret &&    /src/scripts/devenv-builder/configure-vm.sh --no-build --no-set-release-version --skip-dnf-update /tmp/.pull-secret &&    /src/okd/src/use_okd_assets.sh --replace ${OKD_REPO} ${OKD_VERSION_TAG}
sudo: PAM account management error: Authentication service cannot retrieve authentication info
```
praveenkumar added a commit to praveenkumar/minp that referenced this issue Jan 30, 2025
- actions/runner-images#10015
```
[1/2] STEP 15/16: RUN echo '{"auths":{"fake":{"auth":"aWQ6cGFzcwo="}}}' > /tmp/.pull-secret &&    /src/scripts/devenv-builder/configure-vm.sh --no-build --no-set-release-version --skip-dnf-update /tmp/.pull-secret &&    /src/okd/src/use_okd_assets.sh --replace ${OKD_REPO} ${OKD_VERSION_TAG}
sudo: PAM account management error: Authentication service cannot retrieve authentication info
```
praveenkumar added a commit to praveenkumar/minp that referenced this issue Jan 30, 2025
- actions/runner-images#10015
```
[1/2] STEP 15/16: RUN echo '{"auths":{"fake":{"auth":"aWQ6cGFzcwo="}}}' > /tmp/.pull-secret &&    /src/scripts/devenv-builder/configure-vm.sh --no-build --no-set-release-version --skip-dnf-update /tmp/.pull-secret &&    /src/okd/src/use_okd_assets.sh --replace ${OKD_REPO} ${OKD_VERSION_TAG}
sudo: PAM account management error: Authentication service cannot retrieve authentication info
```
PastaPastaPasta added a commit to dashpay/dash that referenced this issue Feb 7, 2025
…uix action

df34f0e ci: Disable apparmor user namespace restrictions in GH Guix action (UdjinM6)

Pull request description:

  ## Issue being fixed or feature implemented
  actions/runner-images#10015

  ## What was done?
  actions/runner-images#10443 (comment)

  ## How Has This Been Tested?
  develop: https://github.com/UdjinM6/dash/actions/runs/13187780750
  this PR: https://github.com/UdjinM6/dash/actions/runs/13187795136

  ## Breaking Changes
  n/a

  ## Checklist:
  - [ ] I have performed a self-review of my own code
  - [ ] I have commented my code, particularly in hard-to-understand areas
  - [ ] I have added or updated relevant unit/integration/functional/e2e tests
  - [ ] I have made corresponding changes to the documentation
  - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_

ACKs for top commit:
  PastaPastaPasta:
    utACK df34f0e

Tree-SHA512: 9353e5c74e46e829f36db168f425bd1f26e3bd6ca630fe915f5cbe66565517a2794c5c87dfd996d56ec2aad28da4ad0fca9aa088188d53f20e73a2387ed22643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants