交换记忆的危险是什么?

时间:2017-04-29 19:53:35

标签: c linux posix

在浏览lightdm-gtk-greeter的代码时,我发现这部分对我来说特别有趣:

/* Prevent memory from being swapped out, as we are dealing with passwords */
mlockall (MCL_CURRENT | MCL_FUTURE);

处理密码时交换内存会有什么危险?

0 个答案:

没有答案