Skip to content

Commit

Permalink
fix: Drop additional capabilities in the reloader.
Browse files Browse the repository at this point in the history
Bug: NA
Change-Id: Id0fe14c38b28e9ce3c459ba22031da63cd928b58
GitOrigin-RevId: 35e430df40018c721f1b335d667d7fe0721d5c79
  • Loading branch information
Privacy Sandbox Team authored and copybara-github committed Jan 15, 2025
1 parent b659f7d commit 99c60f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/roma/byob/container/run_workers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ int ReloaderImpl(void* arg) {
GetSourcesAndTargets(reloader_impl_arg.mounts)) {
sources_and_targets_read_only.push_back({target, target});
}
CHECK_OK(SetPrctlOptions({{PR_CAPBSET_DROP, CAP_SYS_BOOT},
{PR_CAPBSET_DROP, CAP_SYS_MODULE},
{PR_CAPBSET_DROP, CAP_SYS_RAWIO},
{PR_CAPBSET_DROP, CAP_MKNOD},
{PR_CAPBSET_DROP, CAP_NET_ADMIN}}));
while (true) {
// Start a new worker.
const std::string execution_token = GenerateUuid();
Expand Down

0 comments on commit 99c60f3

Please sign in to comment.