Skip to content

Override Apparmor profile setting Update apparmor_binprofiles.bbclass - #155

Open
muraliselvaraj2020 wants to merge 2 commits into
developfrom
topic/RDK-25653
Open

Override Apparmor profile setting Update apparmor_binprofiles.bbclass#155
muraliselvaraj2020 wants to merge 2 commits into
developfrom
topic/RDK-25653

Conversation

@muraliselvaraj2020

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 16:09
@muraliselvaraj2020
muraliselvaraj2020 requested review from a team as code owners May 11, 2026 16:09
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
MonekaLakshmi
muraliselvaraj2020
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AppArmor rootfs post-processing flow to allow a vendor-provided AppArmor defaults file to override the generic defaults in the image rootfs prior to compiling AppArmor profiles.

Changes:

  • Extend ROOTFS_POSTPROCESS_COMMAND to run a new override step before profile compilation.
  • Add override_apparmor_generic_defaults() to copy a vendor defaults file over apparmor_generic_defaults when present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ROOTFS_POSTPROCESS_COMMAND:append = " execute_aa_compile_std_profiles;"
ROOTFS_POSTPROCESS_COMMAND:append = " override_apparmor_generic_defaults; execute_aa_compile_std_profiles;"

override_apparmor_generic_defaults() {
if [ -f "${VENDOR_AA_DEFAULTS}" ]; then
bbnote "Overriding apparmor_generic_defaults with vendor apparmor_defaults"

cp -f "${VENDOR_AA_DEFAULTS}" "${GENERIC_AA_DEFAULTS}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants