为了在通过系统调用 ioctl (RNDCLEARPOOL) 使用 linux 的/dev/random 时清除熵计数,调用者必须具有 root 权限(据此:http://lxr.free-electrons.com/source/drivers/char/random.c)。为什么有必要阻止用户空间应用程序清除熵计数?
最佳答案
清除熵计数会导致性能显着降低,从而影响系统所有用户运行的进程。
关于linux - 为什么清除熵计数需要root权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37757991/