Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions providers/gpgpu/bin/rvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, rvs: Path, config: Path) -> None:
# CHECKBOX-2021: Snap confinement prevents access to /usr/share

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this still apply if it's run as root now?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yep, snapd will still prevent the snap from accessing that directory

snap_bins = ["/snap/bin/rvs", "/snap/bin/rocm-validation-suite"]
if any(rvs.match(p) for p in snap_bins):
RVS_SNAP_COMMON.mkdir(parents=True, exist_ok=True)
shutil.copy(config, RVS_SNAP_COMMON)
self.config = RVS_SNAP_COMMON / config.name

Expand Down
1 change: 1 addition & 0 deletions providers/gpgpu/units/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ _siblings: [
id: gpgpu/rvs-gpup
category_id: gpgpu
plugin: shell
user: root
estimated_duration: 4
requires:
graphics_card.vendor == 'Advanced Micro Devices, Inc. [AMD/ATI]'
Expand Down
Loading