我嘗試從kdvelectronics站點將ssh會話日誌修補程序修改爲sshd。 代碼沒有多大變化的OpenSSH 4.x到5.x中,但現在的sshd時script_open函數調用(如GDB說)段錯誤
Core was generated by `sshd: root [priv] '.
Program terminated with signal 11, Segmentation fa
我一直在看glibc/nptl的取消點的實現,並將其與POSIX進行比較,除非我誤認爲它是完全錯誤的。所用的基本模型是: int oldtype = LIBC_ASYNC_CANCEL(); /* switch to asynchronous cancellation mode */
int result = INLINE_SYSCALL(...);
LIBC_CANCEL_RESET(old