Skip to content

Commit a30d18d

Browse files
happyCoder92copybara-github
authored andcommitted
Do not allow mounting /proc/self/cpuset.
PiperOrigin-RevId: 909870489 Change-Id: I2f05e96686415720a87de13c0e96d3e2d6967827
1 parent ca62992 commit a30d18d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sandboxed_api/sandbox2/policybuilder.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,8 +1630,7 @@ PolicyBuilder& PolicyBuilder::AddFileAtIfNamespaced(absl::string_view outside,
16301630
return *this;
16311631
}
16321632

1633-
if (absl::StartsWith(*valid_outside, "/proc/self") &&
1634-
*valid_outside != "/proc/self/cpuset") {
1633+
if (absl::StartsWith(*valid_outside, "/proc/self")) {
16351634
SetError(absl::InvalidArgumentError(
16361635
absl::StrCat("Cannot add /proc/self mounts, you need to mount the "
16371636
"whole /proc instead. You tried to mount ",

0 commit comments

Comments
 (0)