judge-server icon indicating copy to clipboard operation
judge-server copied to clipboard

cptbox: compare projected with real instead of normalized

Open Riolku opened this issue 3 years ago • 3 comments

We should compare projected with real instead of normalized. This is because if our file is /proc/self/maps, the projected will be /proc/getpid()/maps, and the real path is /proc/getpid()/maps. We do a useless os.samefile call in this case.

Riolku avatar Feb 28 '22 15:02 Riolku

Can one of the admins verify this patch?

dmoj-build avatar Feb 28 '22 15:02 dmoj-build

ok to test

kiritofeng avatar Feb 28 '22 16:02 kiritofeng

Not true. The jail still needs to check normalized and not projected.

Riolku avatar Mar 01 '22 00:03 Riolku