«前の日記(2013-12-26(木)) 最新 次の日記(2013-12-28(土))»

vdrめも

検索キーワード:
[PR]:「Chef活用ガイド コードではじめる構成管理 (大型本), (Kindle版)」発売中です。


2013-12-27(金) [長年日記]

_ [debian] 続・ruby-locale 2.1.0-1 変

ruby-locale 2.1.0-2 と ruby-gettext 3.0.3-1 が入って解決。

_ [debian] rxvt-unicode 9.19-1 変?

wcwidth-cjk のおかげで EastAsianAmbiguous キャラクタの幅が UTF-8 で常に 1 の問題はなくなったように思っていたけど、rxvt-unicode 9.19-1 は wcwidth-cjk と組み合わせてもうまく動かない。rxvt-unicode 9.18-3 は大丈夫なんだけど。何が変わったんだろう。

ソースコードを比較してもよくわからなかったので debdiff してみると、

Files in second .deb but not in first
-------------------------------------
-rw-r--r--  root/root   /usr/share/applications/rxvt-unicode.desktop
-rw-r--r--  root/root   /usr/share/lintian/overrides/rxvt-unicode-256color
-rwxr-sr-x  root/utmp   /usr/bin/urxvt
-rwxr-sr-x  root/utmp   /usr/bin/urxvtd

Files in first .deb but not in second
-------------------------------------
-rwxr-xr-x  root/root   /usr/bin/urxvt
-rwxr-xr-x  root/root   /usr/bin/urxvtd

のように utmp に setgid されるようになってることに気がついた。そういえば debian/changelog にも、

* Allow urxvt and urxvtd to update utmp (Closes: #500230)

+ Override lintian warning setgid-binary for /usr/bin/urxvt and /usr/bin/urxvtd

[/usr/share/doc/rxvt-unicode-256color/changelog.Debian.gzより引用]

と書いてあった。

そしてこの setgid が原因で、

LD_PRELOAD

A list of additional, user-specified, ELF shared libraries to be loaded before all others. The items of the list can be separated by spaces or colons. This can be used to selectively override functions in other shared libraries. The libraries are searched for using the rules given under DESCRIPTION. For set-user-ID/set-group-ID ELF binaries, preload pathnames containing slashes are ignored, and libraries in the standard search directories are loaded only if the set-user-ID permission bit is enabled on the library file.

[/usr/share/man/man8/ld.so.8.gzより引用]

というわけで、setuid/setgid しているバイナリは / を含む LD_PRELOAD を無視するので、

LD_PRELOAD=/usr/local/lib/wcwidth-cjk.so /usr/bin/urxvt

が効いていなかったということだった。

さてどうしたものだろう、と思ったけど対応策が今のところよくわからないので chmod 755 /usr/bin/urxvt* して急場をしのぐことに。

_ [movie] 風の谷のナウシカ


2013年
12月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

[amd64 | audacious | comp | debian | gkrelluim | kip | misc | movie | research | rime | unicon | vdr | work | えふえふ]

書いてる人: dai

パッチ等(無保証)

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E