We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P42 - 3.2.3.3 第三步:实现逃逸 正文倒数第一行:
符号链接指向的库文件移动到容器根目录下并重命名为 original_libnss_files.so.2。
此处移动的对象可以为 libnss_files.so.2 这个符号链接文件本身,不需要移动它所指向的库文件。 在 files-services.c 中添加的代码里,通过 rename(ORIGINAL_LIBNSS, LIBNSS_PATH) 恢复原始 libnss_files.so.2,如果是将库文件移动为 original_libnss_files.so.2,则原始的符号链接文件会被恢复成所指向库文件 ( libnss_files-2.27.so ),和此处本意不符。
rename(ORIGINAL_LIBNSS, LIBNSS_PATH)
The text was updated successfully, but these errors were encountered:
@XDTG 你好,书上描述的步骤应该没有问题,按照书上的步骤:
不过,上面这样操作后确实与实验前不同,libnss_files.so.2不再是符号链接。你提到的操作方式能够保证实验前后libnss_files.so.2都是符号链接。
Sorry, something went wrong.
@brant-ruan 确实,两种步骤都可以,只是感觉书上的操作多余了一步 readlink~,感谢回复
也谢谢你指出,下一次印刷时我们更新一下👍
brant-ruan
No branches or pull requests
P42 - 3.2.3.3 第三步:实现逃逸
正文倒数第一行:
此处移动的对象可以为 libnss_files.so.2 这个符号链接文件本身,不需要移动它所指向的库文件。
在 files-services.c 中添加的代码里,通过
rename(ORIGINAL_LIBNSS, LIBNSS_PATH)
恢复原始 libnss_files.so.2,如果是将库文件移动为 original_libnss_files.so.2,则原始的符号链接文件会被恢复成所指向库文件 ( libnss_files-2.27.so ),和此处本意不符。The text was updated successfully, but these errors were encountered: