Skip to content

Commit c7c0adf

Browse files
committed
config.prot: document disable_tsc
1 parent 2d9b694 commit c7c0adf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ message NsJailConfig {
267267
can be specified with cmd-line as "-- /path/to/command arg1 arg2" */
268268
optional Exe exec_bin = 90;
269269

270+
/* Disable rdtsc and rdtscp instructions. WARNING: To make it effective, you also need to
271+
* forbid `prctl(PR_SET_TSC, PR_TSC_ENABLE, ...)` in seccomp rules! (x86 and x86_64 only).
272+
* Dynamic binaries produced by GCC seem to rely on RDTSC, but static ones should work. */
270273
optional bool disable_tsc = 93 [default = false];
271274

272275
/* Set this to true to forward fatal signals to the child process instead

0 commit comments

Comments
 (0)