トップ «前の日記(2015-12-17(Thu)) 最新 次の日記(2015-12-21(Mon))» 編集

屑俺日記

僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。


2015-12-18(Fri) 昨日と同じくらい晴れ

reptyr続く

FreeBSD-10.2-RELEASE-p7で動作確認。
Ubuntu(Precise)は/proc/sys/kernel/yama/ptrace_scopeが 1になっていた(ので動かない)が、Debian Jessie のデフォルトは0らしい。
jessieの場合、/etc/sysctl.d/ にあるファイルに有効な設定はなかった。

さて、sudoとの合わせ技はどうするのかなぁ。これも確認と。

$ sudo reptyr $SUDO_PROCESS_ID
[-] Process 2568 (sudo) shares $SUDO_PROCESS_ID's 
 process group. Unable to attach.
(This most commonly means that $SUDO_PROCESS_ID
 has a suprocesses).
Unable to attach to pid $SUDO_PROCESS_ID: 
 Invalid argument
 
$ echo $?
1

リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。

index.htmlは ここから。