Skip to content

Commit f5f3159

Browse files
fix: run tracker with sudo to allow eBPF memlock rlimit
1 parent d63acb6 commit f5f3159

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

dist/main/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34883,7 +34883,9 @@ async function run() {
3488334883
const isStdio = outputMode === 'stdio';
3488434884
const args = isStdio ? ['--output', '-'] : [];
3488534885

34886-
const child = spawn(TRACKER_PATH, args, {
34886+
// eBPF requires elevated privileges to load programs and raise the memlock
34887+
// rlimit. GitHub-hosted runners have passwordless sudo.
34888+
const child = spawn('sudo', [TRACKER_PATH, ...args], {
3488734889
detached: true,
3488834890
stdio: isStdio ? ['ignore', 'pipe', 'pipe'] : 'ignore',
3488934891
});

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ async function run() {
5555
const isStdio = outputMode === 'stdio';
5656
const args = isStdio ? ['--output', '-'] : [];
5757

58-
const child = spawn(TRACKER_PATH, args, {
58+
// eBPF requires elevated privileges to load programs and raise the memlock
59+
// rlimit. GitHub-hosted runners have passwordless sudo.
60+
const child = spawn('sudo', [TRACKER_PATH, ...args], {
5961
detached: true,
6062
stdio: isStdio ? ['ignore', 'pipe', 'pipe'] : 'ignore',
6163
});

0 commit comments

Comments
 (0)