OpenBSD 手册页unveil
在错误部分提到了这一点
[E2BIG]
The addition of path would exceed the per-process limit for unveiled paths.
这就提出了一个问题,公开路径的每个进程的限制是多少?
答案1
128
。
#define UNVEIL_MAX_VNODES 128
#define UNVEIL_MAX_NAMES 128
事实上,在 中unveil_add
,这已被检查
if (pr->ps_uvvcount >= UNVEIL_MAX_VNODES ||
pr->ps_uvncount >= UNVEIL_MAX_NAMES) {
ret = E2BIG;
goto done;
}
虽然这似乎不是合同性的,但自unveil
引入以来一直保持不变。