New issue
Advanced search Search tips

Issue 914263 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

portage sandbox wrongly denies to accessing allowed files.

Project Member Reported by hidehiko@chromium.org, Dec 12

Issue description

When we use CROS_WORKON_SUBTREE, a list for directories which are not accessible is created and passed to the sandboex.

However, the sandbox uses simple prefix match of a path, so it sometimes misunderstands it.
For example,

if we have;

platform2/foo/bar
platform2/foo/bar2

and, in a pacakge, platform2/foo/bar2 is added to CROS_WORKON_SUBTREE,
then platform2/foo/bar is passed to sandbox. It denies to access files starting with platform2/foo/bar, which includes platform2/foo/bar2.
That's unexpected behavior.
 
hidehiko@ which component can we assign this bug so it does not show up in Chrome OS UI triage?
Components: Infra>Client>ChromeOS>Build
I guess Infra>Client>ChromeOS>Build. nya@, please fix me if there's more appropriate one.
try adding a / suffix

the matching behavior isn't new in sandbox, so not sure it'll change in Gentoo

Sign in to add a comment