标签: c linux posix
在浏览lightdm-gtk-greeter的代码时,我发现这部分对我来说特别有趣:
/* Prevent memory from being swapped out, as we are dealing with passwords */ mlockall (MCL_CURRENT | MCL_FUTURE);
处理密码时交换内存会有什么危险?