Skip to content

DELIA-70321 : Apparmor Permissions denied for tr69hostif#91

Open
madhubabutt wants to merge 1 commit intosupport/8.4.4.0from
feature/DELIA-70321
Open

DELIA-70321 : Apparmor Permissions denied for tr69hostif#91
madhubabutt wants to merge 1 commit intosupport/8.4.4.0from
feature/DELIA-70321

Conversation

@madhubabutt
Copy link
Copy Markdown

No description provided.

@madhubabutt madhubabutt requested a review from a team as a code owner April 17, 2026 10:30
Copilot AI review requested due to automatic review settings April 17, 2026 10:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates middleware IPK feed configuration to pull artifacts from a different server path and identifies a different artifact “release” folder.

Changes:

  • Switches middleware and OSS middleware IPK feed paths from middleware-rel/... to middleware-dbg/....
  • Replaces the RELEASE_NUM value with DELIA-70321 (ticket ID) for feed path construction.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
conf/machine/include/middleware.inc Changes RELEASE_NUM and defaults middleware feed to middleware-dbg/${RELEASE_NUM}.
conf/machine/include/oss_mw.inc Changes OSS middleware feed default path to middleware-dbg/${RELEASE_NUM}.

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

PACKAGE_EXTRA_ARCHS:append = " ${MW_OSS} "
OPKG_ARCH_PRIORITY:${MW_OSS} = "205"
MW_OSS_IPK_PATH ?= "middleware-rel/${RELEASE_NUM}"
MW_OSS_IPK_PATH ?= "middleware-dbg/${RELEASE_NUM}"
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

MW_OSS_IPK_PATH is also being switched to middleware-dbg/..., meaning OSS-layer feeds will default to debug artifacts as well. If this is only needed temporarily for a specific investigation/build, consider making it opt-in (override/feature flag) so production builds keep using the release feed by default.

Suggested change
MW_OSS_IPK_PATH ?= "middleware-dbg/${RELEASE_NUM}"
MW_OSS_IPK_PATH ?= "middleware/${RELEASE_NUM}"

Copilot uses AI. Check for mistakes.
Comment thread conf/machine/include/middleware.inc Outdated
PACKAGE_EXTRA_ARCHS:append = " ${MIDDLEWARE_ARCH}"

RELEASE_NUM = "8.4.4.10"
RELEASE_NUM = "DELIA-70321"
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

RELEASE_NUM is being changed from a version-like identifier to a ticket ID ("DELIA-70321") and is still assigned with = (hard override). This will affect all builds that include this file and likely break artifact path expectations. Consider keeping RELEASE_NUM as an actual release/version and introducing a separate variable for ad-hoc artifact folders, or make this a weak default (?=) that can be overridden per build config.

Suggested change
RELEASE_NUM = "DELIA-70321"
RELEASE_NUM ?= "DELIA-70321"

Copilot uses AI. Check for mistakes.
RELEASE_NUM = "DELIA-70321"

MW_IPK_PATH ?= "middleware-rel/${RELEASE_NUM}"
MW_IPK_PATH ?= "middleware-dbg/${RELEASE_NUM}"
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

MW_IPK_PATH is now defaulting to middleware-dbg/... instead of middleware-rel/..., which will make the build pull debug middleware feeds unless every consumer overrides this variable. If the intent is to use debug feeds only for specific builds, gate this behind an explicit flag/feature (or use BUILD_VARIANT/distro overrides) rather than changing the global default.

Suggested change
MW_IPK_PATH ?= "middleware-dbg/${RELEASE_NUM}"
MW_USE_DEBUG_FEED ?= "0"
MW_IPK_PATH ?= "${@('middleware-dbg/' if d.getVar('MW_USE_DEBUG_FEED') == '1' else 'middleware-rel/') + d.getVar('RELEASE_NUM')}"

Copilot uses AI. Check for mistakes.
Comment thread conf/machine/include/middleware.inc Outdated
Comment on lines 8 to 11
RELEASE_NUM = "DELIA-70321"

MW_IPK_PATH ?= "middleware-rel/${RELEASE_NUM}"
MW_IPK_PATH ?= "middleware-dbg/${RELEASE_NUM}"
MW_IPK_SERVER_PATH ?= "${RDK_ARTIFACTS_BASE_URL}/${MW_IPK_PATH}/${RDK_MW_ARCH}/ipks/${BUILD_VARIANT}"
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

This PR title references AppArmor permission denials for tr69hostif, but the changes here only adjust middleware feed paths and the RELEASE_NUM value. If the intention is to fix an AppArmor issue, the PR description/code should include (or reference) the AppArmor policy changes; otherwise consider retitling/re-scoping the PR to reflect that it is switching to a debug middleware feed for a specific artifact drop.

Copilot uses AI. Check for mistakes.
@madhubabutt madhubabutt force-pushed the feature/DELIA-70321 branch from 3430f1e to 4ab320d Compare April 17, 2026 11:32
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.

2 participants