Ruth

Results 2 issues of Ruth

設定保存時、参照しているpeercast.iniの権限が維持されず、peercastを実行しているUID:GIDの644権限に変更されてしまうようです。 例:peercastユーザ(peercast:peercast)で実行しているpeercastと、peercast:peercast-grpでファイルモード460のpeercast.iniが、設定保存により上書きされ、guestユーザからpasswordが見えます ``` ~$ ls -l .config/peercast/peercast.ini -r--rw---- 1 peercast peercast-grp 1648 Nov 23 23:53 .config/peercast/peercast.ini ~$ id uid=7144(peercast) gid=7144(peercast) groups=7144(peercast),7140(peercast-grp) →このユーザでpeercast実行 ~$ ps -ae -o user,group,comm USER GROUP COMMAND...

hostnameコマンドに`-I`オプションがない場合のエラー処理に問題があり、いくつかの環境で正常に起動しないことを確認しました。 https://github.com/plonk/peercast-yt/blob/d5ba45a2fd457560058a056c2753debd4bb6cace/core/unix/usys.cpp#L150-L154 ちゃんと調べていないので、間違っていたら申し訳ないのですが、 gnuには-Iオプションについて明記されておらず、debian系やcentos等でないとhotnameに`-I`オプションがないようです https://www.gnu.org/software/inetutils/manual/html_node/hostname-invocation.html