<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>さんしょううおの泡(あぶく)</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/" />
    <link rel="self" type="application/atom+xml" href="http://www.sanshouo.com/mt/atom.xml" />
    <id>tag:www.sanshouo.com,2009-01-05:/mt//1</id>
    <updated>2012-01-11T08:28:43Z</updated>
    <subtitle>あぶくのような、気ままなつぶやきを綴った日記です。</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.29</generator>

<entry>
    <title>ＮＨＫ「平清盛」はライトノベル大河ドラマになってしまった気がする</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2012/01/post-466.html" />
    <id>tag:www.sanshouo.com,2012:/mt//1.763</id>

    <published>2012-01-08T11:28:30Z</published>
    <updated>2012-01-11T08:28:43Z</updated>

    <summary>先ほどBSで第１回放送を観たのだが、前に感じていた懸念が確信となった。 結論を先...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="いろいろ" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="tv" label="TV" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>先ほどBSで第１回放送を観たのだが、前に感じていた<a href="/mt/2011/08/post-454.html">懸念</a>が確信となった。<br />
結論を先に述べると、次回からは観ないと思う。</p>]]>
        <![CDATA[<p>作品の印象というのは人それぞれだとは思うのだが、龍馬伝同様の、暗い画面と薄汚れた感じの登場人物たちから筆者が最初にもった印象は、我が国の歴史上の、いわば英雄というべき人たちが、蔑まされているという感覚である。<br />
それに加えて、ナレーションに留まらず、登場人物さえも発する「<ruby><rb>王家<rp>（<rt>おうけ<rp>）</ruby>」という言葉である。<br />
この二つが、決定的に作品の印象を悪くしている。</p>

<p>「王家」という言葉を繰り返し使わせているのは、この言葉の信者であると目される、時代考証の先生であろう。<br />
それに、その時代考証の先生曰く「歴史に暗い」とされる脚本家を人選した時点で、こういう作品になるのは自然な流れなのだろうし、ＮＨＫの今回の大河ドラマを決めた人の意図はそこにあるように思える。<br />
Wikipediaによれば、<a href="http://ja.wikipedia.org/wiki/%E9%BE%8D%E9%A6%AC%E4%BC%9D#.E3.82.B9.E3.82.BF.E3.83.83.E3.83.95">龍馬伝</a>と<a href="http://ja.wikipedia.org/wiki/%E5%B9%B3%E6%B8%85%E7%9B%9B_%28NHK%E5%A4%A7%E6%B2%B3%E3%83%89%E3%83%A9%E3%83%9E%29#.E3.82.B9.E3.82.BF.E3.83.83.E3.83.95">平清盛</a>で共通しているスタッフは、演出の渡辺一貴という人だけのようである。<br />
しかし、両者に共通するこの空気感は、演出担当者一人の仕業ではあるまい。<br />
<ins datetime="2012-01-09T10:08:00+09:00"><blockquote><font size="-1">ちなみに、平清盛の制作統括は、同Wikipediaによると、磯智明氏と落合将氏となっているが、磯智明氏の関った作品をざっと検索したところ、次の様になった。<br />
<blockquote><ul><br />
	<li>つばさ（平成６(1994)年連続テレビ小説）演出</li><br />
	<li>春よ、来い（平成６(1994)年連続テレビ小説）演出</li><br />
	<li>いらっしゃい（平成８(1996)年ドラマ新銀河）演出</li><br />
	<li>毛利元就（平成９(1997)年大河ドラマ）演出</li><br />
	<li>一絃の琴（平成12(2000)年ドラマ）第８・12回演出</li><br />
	<li>トトの世界〜最後の野生児〜（2001年ドラマ）第３・４話演出</li><br />
	<li>少年たち２（平成13(2001)年ドラマ）演出</li><br />
	<li>少年たち３（平成14(2002)年ドラマ）演出</li><br />
	<li>ねばる女（平成16(2004)年月曜ドラマ）演出</li><br />
	<li>マチベン（平成18(2006)年土曜ドラマ）第３・５回演出</li><br />
	<li>風林火山（平成19(2007)年大河ドラマ）演出</li><br />
	<li>最後の戦犯（平成20(2008)年ＮＨＫスペシャル）制作統括</li><br />
	<li>監査法人（平成20(2008)年土曜ドラマ）チーフプロデューサー</li><br />
	<li>気骨の判決（平成21(2009)年ＮＨＫスペシャル終戦特集）チーフプロデューサー</li><br />
	<li>鉄の骨（平成22(2010)年土曜ドラマ）制作統括</li><br />
	<li>心の糸（平成22(2010)年スペシャルドラマ）制作統括</li><br />
	<li>15歳の志願兵（平成22(2010)年ＮＨＫスペシャル終戦特集）制作統括</li><br />
</ul></blockquote><br />
こうしてみると、磯智明氏は、例の「暗い画面」を比較的好んで使うような印象である。<br />
筆者としては、「暗い画面」はせいぜいが「カーネーション」程度迄が許容範囲で、「龍馬伝」や「平清盛」の様に汚されると、受け容れがたい。<br />
</font></blockquote></ins></p>

<p>ＮＨＫは自社制作のドラマでは、薄汚れた感じの登場人物として我が国の歴史上の人物を表現すると同時に、某国ドラマは明るく清潔感の漂う画面のドラマを選んで放送している様である。<br />
史実は逆であるのに。</p>

<p>今後の興味は、今年の大河ドラマの視聴率推移である。<br />
これが、龍馬伝と同様の推移となるのかどうか、それによって、視聴者大多数の印象がどうだったかが測れるように思える。</p>

<p><br />
（１月11日追記）<br />
関東地区の視聴率は17.3％で、初回としては３番目に悪いものだったようだ。<br />
「王家」の表現については<a href="http://fugafugaplus.ldblog.jp/archives/5071857.html">議論が再燃</a>しているが、違和感を訴える書き込みに対して、頑強に擁護する書き込みが見受けられる。工作員だろう。<br />
比較的冷静かつ理論的な議論がなされているのは、２ch大河ドラマ板の「平清盛　考証スレ」だと思う。<br />
<blockquote><dt><font color="red">898</font>+4 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 16:04:02.52 ID:bXX957l1 (2/2)</dt><br />
<dd>>>895<br />
以前の考証スレとか、いくつかの論文も読んでみたけど、<br />
「王家」の定義と、使われるようになった流れはこんな認識でいい？</p>

<p>30年くらい前に、黒田俊雄という学者が「権門体制論」という学説を唱えた。<br />
これは中世期の日本は、貴族から武士へ政権が移ったという単純な図式ではなく、<br />
複数の大きな力を持った門閥が複雑に絡み合い、一つの国家を形成していたという見方。<br />
そしてその門閥（権門勢家）を「王家」「摂関家」「武家」「寺家・社家」と定義した。<br />
「家」は権力・経済の一まとまりの単位で、血縁関係のある家族という狭い範囲だけを<br />
表すものではない。</p>

<p>「王家」は治天の君が家長として天皇位や財産の継承権を握っていた院政期<br />
の天皇の家を呼ぶのに限定された用語で、中世以外の時代の天皇の家を<br />
王家とは呼ばない。使っているのは一部の中世史学分野の学者のみ。</p>

<p>「天皇の家」という概念自体が最近のものなので、適切な言葉は史料にみつけるのは<br />
難しい。<br />
（皇室・天皇家は史料に例がなく、朝家では政治に携わる一部の貴族をも含んでしまう。<br />
王家は用例はあるが、仏法に対して世俗を支配する「王」の意味としての性格が強く、<br />
相応しいとは言えない。皇家ではなく王家を選んだのは単に黒田の好み。<br />
これまで大した批判は行われていないが、「院宮家」を使うのがふさわしいと<br />
いう学者もいる）</dd></p>

<p><dt>910+1 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 18:38:58.34 ID:1f1R3bWw (3/3)</dt><br />
<dd>あの時代に”天皇の家”なんて概念がまず無いしな。<br />
勝手に創作した学者がいるんだろう。</dd></p>

<p><br />
<dt>914 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 19:13:43.72 ID:<font color="red">sTjuW7lL</font> (18/21)</dt><br />
<dd>>>910<br />
いや後世の人間が便宜上使う用語だから、それは別に問題ない。</p>

<p>問題なのは、そんな用語をドラマ内の人間がガシガシ使っちゃってることで。</dd></p>

<p><br />
<dt>918+1 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 20:14:16.88 ID:<font color="red">X7cTj0iB</font> (14/19)</dt><br />
<dd>「王家」については>>898のまとめでほぼ尽きていると思われ。<br />
で、同時代で使われていない言葉でもドラマで使うことができるかどうかというのを検討してみると</p>

<p>１　その言葉をドラマの中で使う必要性があるか</p>

<p>２　その言葉が視聴者にちゃんと通じるか</p>

<p>の２点について考えなければならないと思う。</dd></p>

<p><br />
<dt>919 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 20:16:20.09 ID:<font color="red">sTjuW7lL</font> (20/21)</dt><br />
<dd>いや898のまとめもそんなに正確というわけではないから、<br />
本来は各人が調べた方がいいよ。<br />
例の歴史評論を１冊読むだけでも相当わかる。</dd></p>

<p><br />
<dt>920+1 ：日曜8時の名無しさん [] ：2012/01/10(火) 20:17:40.02 ID:Sk0diQdJ (1/2)</dt><br />
<dd>>>898</p>

<p>アホか。<br />
現代の学者が言い出したことやない。</p>

<p>コッチに、上手く、まとまってる。</p>

<p></p>

<p>まず『平安遺文』3837号文書の「治承二年六月紀伊国大伝法院衆徒解案」に、<br />
「夫王家之為王家、在仏法之擁護、仏法之為仏法、任王家之帰依」<br />
とあります。治承二年は1178年で以仁王の挙兵(治承四年)の直前ですね。簡単に訳すと、<br />
「王家(現在でいう皇族)」が王家であるのは仏法の擁護があるからだ。仏法が仏法であるのは王家が帰依しているからだ」<br />
ということになります。</p>

<p>次は『花園天皇宸記』の元弘元年(1331)別記10月1日条から。『花園天皇宸記』は花園天皇自筆の日記であり・・・・・</p>

<p></p>

<p><br />
皇室を王家としたことについて<br />
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1271855592</dd></p>

<p><br />
<dt>921 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 20:20:39.43 ID:HVzkKGaL</dt><br />
<dd>少なくとも王家という呼び方は現代の日本人の感覚にそぐわない</p>

<p></p>

<p>以上</dd></p>

<p><br />
<dt>922+1 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 20:23:35.54 ID:<font color="red">X7cTj0iB</font> (15/19)</dt><br />
<dd>>>918<br />
Ａ　まず「幕府」について検討すると</p>

<p>１　ドラマの中で鎌倉・室町・江戸の各武家政権を指し示す用語を使う必要性は極めて高い。<br />
２　「幕府」ということばは日本人は誰でも知っている。</p>

<p>ので「幕府」はたとえ後世の言葉だろうとドラマで使っていい。むしろ使うべき言葉。</p>

<p>Ｂ　「得宗」（「北条時宗」でセリフで頻出）</p>

<p>１　主人公である時宗らの地位を表す言葉だから必要性は高い。<br />
２　小学校や中学校の教科書には出てこないが、高校の日本史教科書には出てくる。</p>

<p>ので、実際オンエア中は違和感ありまくりだったけど使っていい言葉だと思う。</p>

<p>Ｃ　「国人一揆」（「毛利元就」で使われなかった）</p>

<p>１　毛利元就の成功物語なら国人一揆に触れる必要性は高い。<br />
２　「国人一揆」は高校の教科書にしか出てこない。さらに致命的なのは現代人にとって「一揆」といえば<br />
「百姓一揆」のことであり「支配階級の同盟」というニュアンスを伝えることが難しい。</p>

<p>だから「毛利元就」のセリフ中では「国人一揆」にあたる概念はすべて「国人衆の盟約」に置き換えられていた。<br />
このＮＨＫと西舘の判断は極めて正しいと思う。</p>

<p>Ｄ　「王家」</p>

<p>１　第1回を見る限り「王家」はすべて「朝廷」に置き換えた方がよく「政治機構や貴族たちと区別された天皇家」という概念を用いる必要性が全く感じられない。<br />
２　「王家」という言葉は学術用語にすぎず一般に定着していてない。</p>

<p>だから「王家」はアウト。　</dd></p>

<p><br />
<dt>923 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 20:25:42.17 ID:<font color="red">X7cTj0iB</font> (16/19)</dt><br />
<dd>>>920<br />
だからその「王家」って「寺社勢力に対する世俗権力」という意味で<br />
「政治機構や貴族たちと区別された天皇家」という意味じゃない。</dd></p>

<p><br />
<dt>924 ：日曜8時の名無しさん [↓] ：2012/01/10(火) 20:43:15.38 ID:<font color="red">X7cTj0iB</font> (17/19)</dt><br />
<dd>>>922</p>

<p>Ｅ　「惣無事令」（「独眼竜政宗」のセリフで頻出）</p>

<p>１　伊達政宗と豊臣政権との関係を物語るためには必須といってよい。<br />
２　現在は高校教科書にも「惣無事令」が出ているが、オンエア当時はまだ新奇な学術用語であった。</p>

<p>これは２の要件が微妙だったけど、内容は権力闘争に関わることだから劇中で説明すれば視聴者に通じたので<br />
これは使って正しかったと思う。</dd><br />
</blockquote></p>

<p><br />
時代考証者の一人である本郷氏自身が、ドラマで描いた時代当時には皇統に「家」の概念は無かったとしているのだから、当時の一般的な用語として「王家」は有り得ない。<br />
学術用語として使っている歴史学者が一部に居るということなので、現代用語としては存在するとしていいだろう。そうすると、上記引用の様に、その現代語をドラマ中で使うことが適切なのかということになる。<br />
簡単にいってしまえば、天皇を「日王（＝日本の王）」として辱める呼び方をする国が近隣にあるのだから、それを連想させる言葉をドラマ中で用いるのは不適切だと思う。</p>

<p>昨年８月の時点で一度騒ぎになっているのにも関らず、ＮＨＫはこの度「王家」の使用を強行したわけで、ドラマ制作の最高責任者である制作統括に、どうしても使いたい事情があったと考えざるを得ない。<br />
他にも、歴史的に有り得ない事（例えば死罪を命じるとか。当時の最高刑は流罪）は多々有るのに、なぜか、「王家」だけは史実云々と説明しているところに、このドラマの怪しさを感じる。妙な思想を感じさせるドラマは楽しめない。</p>

<p>出演された役者の方々の演技は概ね良い印象だったので、別のところで嫌気がさしてしまう状況は、まことに残念である。<br />
</p>]]>
    </content>
</entry>

<entry>
    <title>一年を省みる</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/post-465.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.762</id>

    <published>2011-12-31T07:34:28Z</published>
    <updated>2011-12-31T11:42:16Z</updated>

    <summary>大晦日ともなると、無反省なことでは右に出るものがいないであろう、筆者の様な人間で...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="いろいろ" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="生活" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="news" label="News" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="政治" label="政治" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>大晦日ともなると、無反省なことでは右に出るものがいないであろう、筆者の様な人間でも、少しは区切りの感に見舞われるものである。</p>]]>
        <![CDATA[<p>今年の最終日、今日の出来事としては、国際日付線の東側に位置していた太平洋上の島国サモアが、国際日付線の西側に移動した。<br />
と、いっても、島が動くわけはないので、国際協定で決めている国際日付線を、サモアの東側に移動したのである。<br />
<blockquote><strong><a href="http://www3.nhk.or.jp/news/html/20111231/t10014994151000.html">サモア 日付変更最も早い国に</a></strong><sub>12月31日 5時36分 NHK</sub><br />
<blockquote><p>世界で日付が変わるのが最も遅い国、南太平洋の島国サモアが３１日、標準時を日付変更線の東側から西側に移行させ、日付が変わるのが世界で最も早い国となりました。</p></p>

<p>サモアは、主要な貿易相手国のオーストラリアやニュージーランドより１日近く時間が遅く、商取引に影響が出ていたことから時差を縮めて経済活動をより円滑に進めようと、日付変更線の西側の標準時に移行しました。サモアは、２９日の深夜に日付が変わる際、時計の針を２４時間進め、３０日を丸一日飛ばして世界で最も早く３１日の大みそかを迎えました。日付変更線の東西どちらの標準時を採用するかは、日付け変更線の周辺にある各国の判断に委ねられています。サモアのツイラエパ首相は「多くのビジネスマンから時間帯の変更は、経済活動にとって非常に有益だという意見が出ている」と述べ、その効果に自信を示しました。また多くの市民からも歓迎する声が上がっています。一方で、「世界で日付が変わるのが最も遅い国」をアピールしてきた観光業界の一部の業者は今後の観光への影響を懸念しています。</p>
</blockquote></blockquote>
これによって、サモアは、地球上で最も早く日付の変る国になった。
今日のＮＨＫ・ＢＳニュースによれば、この措置は、サモアがオーストラリアとの経済的結びつきを重視したことによるという。今日から、サモアとオーストラリアは同じく「国際日付線の西側の国」になったのである。
<br />
<br />
さて、今年は本当に、わが国にも、国際的にも、大きな動きのあった年になった。
筆者個人としては、「充電」というのが最も相応しいような年だった。
体調は僅かずつではあるが上向きだったし、先日、何年かぶりに資格認定を一つ得ることができた。
そういう意味では、まあまあな一年だった。

<p>社会的な事柄を振り返れば、今年はこんなことが心に残った（順不同）。<br />
<blockquote><ol><br />
	<li>東日本大震災</li><br />
	<li>東京電力福島第一原発事故</li><br />
	<li>サッカー女子ワールドカップ優勝</li><br />
	<li>フジテレビ韓流偏向放送反対運動（花王製品不買運動含む）</li><br />
	<li>オリンパス粉飾決算疑惑</li><br />
	<li>通販おせち騒動</li><br />
	<li>大韓民国口蹄疫禍</li><br />
	<li>ＴＰＰ加盟問題</li><br />
	<li>ユッケ食中毒・レバ刺食中毒</li><br />
	<li>中東諸国民主化の波</li><br />
	<li>金正日総書記死去</li><br />
</ol></blockquote></p>

<p>1.の震災については言うまでもない。<br />
2.の原発事故は、1.の震災に起因しているとはいえ、その後の人的対応の<ruby><rb>拙<rp>（<rt>まず<rp>）</ruby>さが際立った。政府対応も、東京電力経営層の対応もである。<br />
東京電力経営層を政府が制御できていないという印象もさることながら、原子力災害において、人命・住民の健康を最優先していないのではないかと思わせるほどの、政府対応の遅さだった。いや、この災害は、未だ終息していないと考えるのが適切だろうから、収束したと言いたい政府の姿勢は、それ自体、まずいことだろう。</p>

<p>自民党主体から民主党主体に政権交代して約２年、様々な考えはあるだろうが、筆者は、政権交代したことは良かったと思っている。<br />
昨年の宮崎口蹄疫禍における対応や、今年の震災・原発事故対応を見て、民主党が政権を担うに値しない政党だというのは確認できた今、次の衆議院議員総選挙で、民主党中心の政権を望むことは無いと思う。<br />
政権というのは、不適格だと思ったら、下野させれば良いのである。何度でも政権交代させれば良いのである。それが民主主義の根本だ。<br />
望ましい政党を政権につかせることが大切なのではない。不適格な政権をその座から引き摺り下ろすことが選挙の役割だと、筆者は思う。<br />
だから、次の政権が自民党でもみんなの党でも、現与党でなければ良い。<br />
そしてまた、次の政権がまずいものであったなら、再び下野してもらえば良い。野党の時には、みんな調子のいい事を言うものだ。発言だけで、その議員が本物の政治家であるかは判断できない。</p>

<p>挙げた事柄の中では唯一の明るい話題が、3.サッカー女子のワールドカップ優勝である。<br />
これはもう、素直に、喜んでいる。ぜひとも、来年のロンドン・オリンピックでも活躍して貰いたいものだ。<br />
願わくば、ボンバーヘッド荒川選手の雄姿も再び拝みたいものである。</p>

<p>筆者としては、社会的意識、いや、一般市民意識の変化ということで、大きな出来事だったと考えているのが、項目4.で挙げた、一般市民による、８月のフジテレビ偏向放送反対デモである。<br />
これまでのデモは、労働組合や政治団体など、いわばプロが主導したものばかりだった。<br />
しかし、今年８月のフジテレビデモ以降、本当の意味での市民の意思による行動が目に付くようになった。<br />
これはインターネットの普及が背景にあることは間違いない。<br />
そして、既存のマスコミ、特にテレビキー局による放送が、いかに、「一部の意思」に沿ったものであるか、つまり、特定の方向への偏向に満ちた存在であるかが、広く確信されることになった。<br />
後の時代に、必ずや、今年が市民意識の分岐点だったといわれることだろうと思う。</p>

<p>そして、明日から始まる「来年」だが、民主党政権が続くだろうから、景気の回復は無いだろう。<br />
景気が回復するためには、雇用が広がり、庶民の所得が増えなければならない。<br />
しかし、自民党小泉政権以降、自由化の旗印の下、規制緩和が進められた結果、競争が激化して、それは賃金の引き下げに及び、更には、消費の縮小を招くという悪循環に陥ってしまっている。<br />
この悪循環を停めるには、雇用の拡大と賃金の押上げが必要で、少なくとも、小泉政権より前の状況まで戻るように、派遣の禁止を行うことが重要なのだが、民主党野田政権は先送りしてしまった。高額所得者の累進課税強化も先送りとなった。何もかもが先送りでは、変り様が無い。</p>

<p>たとえ政治が稚拙だとしても、筆者はわが国の庶民の強さ、逞しさを信じている。<br />
きっと来年も、昨年の「はやぶさ」、今年の「なでしこ」の様な、爽快な出来事があるに違いない。<br />
それを楽しみに、新しい年を迎えることにしよう。</p>]]>
    </content>
</entry>

<entry>
    <title>猫のちびミー、本格的に顔を洗う？</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/post-464.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.761</id>

    <published>2011-12-31T02:04:25Z</published>
    <updated>2011-12-31T05:51:53Z</updated>

    <summary>ちびミー(♀)は、およそ２歳になる大人の三毛猫なのだが、最近しばしば、水呑場で、...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="My Cat Today" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="猫" label="猫" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>ちびミー(♀)<img src="/mt/mt-static/plugins/InsertIcon/images/cat.gif" class="mt_icon" width="16" height="16" alt="猫" />は、およそ２歳になる大人の三毛猫なのだが、最近しばしば、水呑場で、左掌を水皿に浸して、水を<ruby><rb>掬<rp>（<rt>すく<rp>）</rubu>ってはゴシゴシ、掬ってはゴシゴシとやっている。ちょっと見、本当に顔を洗っている様である。<br />
</p>]]>
        <![CDATA[<p>近寄ってよく見ると、左手を水に浸した後で、濡れた掌から水を舐めとっている様でも、爪の掃除をしている様でもある。<br />
掌で水を掬い取ろうにも、猫の掌には肉球があるから、水は零れ落ちてしまうだろう。</p>

<p>そうして洗顔(？)をしばらくした後、あらためて、ペロペロと舌を使って水を飲んだ。<br />
ちびミーは、小柄な体格に似合わず、大量に水を飲んだあと、満足したのか、その場を去った。</p>

<p>平成23年、西暦2011年の大晦日は、そんな朝で始まったのだった。<img src="/mt/mt-static/plugins/InsertIcon/images/japanesetea.gif" class="mt_icon" width="16" height="16" alt="緑茶" /><br />
</p>]]>
    </content>
</entry>

<entry>
    <title>ダサい</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/post-463.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.760</id>

    <published>2011-12-27T12:19:16Z</published>
    <updated>2011-12-28T01:43:03Z</updated>

    <summary>サッカー日本代表の新ユニホーム発表　真ん中に「結束の一本線」 （魚拓）＠spor...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="いろいろ" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="news" label="News" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p><a href="http://sportsnavi.yahoo.co.jp/soccer/headlines/20111226-00000010-spnavi-socc.html">サッカー日本代表の新ユニホーム発表　真ん中に「結束の一本線」<br />
</a><sub>（<a href="http://megalodon.jp/2011-1227-2100-49/sportsnavi.yahoo.co.jp/soccer/headlines/20111226-00000010-spnavi-socc.html">魚拓</a>）</sub>＠sportsnavi.com<br />
<blockquote>　日本サッカー協会とアディダスジャパンは２６日、さいたまスーパーアリーナで日本代表の新ユニホームを発表した。「結束式」と題された発表会には、日本代表の香川真司、長谷部誠、内田篤人、吉田麻也ら１０人、なでしこジャパンの鮫島彩、安藤梢ら５人、フットサル日本代表の北原亘ら３人が参加した。</p>

<p>　新ユニホームは「結束」をコンセプトに、従来からのイメージチェンジを図った。最大の特徴は、真ん中にあしらわれた赤いライン。これは「結束の一本線」と呼ばれ、大震災から復興に立ち向かう日本が一致団結、結束することを象徴している。また、日本代表ユニホームのメーンカラーである青は、従来よりも濃いディープブルーとなった。なお、結束の一本線は日本代表が赤、なでしこジャパンはピンク、フットサル日本代表は蛍光イエローとなっている。</p>

<p>　新ユニホームを着用して登壇した長谷部は「チームひとつとなって、団結してという意味を持ったユニホームなので、２０１４年ワールドカップ・ブラジル大会へ団結していけるように、みんなでひとつになっていきたいと思います」と話した。</p>

<p>　新ユニホームは２０１２年からの着用予定となっている。<br />
</blockquote><br />
</p>]]>
        <![CDATA[<p>今のユニフォームの、誰が呼んだか「よだれかけ」も、今ひとつのデザインなのだが、輪をかけてダサいデザインを採用したモンだ。<br />
このデザインが良いと考えて考案したデザイナーと責任者は、自信があるのでしょうから、是非、名前を公表していただきたい。<br />
公表できないとしたら、それは自信の無さの表れだろうから、公募するなりして、もっとファンが受け入れやすいデザインに変えるべきだと思う。<br />
デザインだけ見て欲しいと思う人がどれだけいるか、投票でもしてみれば、誰の目にも明らかになるだろうと思う。</p>

<p>ま、これを発表するようなJFAでは、そんな「反省」はしないだろうに４千点<img src="/mt/mt-static/plugins/InsertIcon/images/soccer.gif" class="mt_icon" width="16" height="16" alt="サッカーボール" /><br />
<ul><br />
	<li><a href="http://news.livedoor.com/lite/article_detail/6148681/">日本代表新ユニフォーム発表にサポーター騒然</a><sub>（2011年12月26日14時53分）</sub></li><br />
	<li><a href="http://www.jfa.or.jp/jfatv/index.html?CategoryID=18&MovieID=1002">【2011.12.26】サッカー日本代表新ユニフォーム発表イベント</a><sub>（125分40秒）</sub>@JFA TV</li><br />
</ul><br />
<ins datetime="2011-12-28T10:24:00+09:00">（12月28日追記）<br />
一晩経っても気持ちが治まらないので、<a href="http://adidas.jp/"><ruby><rb>adidas<rp>（<rt>アディダス<rp>）</ruby></a>商品は、代表ユニフォームを<ul><li>公募等の公明な方法で選定する</li><li>（筆者的に）ゆるせるデザインにする</li></ul>のどれかで決めるまでは、不買することにした。<br />
花王製品不買も楽だった（継続中）が、アディダスはもっと楽に不買できそうである。ちなみに、我が家には、アディダスのウェアが、そこかしこにある。<br />
サッカー代表はプロサッカーチームが主体なのであり、プロスポーツはファンによって支えられている。ファンの気持ちを<ruby><rb>萎<rp>（<rt>な<rp>）</ruby>えさせる様なことはすべきでないと思っている<img src="/mt/mt-static/plugins/InsertIcon/images/soccer.gif" class="mt_icon" width="16" height="16" alt="サッカーボール" /></ins><br />
</p>]]>
    </content>
</entry>

<entry>
    <title>CGI(Perl)のページ出力キャラクタをutf8にしたら文字化け </title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/cgi-trouble-in-using-utf8-and-perl.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.759</id>

    <published>2011-12-27T03:36:12Z</published>
    <updated>2011-12-27T12:35:13Z</updated>

    <summary>MySQL-5.5上に載せてあるデータベースのキャラクタセットで４バイトのuni...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="Web-CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="アプリケーション" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="レンタルサーバ" label="レンタルサーバ" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="自宅サーバ" label="自宅サーバ" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>MySQL-5.5上に載せてあるデータベースのキャラクタセットで<a href="/mt/2011/12/upgrading-for-mysql-55.html">４バイトのunicodeが使える様になった</a>ので、調子に乗って、これまでに作ったCGIのページ出力も、EUC-JPからUTF-8に切り替える作業を進めている。</p>
<p>で、うちのサイトでgoogleクローラが最も熱心に拾って行く「<a href="/~kattch/koyomi/today.cgi">今日は何の日？</a>」も去る12月21日<sub>(水)</sub>に出力キャラクタセットをEUC-JPからUTF8に切り替えた。</p>
<p>昨日ふと見ると、明治５年以前の出来事では和暦の年月日を表示しているのだが、その「xx月」の部分が消えていた。<br />
どうも、PerlでUTF-8を使う際の作法を守らず、ソースコードをUTF-8に変換して、HTMLのMETAタグのキャラクタセット指定をutf-8に変更、 <strong>use utf8</strong> 行とデータベースから受けた変数に対する<strong>utf8::decode</strong>行を追加しただけの手抜き対応をしたのが<ruby><rb>拙<rp>（<rt>まず<rp>）</ruby>かった様である。 ＼(^o^)／</p>
]]>
        <![CDATA[<p>手抜きすると、やっぱりどこかでボロが出るなぁと思いつつ、<a href="http://www.rwds.net/kuroita/program/Perl_unicode.html">こちらのサイト</a>を参考に、Perl上でUTF8を使う際の作法を整理して、プログラムを修正した。<br />
ちなみに、使用しているPerlは、Ver.5.8.8 と、Ver.5.12.4 である。</p>
<br />
<p>Perlのutf8フラグを意識して、一通り、<strong>utf8::encode</strong>(utf8フラグOff)、<strong>utf8::decode</strong>(utf8フラグOn)、<strong>no utf8</strong> 行で体裁を整えたのだが、状況は改善しなかった。</p>
<p>仕方が無いので、テストプログラムを組んで試してみた処、次の様な結果になった。ソースコードはUTF-8で記述している。</p>
<h3><strong>サンプル１</strong></h3>
<blockquote><h4><strong>ソースコード</strong></h4>
<blockquote><samp>
#!/usr/bin/perl<br />
<br />
use utf8;<br />
<br />
my($string) = '12';<br />
binmode STDOUT => ":utf8";<br />
if($string eq '1u'){<br />
        print "閏1月\n";<br />
}else{<br />
        print "$string月\n";<br />
}<br />
print length($string), "\n";<br />
</samp>
</blockquote>
<h4><strong>実行結果</strong></h4>
<blockquote><samp>
<br />
2<br />
</samp>
</blockquote>
</blockquote>
<br />
<h3><strong>サンプル２</strong></h3>
<blockquote><h4><strong>ソースコード</strong></h4>
<blockquote><samp>
#!/usr/bin/perl<br />
<br />
use utf8;<br />
<br />
my($string) = '12';<br />
binmode STDOUT => ":utf8";<br />
if($string eq '1u'){<br />
        print "閏1月\n";<br />
}else{<br />
        print "$string"; <font color="green"># ←Latin-1の文字列が入る変数直後でprint文を分離</font><br />
        print "月\n";<br />
}<br />
print length($string), "\n";<br />
</samp>
</blockquote>
<h4><strong>実行結果</strong></h4>
<blockquote><samp>
12月<br />
2<br />
</samp>
</blockquote>
</blockquote>
<br />
<p>以上の結果で推測されるのは、Latin-1（UTF-8でもあるハズ）の“12”と、UTF-8の“月”が、誤った１文字として処理されてしまっているようだ、ということである。</p>
<p>正直な感想として、この様なものに起因する「文字化け」は、原因に<ruby><rb>辿<rp>（<rt>たど<rp>）</ruby>り着くのが難しいだろうと思う。<br />
<a href="http://www.rwds.net/kuroita/program/Perl_unicode.html#use_utf8">先の記事</a>にもあったが、正に
<blockquote><strong>スクリプト内に8bitのバイト列がある(たとえば、文字列リテラルに、Latin-1がある)なら、 "use utf8" は、不幸をもたらすでしょう。バイト列は、ほとんどの場合、適切なUTF-8ではないからです。</strong></blockquote>
を地で行っている感じである。</p>
<p>こんな訳で、<a href="/~kattch/koyomi/today.cgi"><ruby><rb>件<rp>（<rt>くだん<rp>）</ruby>のページ</a>の不具合は、print文の分割で解消できた。<br />
UTF-8は文書の記述に便利な反面、プログラムを組む際には注意が必要だと、改めて感じた次第である。</p>
<br />
<ins datetime="2011-12-27T21:34:00+09:00">（追記）<br />
<p>同様の不具合を回避する方法として、もっとスマートなものは無いだろうかと考えてみたのだが、 print 文は no utf8 を宣言したスコープ内で実行するしかない様な気がする。折角UTF-8でソースを書いて、UTF-8で入出力しようとしても、プログラム中で出力部分は no utf8 では、ちょっと残念な感じが否めない。</p>
<p>なんとかならないものだろうか。</p></ins>
]]>
    </content>
</entry>

<entry>
    <title>FreeBSD セキュリティ勧告 FreeBSD-SA-11:10.pam</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/freebsd-sa-1110pam.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.758</id>

    <published>2011-12-24T07:47:11Z</published>
    <updated>2011-12-24T07:56:05Z</updated>

    <summary>12月23日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。 対...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="セキュリティ勧告" label="セキュリティ勧告" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>12月23日付で、FreeBSDコミュニティから<a href="http://lists.freebsd.org/pipermail/freebsd-announce/2011-December/001400.html">セキュリティ勧告</a>が出ました。</p>
<p>対象は FreeBSD 7.x, 8.x, 9.0 系です。</p>
<p>なお、此度５件の勧告が纏って出ましたが、発表がなるべく週末に掛からないように、コミュニティのセキュリティチームはがんばるそうです。→ <a href="http://lists.freebsd.org/pipermail/freebsd-announce/2011-December/001401.html">Merry Christmas from the FreeBSD Security Team</a></p>
<br />
<p>（続きに周知メールを転載）</p>]]>
        <![CDATA[<blockquote><pre><tt>Content-Type:
text/plain; charset=ISO-2022-JP
=============================================================================
FreeBSD-SA-11:10.pam                                        Security Advisory
                                                          The FreeBSD Project

<p>Topic:          pam_start() does not validate service names</p>

<p>Category:       contrib<br />
Module:         pam<br />
Announced:      2011-12-23<br />
Credits:        Matthias Drochner<br />
Affects:        All supported versions of FreeBSD.<br />
Corrected:      2011-12-13 13:03:11 UTC (RELENG_7, 7.4-STABLE)<br />
                2011-12-23 15:00:37 UTC (RELENG_7_4, 7.4-RELEASE-p5)<br />
                2011-12-23 15:00:37 UTC (RELENG_7_3, 7.3-RELEASE-p9)<br />
                2011-12-13 13:02:52 UTC (RELENG_8, 8.2-STABLE)<br />
                2011-12-23 15:00:37 UTC (RELENG_8_2, 8.2-RELEASE-p5)<br />
                2011-12-23 15:00:37 UTC (RELENG_8_1, 8.1-RELEASE-p7)<br />
                2011-12-13 12:59:39 UTC (RELENG_9, 9.0-STABLE)<br />
                2011-12-13 13:02:31 UTC (RELENG_9_0, 9.0-RELEASE)<br />
CVE Name:       CVE-2011-4122</p>

<p>For general information regarding FreeBSD Security Advisories,<br />
including descriptions of the fields above, security branches, and the<br />
following sections, please visit <a href="http://security.FreeBSD.org/">&lt;URL:http://security.FreeBSD.org/&gt;</a>.</p>

<p>I.   Background</p>

<p>The PAM (Pluggable Authentication Modules) library provides a flexible<br />
framework for user authentication and session setup / teardown.  It is<br />
used not only in the base system, but also by a large number of<br />
third-party applications.</p>

<p>Various authentication methods (UNIX, LDAP, Kerberos etc.) are<br />
implemented in modules which are loaded and executed according to<br />
predefined, named policies.  These policies are defined in<br />
/etc/pam.conf, /etc/pam.d/&lt;policy name&gt;, /usr/local/etc/pam.conf or<br />
/usr/local/etc/pam.d/&lt;policy name&gt;.</p>

<p>The PAM API is a de facto industry standard which has been implemented<br />
by several parties.  FreeBSD uses the OpenPAM implementation.</p>

<p>II.  Problem Description</p>

<p>Some third-party applications, including KDE's kcheckpass command,<br />
allow the user to specify the name of the policy on the command line.<br />
Since OpenPAM treats the policy name as a path relative to /etc/pam.d<br />
or /usr/local/etc/pam.d, users who are permitted to run such an<br />
application can craft their own policies and cause the application<br />
to load and execute their own modules.</p>

<p>III. Impact</p>

<p>If an application that runs with root privileges allows the user to<br />
specify the name of the PAM policy to load, users who are permitted to<br />
run that application will be able to execute arbitrary code with root<br />
privileges.</p>

<p>There are no vulnerable applications in the base system.</p>

<p>IV.  Workaround</p>

<p>No workaround is available, but systems without untrusted users are<br />
not vulnerable.</p>

<p>Inspect any third-party setuid / setgid binaries which use the PAM<br />
library and ascertain whether they allow the user to specify the<br />
policy name, then either change the binary's permissions to prevent<br />
its use or remove it altogether.</p>

<p>The following command will output a non-zero number if a dynamically<br />
linked binary uses libpam:</p>

<p># ldd /usr/local/bin/suspicious_binary | grep -c libpam</p>

<p>The following command will output a non-zero number if a statically<br />
linked binary uses libpam:</p>

<p># grep -acF "/etc/pam.d/" /usr/local/bin/suspicious_binary</p>

<p>V.   Solution</p>

<p>Perform one of the following:</p>

<p>1) Upgrade your vulnerable system to 7-STABLE or 8-STABLE, or to<br />
the RELENG_8_2, RELENG_8_1, RELENG_7_4, or RELENG_7_3 security<br />
branch dated after the correction date.</p>

<p>2) To update your vulnerable system via a source code patch:</p>

<p>The following patches have been verified to apply to FreeBSD 7.4, 7.3,<br />
8.2 and 8.1 systems.</p>

<p>a) Download the relevant patch from the location below, and verify the<br />
detached PGP signature using your PGP utility.</p>

<p># fetch http://security.FreeBSD.org/patches/SA-11:10/pam.patch<br />
# fetch http://security.FreeBSD.org/patches/SA-11:10/pam.patch.asc</p>

<p>b) Execute the following commands as root:</p>

<p># cd /usr/src<br />
# patch &lt; /path/to/patch<br />
# cd /usr/src/lib/libpam<br />
# make obj &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install</p>

<p>NOTE: On the amd64 platform, the above procedure will not update the<br />
lib32 (i386 compatibility) libraries.  On amd64 systems where the i386<br />
compatibility libraries are used, the operating system should instead<br />
be recompiled as described in<br />
<a href="http://www.FreeBSD.org/handbook/makeworld.html">&lt;URL:http://www.FreeBSD.org/handbook/makeworld.html&gt;</a></p>

<p>3) To update your vulnerable system via a binary patch:</p>

<p>Systems running 7.4-RELEASE, 7.3-RELEASE, 8.2-RELEASE, or 8.1-RELEASE on<br />
the i386 or amd64 platforms can be updated via the freebsd-update(8)<br />
utility:</p>

<p># freebsd-update fetch<br />
# freebsd-update install</p>

<p>VI.  Correction details</p>

<p>The following list contains the revision numbers of each file that was<br />
corrected in FreeBSD.</p>

<p>CVS:</p>

<p>Branch                                                           Revision<br />
  Path<br />
-------------------------------------------------------------------------<br />
RELENG_7<br />
  src/contrib/openpam/lib/openpam_configure.c                1.1.1.7.20.2<br />
RELENG_7_4<br />
  src/UPDATING                                             1.507.2.36.2.7<br />
  src/sys/conf/newvers.sh                                  1.72.2.18.2.10<br />
  src/contrib/openpam/lib/openpam_configure.c            1.1.1.7.20.1.8.1<br />
RELENG_7_3<br />
  src/UPDATING                                            1.507.2.34.2.11<br />
  src/sys/conf/newvers.sh                                  1.72.2.16.2.13<br />
  src/contrib/openpam/lib/openpam_configure.c            1.1.1.7.20.1.6.1<br />
RELENG_8<br />
  src/contrib/openpam/lib/openpam_configure.c                 1.1.1.8.2.1<br />
RELENG_8_2<br />
  src/UPDATING                                             1.632.2.19.2.7<br />
  src/sys/conf/newvers.sh                                  1.83.2.12.2.10<br />
  src/contrib/openpam/lib/openpam_configure.c                 1.1.1.8.8.1<br />
RELENG_8_1<br />
  src/UPDATING                                            1.632.2.14.2.10<br />
  src/sys/conf/newvers.sh                                  1.83.2.10.2.11<br />
  src/contrib/openpam/lib/openpam_configure.c                 1.1.1.8.6.1<br />
RELENG_9<br />
  src/contrib/openpam/lib/openpam_configure.c                1.1.1.8.10.1<br />
RELENG_9_0<br />
  src/contrib/openpam/lib/openpam_configure.c                1.1.1.8.12.1<br />
-------------------------------------------------------------------------</p>

<p>Subversion:</p>

<p>Branch/path                                                      Revision<br />
-------------------------------------------------------------------------<br />
stable/7/                                                         r228467<br />
releng/7.4/                                                       r228843<br />
releng/7.3/                                                       r228843<br />
stable/8/                                                         r228466<br />
releng/8.2/                                                       r228843<br />
releng/8.1/                                                       r228843<br />
stable/9/                                                         r228464<br />
releng/9.0/                                                       r228465<br />
-------------------------------------------------------------------------</p>

<p>VII. References</p>

<p><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4122">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4122</a></p>

<p>The latest revision of this advisory is available at<br />
<a href="http://security.FreeBSD.org/advisories/FreeBSD-SA-11:10.pam.asc">http://security.FreeBSD.org/advisories/FreeBSD-SA-11:10.pam.asc</a><br />
</tt></pre></blockquote><br />
</p>]]>
    </content>
</entry>

<entry>
    <title>FreeBSD セキュリティ勧告 FreeBSD-SA-11:09.pam_ssh</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/freebsd-sa-1109pam-ssh.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.757</id>

    <published>2011-12-24T07:25:00Z</published>
    <updated>2011-12-24T07:56:35Z</updated>

    <summary>12月23日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。 対...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="セキュリティ勧告" label="セキュリティ勧告" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>12月23日付で、FreeBSDコミュニティから<a href="http://lists.freebsd.org/pipermail/freebsd-announce/2011-December/001399.html">セキュリティ勧告</a>が出ました。</p>
<p>対象は FreeBSD 7.x, 8.x, 9.0 系です。</p>
<p>（続きに周知メールを転載）</p>]]>
        <![CDATA[<blockquote><pre><tt>Content-Type:
text/plain; charset=ISO-2022-JP
=============================================================================
FreeBSD-SA-11:09.pam_ssh                                    Security Advisory
                                                          The FreeBSD Project

Topic:          pam_ssh improperly grants access when user account has
                unencrypted SSH private keys

Category:       contrib
Module:         pam
Announced:      2011-12-23
Credits:        Guy Helmer, Dag-Erling Smorgrav
Affects:        All supported versions of FreeBSD.
Corrected:      2011-12-11 20:40:23 UTC (RELENG_7, 7.4-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_7_4, 7.4-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_7_3, 7.3-RELEASE-p9)
                2011-12-11 20:38:36 UTC (RELENG_8, 8.2-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_8_2, 8.2-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_8_1, 8.1-RELEASE-p7)
                2011-12-11 16:57:27 UTC (RELENG_9, 9.0-STABLE)
                2011-12-11 17:32:37 UTC (RELENG_9_0, 9.0-RELEASE)

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit <a href="URL:http://security.FreeBSD.org/">&lt;URL:http://security.FreeBSD.org/&gt;</a>.

I.   Background

The PAM (Pluggable Authentication Modules) library provides a flexible
framework for user authentication and session setup / teardown.  It is
used not only in the base system, but also by a large number of
third-party applications.

Various authentication methods (UNIX, LDAP, Kerberos etc.) are
implemented in modules which are loaded and executed according to
predefined, named policies.  These policies are defined in
/etc/pam.conf, /etc/pam.d/<policy name>, /usr/local/etc/pam.conf or
/usr/local/etc/pam.d/<policy name>.

The base system includes a module named pam_ssh which, if enabled,
allows users to authenticate themselves by typing in the passphrase of
one of the SSH private keys which are stored in encrypted form in the
their .ssh directory.  Authentication is considered successful if at
least one of these keys could be decrypted using the provided
passphrase.

By default, the pam_ssh module rejects SSH private keys with no
passphrase.  A "nullok" option exists to allow these keys.

II.  Problem Description

The OpenSSL library call used to decrypt private keys ignores the
passphrase argument if the key is not encrypted.  Because the pam_ssh
module only checks whether the passphrase provided by the user is
null, users with unencrypted SSH private keys may successfully
authenticate themselves by providing a dummy passphrase.

III. Impact

If the pam_ssh module is enabled, attackers may be able to gain access
to user accounts which have unencrypted SSH private keys.

IV.  Workaround

No workaround is available, but systems that do not have the pam_ssh module
enabled are not vulnerable.  The pam_ssh module is not enabled in any
of the default policies provided in the base system.

The system administrator can use the following procedure to inspect all
PAM policy files to determine whether the pam_ssh module is enabled.
If the following command produces any output, the system may be
vulnerable:

# egrep -r '^[^#].*\&lt;pam_ssh\&gt;' /etc/pam.* /usr/local/etc/pam.*

The following command will disable the pam_ssh module in all PAM
policies present in the system:

# sed -i '' -e '/^[^#].*pam_ssh/s/^/#/' /etc/pam.conf /etc/pam.d/* \
    /usr/local/etc/pam.conf /usr/local/etc/pam.d/*

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 7-STABLE or 8-STABLE, or to
the RELENG_8_2, RELENG_8_1, RELENG_7_4, or RELENG_7_3 security
branch dated after the correction date.

2) To update your vulnerable system via a source code patch:

The following patches have been verified to apply to FreeBSD 7.4, 7.3,
8.2 and 8.1 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch http://security.FreeBSD.org/patches/SA-11:09/pam_ssh.patch
# fetch http://security.FreeBSD.org/patches/SA-11:09/pam_ssh.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch &lt; /path/to/patch
# cd /usr/src/lib/libpam/modules/pam_ssh
# make obj &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install

NOTE: On the amd64 platform, the above procedure will not update the
lib32 (i386 compatibility) libraries.  On amd64 systems where the i386
compatibility libraries are used, the operating system should instead
be recompiled as described in
<a href="http://www.FreeBSD.org/handbook/makeworld.html">&lt;URL:http://www.FreeBSD.org/handbook/makeworld.html&gt;</a>

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 7.3-RELEASE, 8.2-RELEASE, or 8.1-RELEASE on
the i386 or amd64 platforms can be updated via the freebsd-update(8)
utility:

# freebsd-update fetch
# freebsd-update install

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

CVS:

Branch                                                           Revision
  Path
-------------------------------------------------------------------------
RELENG_7
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                       1.44.2.2
RELENG_7_4
  src/UPDATING                                             1.507.2.36.2.7
  src/sys/conf/newvers.sh                                  1.72.2.18.2.10
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                   1.44.2.1.8.2
RELENG_7_3
  src/UPDATING                                            1.507.2.34.2.11
  src/sys/conf/newvers.sh                                  1.72.2.16.2.13
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                   1.44.2.1.6.2
RELENG_8
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                       1.45.2.3
RELENG_8_2
  src/UPDATING                                             1.632.2.19.2.7
  src/sys/conf/newvers.sh                                  1.83.2.12.2.10
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                   1.45.2.2.4.2
RELENG_8_1
  src/UPDATING                                            1.632.2.14.2.10
  src/sys/conf/newvers.sh                                  1.83.2.10.2.11
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                   1.45.2.2.2.2
RELENG_9
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                       1.47.2.2
RELENG_9_0
  src/lib/libpam/modules/pam_ssh/pam_ssh.c                   1.47.2.1.2.2
-------------------------------------------------------------------------

Subversion:

Branch/path                                                      Revision
-------------------------------------------------------------------------
stable/7/                                                         r228421
releng/7.4/                                                       r228843
releng/7.3/                                                       r228843
stable/8/                                                         r228420
releng/8.2/                                                       r228843
releng/8.1/                                                       r228843
stable/9/                                                         r228410
releng/9.0/                                                       r228414
-------------------------------------------------------------------------

VII. References

The latest revision of this advisory is available at
<a href="http://security.FreeBSD.org/advisories/FreeBSD-SA-11:09.pam_ssh.asc">http://security.FreeBSD.org/advisories/FreeBSD-SA-11:09.pam_ssh.asc</a>
</tt></pre></blockquote>
]]>
    </content>
</entry>

<entry>
    <title>FreeBSD セキュリティ勧告 FreeBSD-SA-11:08.telnetd</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/freebsd-sa-1108telnetd.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.756</id>

    <published>2011-12-24T07:14:50Z</published>
    <updated>2011-12-24T07:57:08Z</updated>

    <summary>12月23日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。 対...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="セキュリティ勧告" label="セキュリティ勧告" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>12月23日付で、FreeBSDコミュニティから<a href="http://lists.freebsd.org/pipermail/freebsd-announce/2011-December/001398.html">セキュリティ勧告</a>が出ました。</p>
<p>対象は FreeBSD 7.x, 8.x, 9.0 系です。</p>
<p>（続きに周知メールを転載）</p>]]>
        <![CDATA[<blockquote><pre><tt>Content-Type:
text/plain; charset=ISO-2022-JP
=============================================================================
FreeBSD-SA-11:08.telnetd                                    Security Advisory
                                                          The FreeBSD Project

Topic:          telnetd code execution vulnerability

Category:       core
Module:         contrib
Announced:      2011-12-23
Affects:        All supported versions of FreeBSD.
Corrected:      2011-12-23 15:00:37 UTC (RELENG_7, 7.4-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_7_4, 7.4-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_7_3, 7.3-RELEASE-p9)
                2011-12-23 15:00:37 UTC (RELENG_8, 8.2-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_8_2, 8.2-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_8_1, 8.1-RELEASE-p7)
                2011-12-23 15:00:37 UTC (RELENG_9, 9.0-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_9_0, 9.0-RELEASE)
CVE Name:       CVE-2011-4862

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit <a href="http://security.FreeBSD.org/">&lt;URL:http://security.FreeBSD.org/&gt;</a>.

I.   Background

The FreeBSD telnet daemon, telnetd(8), implements the server side of the
TELNET virtual terminal protocol.  It has been disabled by default in
FreeBSD since August 2001, and due to the lack of cryptographic security
in the TELNET protocol, it is strongly recommended that the SSH protocol
be used instead.  The FreeBSD telnet daemon can be enabled via the
/etc/inetd.conf configuration file and the inetd(8) daemon.

The TELNET protocol has a mechanism for encryption of the data stream
(but it is not cryptographically strong and should not be relied upon
in any security-critical applications).

II.  Problem Description

When an encryption key is supplied via the TELNET protocol, its length
is not validated before the key is copied into a fixed-size buffer.

III. Impact

An attacker who can connect to the telnetd daemon can execute arbitrary
code with the privileges of the daemon (which is usually the "root"
superuser).

IV.  Workaround

No workaround is available, but systems not running the telnet daemon
are not vulnerable.

Note that the telnet daemon is usually run via inetd, and consequently
will not show up in a process listing unless a connection is currently
active; to determine if it is enabled, run

$ ps ax | grep telnetd | grep -v grep
$ grep telnetd /etc/inetd.conf | grep -vE '^#'

If any output is produced, your system may be vulnerable.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 7-STABLE or 8-STABLE, or to the
RELENG_8_2, RELENG_8_1, RELENG_7_4, or RELENG_7_3 security branch dated
after the correction date.

2) To update your vulnerable system via a source code patch:

The following patches have been verified to apply to FreeBSD 7.4, 7.3,
8.2, and 8.1  systems.

a) Download the patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch http://security.FreeBSD.org/patches/SA-11:08/telnetd.patch
# fetch http://security.FreeBSD.org/patches/SA-11:08/telnetd.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch &lt; /path/to/patch
# cd /usr/src/lib/libtelnet
# make obj &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install
# cd /usr/src/libexec/telnetd
# make obj &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 7.3-RELEASE, 8.2-RELEASE, or 8.1-RELEASE on
the i386 or amd64 platforms can be updated via the freebsd-update(8)
utility:

# freebsd-update fetch
# freebsd-update install

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

CVS:

Branch                                                           Revision
  Path
-------------------------------------------------------------------------
RELENG_7
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c         1.1.1.2.24.1
  src/contrib/telnet/libtelnet/encrypt.c                         1.9.24.1
RELENG_7_4
  src/UPDATING                                             1.507.2.36.2.7
  src/sys/conf/newvers.sh                                  1.72.2.18.2.10
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c         1.1.1.2.38.1
  src/contrib/telnet/libtelnet/encrypt.c                         1.9.40.2
RELENG_7_3
  src/UPDATING                                            1.507.2.34.2.11
  src/sys/conf/newvers.sh                                  1.72.2.16.2.13
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c         1.1.1.2.36.1
  src/contrib/telnet/libtelnet/encrypt.c                         1.9.38.2
RELENG_8
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c          1.1.1.3.2.1
  src/contrib/telnet/libtelnet/encrypt.c                         1.9.36.2
RELENG_8_2
  src/UPDATING                                             1.632.2.19.2.7
  src/sys/conf/newvers.sh                                  1.83.2.12.2.10
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c          1.1.1.3.8.1
  src/contrib/telnet/libtelnet/encrypt.c                     1.9.36.1.6.2
RELENG_8_1
  src/UPDATING                                            1.632.2.14.2.10
  src/sys/conf/newvers.sh                                  1.83.2.10.2.11
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c          1.1.1.3.6.1
  src/contrib/telnet/libtelnet/encrypt.c                     1.9.36.1.4.2
RELENG_9
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c         1.1.1.3.10.1
  src/contrib/telnet/libtelnet/encrypt.c                         1.9.42.2
RELENG_9_0
  src/crypto/heimdal/appl/telnet/libtelnet/encrypt.c         1.1.1.3.12.1
  src/contrib/telnet/libtelnet/encrypt.c                     1.9.42.1.2.2
-------------------------------------------------------------------------

Subversion:

Branch/path                                                      Revision
-------------------------------------------------------------------------
stable/7/                                                         r228843
releng/7.4/                                                       r228843
releng/7.3/                                                       r228843
stable/8/                                                         r228843
releng/8.2/                                                       r228843
releng/8.1/                                                       r228843
stable/9/                                                         r228843
releng/9.0/                                                       r228843
-------------------------------------------------------------------------

VII. References

<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4862">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4862</a>

The latest revision of this advisory is available at
<a href="http://security.FreeBSD.org/advisories/FreeBSD-SA-11:08.telnetd.asc">http://security.FreeBSD.org/advisories/FreeBSD-SA-11:08.telnetd.asc</a>
</tt></pre></blockquote>
]]>
    </content>
</entry>

<entry>
    <title>FreeBSD セキュリティ勧告 FreeBSD-SA-11:07.chroot</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/freebsd-sa-1107chroot.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.755</id>

    <published>2011-12-24T07:00:40Z</published>
    <updated>2011-12-24T07:57:41Z</updated>

    <summary>12月23日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。 対...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="セキュリティ勧告" label="セキュリティ勧告" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>12月23日付で、FreeBSDコミュニティから<a href="http://lists.freebsd.org/pipermail/freebsd-announce/2011-December/001397.html">セキュリティ勧告</a>が出ました。</p>
<p>対象は FreeBSD 7.x, 8.x, 9.0 系です。</p>
<p>（続きに周知メールを転載）</p>]]>
        <![CDATA[<blockquote><pre><tt>Content-Type:
text/plain; charset=ISO-2022-JP
=============================================================================
FreeBSD-SA-11:07.chroot                                     Security Advisory
                                                          The FreeBSD Project

Topic:          Code execution via chrooted ftpd

Category:       core
Module:         libc
Announced:      2011-12-23
Affects:        All supported versions of FreeBSD.
Corrected:      2011-12-23 15:00:37 UTC (RELENG_7, 7.4-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_7_4, 7.4-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_7_3, 7.3-RELEASE-p9)
                2011-12-23 15:00:37 UTC (RELENG_8, 8.2-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_8_2, 8.2-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_8_1, 8.1-RELEASE-p7)
                2011-12-23 15:00:37 UTC (RELENG_9, 9.0-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_9_0, 9.0-RELEASE)

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit <a href="http://security.FreeBSD.org/">&lt;URL:http://security.FreeBSD.org/&gt;</a>.

I.   Background

Chroot is an operation that changes the apparent root directory for the
current process and its children.  The chroot(2) system call is widely
used in many applications as a measure of limiting a process's access to
the file system, as part of implementing privilege separation.

The nsdispatch(3) API implementation has a feature to reload its
configuration on demand.  This feature may also load shared libraries
and run code provided by the library when requested by the configuration
file.

II.  Problem Description

The nsdispatch(3) API has no mechanism to alert it to whether it is
operating within a chroot environment in which the standard paths for
configuration files and shared libraries may be untrustworthy.

The FreeBSD ftpd(8) daemon can be configured to use chroot(2), and
also uses the nsdispatch(3) API.

III. Impact

If ftpd is configured to place a user in a chroot environment, then an
attacker who can log in as that user may be able to run arbitrary code
with elevated ("root") privileges.

IV.  Workaround

Don't use ftpd with the chroot option.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 7-STABLE or 8-STABLE, or to
the RELENG_8_2, RELENG_8_1, RELENG_7_4, or RELENG_7_3 security
branch dated after the correction date.

2) To update your vulnerable system via a source code patch:

The following patches have been verified to apply to FreeBSD 7.4, 7.3,
8.2 and 8.1 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

[FreeBSD 7.3 and 7.4]
# fetch http://security.FreeBSD.org/patches/SA-11:07/chroot7.patch
# fetch http://security.FreeBSD.org/patches/SA-11:07/chroot7.patch.asc

[FreeBSD 8.1 and 8.2]
# fetch http://security.FreeBSD.org/patches/SA-11:07/chroot8.patch
# fetch http://security.FreeBSD.org/patches/SA-11:07/chroot8.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch &lt; /path/to/patch

c) Recompile the operating system as described in
<a href="http://www.freebsd.org/handbook/makeworld.html">&lt;URL: http://www.freebsd.org/handbook/makeworld.html&gt;</a> and reboot the
system.

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 7.3-RELEASE, 8.2-RELEASE, or 8.1-RELEASE on
the i386 or amd64 platforms can be updated via the freebsd-update(8)
utility:

# freebsd-update fetch
# freebsd-update install

4) This update adds a new API, __FreeBSD_libc_enter_restricted_mode()
to the C library, which completely disables loading of shared libraries
upon return.  Applications doing chroot(2) jails need to be updated
to call this API explicitly right after the chroot(2) operation as a
safety measure.

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

CVS:

Branch                                                           Revision
  Path
-------------------------------------------------------------------------
RELENG_7
  src/include/unistd.h                                           1.80.2.4
  src/lib/libc/include/libc_private.h                            1.17.2.4
  src/lib/libc/Versions.def                                       1.3.2.3
  src/lib/libc/net/nsdispatch.c                                  1.14.2.3
  src/lib/libc/gen/Symbol.map                                     1.6.2.7
  src/lib/libc/gen/Makefile.inc                                 1.128.2.6
  src/lib/libc/gen/libc_dlopen.c                                  1.2.2.2
  src/libexec/ftpd/popen.c                                      1.26.10.2
  src/libexec/ftpd/ftpd.c                                       1.212.2.2
RELENG_7_4
  src/UPDATING                                             1.507.2.36.2.7
  src/sys/conf/newvers.sh                                  1.72.2.18.2.10
  src/include/unistd.h                                       1.80.2.3.4.2
  src/lib/libc/include/libc_private.h                        1.17.2.3.4.2
  src/lib/libc/Versions.def                                   1.3.2.2.4.2
  src/lib/libc/net/nsdispatch.c                              1.14.2.2.2.2
  src/lib/libc/gen/Symbol.map                                 1.6.2.6.4.2
  src/lib/libc/gen/Makefile.inc                             1.128.2.5.4.2
  src/lib/libc/gen/libc_dlopen.c                                  1.2.4.2
  src/libexec/ftpd/popen.c                                  1.26.10.1.2.2
  src/libexec/ftpd/ftpd.c                                   1.212.2.1.6.2
RELENG_7_3
  src/UPDATING                                            1.507.2.34.2.11
  src/sys/conf/newvers.sh                                  1.72.2.16.2.13
  src/include/unistd.h                                       1.80.2.3.2.2
  src/lib/libc/include/libc_private.h                        1.17.2.3.2.2
  src/lib/libc/Versions.def                                   1.3.2.2.2.2
  src/lib/libc/net/nsdispatch.c                              1.14.2.1.6.2
  src/lib/libc/gen/Symbol.map                                 1.6.2.6.2.2
  src/lib/libc/gen/Makefile.inc                             1.128.2.5.2.2
  src/lib/libc/gen/libc_dlopen.c                                  1.1.2.1
  src/libexec/ftpd/popen.c                                      1.26.24.2
  src/libexec/ftpd/ftpd.c                                   1.212.2.1.4.2
RELENG_8
  src/include/unistd.h                                           1.95.2.2
  src/lib/libc/include/libc_private.h                            1.20.2.3
  src/lib/libc/Versions.def                                       1.8.2.3
  src/lib/libc/net/nsdispatch.c                                  1.18.2.3
  src/lib/libc/gen/Symbol.map                                    1.21.2.6
  src/lib/libc/gen/Makefile.inc                                 1.144.2.7
  src/lib/libc/gen/libc_dlopen.c                                  1.1.4.2
  src/libexec/ftpd/popen.c                                      1.26.22.3
  src/libexec/ftpd/ftpd.c                                       1.214.2.3
RELENG_8_2
  src/UPDATING                                             1.632.2.19.2.7
  src/sys/conf/newvers.sh                                  1.83.2.12.2.10
  src/include/unistd.h                                       1.95.2.1.6.2
  src/lib/libc/include/libc_private.h                        1.20.2.2.4.2
  src/lib/libc/Versions.def                                   1.8.2.2.4.2
  src/lib/libc/net/nsdispatch.c                              1.18.2.2.2.2
  src/lib/libc/gen/Symbol.map                                1.21.2.5.2.2
  src/lib/libc/gen/Makefile.inc                             1.144.2.6.2.2
  src/lib/libc/gen/libc_dlopen.c                                  1.2.8.2
  src/libexec/ftpd/popen.c                                  1.26.22.2.4.2
  src/libexec/ftpd/ftpd.c                                   1.214.2.1.6.2
RELENG_8_1
  src/UPDATING                                            1.632.2.14.2.10
  src/sys/conf/newvers.sh                                  1.83.2.10.2.11
  src/include/unistd.h                                       1.95.2.1.4.2
  src/lib/libc/include/libc_private.h                        1.20.2.2.2.2
  src/lib/libc/Versions.def                                   1.8.2.2.2.2
  src/lib/libc/net/nsdispatch.c                              1.18.2.1.4.2
  src/lib/libc/gen/Symbol.map                                1.21.2.3.2.2
  src/lib/libc/gen/Makefile.inc                             1.144.2.4.2.2
  src/lib/libc/gen/libc_dlopen.c                                 1.2.10.2
  src/libexec/ftpd/popen.c                                  1.26.22.2.2.2
  src/libexec/ftpd/ftpd.c                                   1.214.2.1.4.2
RELENG_9
  src/include/unistd.h                                          1.101.2.2
  src/lib/libc/include/libc_private.h                            1.26.2.2
  src/lib/libc/Versions.def                                       1.9.2.2
  src/lib/libc/net/nsdispatch.c                                  1.19.2.2
  src/lib/libc/gen/Symbol.map                                    1.38.2.2
  src/lib/libc/gen/Makefile.inc                                 1.159.2.2
  src/lib/libc/gen/libc_dlopen.c                                  1.1.6.2
  src/lib/libc/iconv/citrus_module.c                              1.1.2.2
  src/libexec/ftpd/popen.c                                       1.27.2.2
  src/libexec/ftpd/ftpd.c                                       1.220.2.2
RELENG_9_0
  src/include/unistd.h                                      1.101.2.1.2.2
  src/lib/libc/include/libc_private.h                        1.26.2.1.2.2
  src/lib/libc/Versions.def                                   1.9.2.1.2.2
  src/lib/libc/net/nsdispatch.c                              1.19.2.1.2.2
  src/lib/libc/gen/Symbol.map                                1.38.2.1.2.2
  src/lib/libc/gen/Makefile.inc                             1.159.2.1.2.2
  src/lib/libc/gen/libc_dlopen.c                                  1.2.6.2
  src/lib/libc/iconv/citrus_module.c                          1.1.2.1.2.2
  src/libexec/ftpd/popen.c                                   1.27.2.1.2.2
  src/libexec/ftpd/ftpd.c                                   1.220.2.1.2.2
-------------------------------------------------------------------------

Subversion:

Branch/path                                                      Revision
-------------------------------------------------------------------------
stable/7/                                                         r228843
releng/7.4/                                                       r228843
releng/7.3/                                                       r228843
stable/8/                                                         r228843
releng/8.2/                                                       r228843
releng/8.1/                                                       r228843
stable/9/                                                         r228843
releng/9.0/                                                       r228843
-------------------------------------------------------------------------

VII. References

The latest revision of this advisory is available at
<a href="http://security.FreeBSD.org/advisories/FreeBSD-SA-11:07.chroot.asc">http://security.FreeBSD.org/advisories/FreeBSD-SA-11:07.chroot.asc</a>
</tt></pre></blockquote>
]]>
    </content>
</entry>

<entry>
    <title>FreeBSD セキュリティ勧告 FreeBSD-SA-11:06.bind</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/freebsd-sa-1106bind.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.754</id>

    <published>2011-12-24T06:51:05Z</published>
    <updated>2011-12-24T07:58:24Z</updated>

    <summary>12月23日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。 対...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="セキュリティ勧告" label="セキュリティ勧告" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>12月23日付で、FreeBSDコミュニティから<a href="http://lists.freebsd.org/pipermail/freebsd-announce/2011-December/001396.html">セキュリティ勧告</a>が出ました。</p>
<p>対象は FreeBSD 7.x, 8.x, 9.0 系です。</p>
<p>（続きに周知メールを転載）</p>]]>
        <![CDATA[<blockquote><pre><tt>Content-Type:
text/plain; charset=ISO-2022-JP
=============================================================================
FreeBSD-SA-11:06.bind                                       Security Advisory
                                                          The FreeBSD Project

Topic:          Remote packet Denial of Service against named(8) servers

Category:       contrib
Module:         bind
Announced:      2011-12-23
Affects:        All supported versions of FreeBSD.
Corrected:      2011-11-17 01:10:16 UTC (RELENG_7, 7.4-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_7_4, 7.4-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_7_3, 7.3-RELEASE-p9)
                2011-11-17 00:36:10 UTC (RELENG_8, 8.2-STABLE)
                2011-12-23 15:00:37 UTC (RELENG_8_2, 8.2-RELEASE-p5)
                2011-12-23 15:00:37 UTC (RELENG_8_1, 8.1-RELEASE-p7)
                2011-12-01 21:13:41 UTC (RELENG_9, 9.0-STABLE)
                2011-12-01 21:17:59 UTC (RELENG_9_0, 9.0-RC3)
                2011-11-16 23:41:13 UTC (ports tree)
CVE Name:       CVE-2011-4313

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit <a href="http://security.FreeBSD.org/">&lt;URL:http://security.FreeBSD.org/&gt;</a>.

I.   Background

BIND 9 is an implementation of the Domain Name System (DNS) protocols.
The named(8) daemon is an Internet Domain Name Server.

II.  Problem Description

A remote attacker could cause the BIND resolver to cache an invalid
record, which could cause the BIND daemon to crash when that record
is being queried.

III. Impact

An attacker that is able to send an specifically crafted response to the
BIND daemon can cause it to crash, resulting in a denial of service.

Note that due to the nature of this vulnerability, the attacker does
not necessarily have to have query access to the victim server.  The
vulnerability can be triggered by tricking legitimate clients, for
instance spam filtering systems or an end user browser, which can be
made to the query on their behalf.

IV.  Workaround

No workaround is available, but systems not running the BIND resolving
name server are not affected.

Servers that are running in authoritative-only mode appear not to be
affected by this vulnerability.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 7-STABLE or 8-STABLE, or to the
RELENG_8_2, RELENG_8_1, RELENG_7_4, or RELENG_7_3 security branch dated
after the correction date.

2) To update your vulnerable system via a source code patch:

The following patches have been verified to apply to FreeBSD 7.4, 7.3,
8.2 and 8.1 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

[FreeBSD 7.3-RELEASE and 7.4-RELEASE]
# fetch http://security.FreeBSD.org/patches/SA-11:06/bind7.patch
# fetch http://security.FreeBSD.org/patches/SA-11:06/bind7.patch.asc

[FreeBSD 8.1-RELEASE and 8.2-RELEASE]
# fetch http://security.FreeBSD.org/patches/SA-11:06/bind8.patch
# fetch http://security.FreeBSD.org/patches/SA-11:06/bind8.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch &lt; /path/to/patch
# cd /usr/src/lib/bind/
# make obj &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install
# cd /usr/src/usr.sbin/named
# make obj &amp;&amp; make depend &amp;&amp; make &amp;&amp; make install

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 7.3-RELEASE, 8.2-RELEASE, or 8.1-RELEASE on
the i386 or amd64 platforms can be updated via the freebsd-update(8)
utility:

# freebsd-update fetch
# freebsd-update install

4) Install and run BIND from the Ports Collection after the correction
date.  The following versions and newer versions of BIND installed from
the Ports Collection already have the mitigation measure:

        bind96-9.6.3.1.ESV.R5.1
        bind97-9.7.4.1
        bind98-9.8.1.1

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

CVS:

Branch                                                           Revision
  Path
-------------------------------------------------------------------------
RELENG_7
  src/contrib/bind9/lib/dns/rbtdb.c                           1.1.1.4.2.9
  src/contrib/bind9/bin/named/query.c                         1.1.1.6.2.8
RELENG_7_4
  src/UPDATING                                             1.507.2.36.2.7
  src/sys/conf/newvers.sh                                  1.72.2.18.2.10
  src/contrib/bind9/lib/dns/rbtdb.c                       1.1.1.4.2.6.2.1
  src/contrib/bind9/bin/named/query.c                     1.1.1.6.2.6.2.1
RELENG_7_3
  src/UPDATING                                            1.507.2.34.2.11
  src/sys/conf/newvers.sh                                  1.72.2.16.2.13
  src/contrib/bind9/lib/dns/rbtdb.c                       1.1.1.4.2.3.2.2
  src/contrib/bind9/bin/named/query.c                     1.1.1.6.2.3.2.2
RELENG_8
  src/contrib/bind9/lib/dns/rbtdb.c                               1.3.2.9
  src/contrib/bind9/bin/named/query.c                             1.3.2.8
RELENG_8_2
  src/UPDATING                                             1.632.2.19.2.7
  src/sys/conf/newvers.sh                                  1.83.2.12.2.10
  src/contrib/bind9/lib/dns/rbtdb.c                           1.3.2.5.2.1
  src/contrib/bind9/bin/named/query.c                         1.3.2.5.2.1
RELENG_8_1
  src/UPDATING                                            1.632.2.14.2.10
  src/sys/conf/newvers.sh                                  1.83.2.10.2.11
  src/contrib/bind9/lib/dns/rbtdb.c                           1.3.2.3.2.1
  src/contrib/bind9/bin/named/query.c                         1.3.2.3.2.1
RELENG_9
  src/contrib/bind9/lib/dns/rbtdb.c                              1.13.2.1
  src/contrib/bind9/bin/named/query.c                            1.11.2.1
RELENG_9_0
  src/contrib/bind9/lib/dns/rbtdb.c                              1.13.4.1
  src/contrib/bind9/bin/named/query.c                            1.11.4.1
-------------------------------------------------------------------------

Subversion:

Branch/path                                                      Revision
-------------------------------------------------------------------------
stable/7/                                                         r227603
releng/7.4/                                                       r228843
releng/7.3/                                                       r228843
stable/8/                                                         r227599
releng/8.2/                                                       r228843
releng/8.1/                                                       r228843
stable/9/                                                         r228189
releng/9.0/                                                       r228190
-------------------------------------------------------------------------

VII. References

<a href="https://www.isc.org/software/bind/advisories/cve-2011-4313">https://www.isc.org/software/bind/advisories/cve-2011-4313</a>

<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4313">http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4313</a>

The latest revision of this advisory is available at
<a href="http://security.FreeBSD.org/advisories/FreeBSD-SA-11:06.bind.asc">http://security.FreeBSD.org/advisories/FreeBSD-SA-11:06.bind.asc</a>
</tt></pre></blockquote>
]]>
    </content>
</entry>

<entry>
    <title>Movable Type config using utf8mb4</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/movable-type-config-using-utf8mb4.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.753</id>

    <published>2011-12-11T09:11:05Z</published>
    <updated>2011-12-24T06:25:32Z</updated>

    <summary>前の記事で書いたとおり、データベースMSを４バイトユニコードが使えるMySQL-...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="Web-CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="アプリケーション" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="movabletype" label="MovableType" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mysql" label="MySQL" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p><a href="/mt/2011/12/upgrading-for-mysql-55.html">前の記事</a>で書いたとおり、データベースMSを４バイトユニコードが使えるMySQL-5.5にグレードアップしたので、続いて、Movable Type 4.29の記事データベースも、キャラクタセットをutf8mb4に変更してみた。</p>
]]>
        <![CDATA[<p>まずは結果だが、「𪗱𪘚」（U+2A5F1,U+2A602）が読めるだろうか。<br />
表示できない環境の方も、<a href="http://deztec.jp/x/05/faireal/09-index.html">こちらのサイト</a>に漢字が画像で示されているので、見比べていただくと良いと思う。「<ruby><rb>齟齬<rp>（<rt>そご<rp>）</ruby>」の異字体である。<br />
４バイトユニコードの文字を Movable Type 4.29 で使えるようにできた。<br />
（ただし、携帯電話からのアクセスでは表示できない。携帯電話用は Shift-JIS に変換しているからである。）</p>

<p>筆者の現在の外部向けサーバ環境は次の通り。</p>
<ul><li>OS: Cent-OS-5.7(x86_64bitCPU)</li>
	<li>ブログツール: Movable Type 4.29</li>
	<li>データベース: MySQL-5.5.18</li></ul>

<p>以下、変更手順を記す。</p>


<p>４バイトユニコードを Movable Type で使う為の手順は、大きく分けて二つである。</p>

<ol><li>MySQL上のblog用データベースのキャラクタセット定義を、utf8 から utf8mb4 に変更すると伴に、照合順序変更、文字項目の長さの調整（短縮）を行う。</li>
	<li>Movable Type の読み出しキャラクタセットの定義を utf8 から utf8mb4 に変更する。</li></ol>

<p>データベースのバックアップを行ったら、設定を変更して行こう。</p>
<br />
<h2><strong>１．blog用データベースのキャラクタセット定義を、utf8 から utf8mb4 に変更する</strong></h2>
<p>ブログ用データベース（ここでは仮に <strong>mt</strong> であるとする）にログインし、記事のテーブル設定を確認する。</p>
<blockquote><samp><pre># <strong>mysql -p mt</strong>
mysql&gt; <strong>SHOW CREATE TABLE mt_entry\G</strong>
*************************** 1. row ***************************
       Table: mt_entry
Create Table: CREATE TABLE `mt_entry` (
  `entry_id` int(11) NOT NULL AUTO_INCREMENT,
  `entry_allow_comments` tinyint(4) DEFAULT NULL,

　　　（中略）

  KEY `mt_entry_dd_entry_tag_count` (`entry_blog_id`,`entry_status`,`entry_class`,`entry_id`),
  KEY `mt_entry_auth_stat_class` (`entry_author_id`,`entry_status`,`entry_class`)
) ENGINE=MyISAM AUTO_INCREMENT=753 DEFAULT CHARSET=utf8
1 row in set (0.00 sec)

mysql&gt; <strong>SHOW TABLE STATUS FROM mt WHERE Name = 'mt_entry'\G</strong>
*************************** 1. row ***************************
           Name: mt_entry
         Engine: MyISAM
        Version: 10
     Row_format: Dynamic
           Rows: 747
 Avg_row_length: 3708
    Data_length: 2770156
Max_data_length: 281474976710655
   Index_length: 260096
      Data_free: 0
 Auto_increment: 753
    Create_time: 2011-12-10 19:34:55
    Update_time: 2011-12-11 16:49:28
     Check_time: 2011-12-11 02:12:01
      Collation: utf8_general_ci
       Checksum: NULL
 Create_options:
        Comment:
1 row in set (0.01 sec)

mysql&gt; </pre></samp>
</blockquote>
<p>上の例では、キャラクタセット utf8、照合順序（Collation）が utf8_general_ci である。</p>
<p>それでは、テーブルの既定（デフォルト）キャラクタセットと照合順序を変更しよう。</p>
<blockquote><samp>
mysql&gt; <strong>ALTER TABLE mt_entry DEFAULT CHARACTER SET utf8mb4, COLLATE utf8mb4_general_ci;</strong><br />
Query OK, 746 rows affected (0.99 sec)<br />
Records: 746  Duplicates: 0  Warnings: 0
</samp></blockquote>

<p>続いて、テーブルmt_entry各項目のキャラクタセットと長さを変更する。</p>
<blockquote><samp>
mysql&gt; <strong>ALTER TABLE mt_entry </strong><br />
    ->     <strong>modify `entry_atom_id` varchar(191) CHARACTER SET utf8mb4 DEFAULT NULL</strong><br />
    ->     <strong>,modify `entry_basename` varchar(191) CHARACTER SET utf8mb4 DEFAULT NULL</strong><br />
    ->     <strong>,modify `entry_class` varchar(191) CHARACTER SET utf8mb4 DEFAULT 'entry'</strong><br />
    ->     <strong>,modify `entry_convert_breaks` varchar(30) CHARACTER SET utf8mb4 DEFAULT NULL</strong><br />
    ->     <strong>,modify `entry_excerpt` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>,modify `entry_keywords` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>,modify `entry_pinged_urls` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>,modify `entry_tangent_cache` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>,modify `entry_text` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>,modify `entry_text_more` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>,modify `entry_title` varchar(191) CHARACTER SET utf8mb4 DEFAULT NULL</strong><br />
    ->     <strong>,modify `entry_to_ping_urls` mediumtext CHARACTER SET utf8mb4</strong><br />
    ->     <strong>;</strong><br />
Query OK, 746 rows affected (0.38 sec)<br />
Records: 746  Duplicates: 0  Warnings: 0
</samp></blockquote>
<p>以上でデータベースの変換は終了である（少々強引だが、utf8からutf8mb4の変更なので、文字項目のコード変換は省略している）。
<blockquote><strong>参考</strong>
<ul>
	<li><a href="http://blog.remora.cx/2010/07/use-non-bmp-characters-in-movabletype.html">【MovableType, MySQL】記事中に BMP 外の文字を使う</a></li>
</ul></blockquote>
<br />
<h2><strong>２．Movable Type のデータベース読み出しキャラクタセット定義を、utf8 から utf8mb4 に変更する</strong></h2>
<p><img src="/mt/mt-static/plugins/InsertIcon/images/danger.gif" class="mt_icon" width="16" height="16" alt="注意" /> 以下の手順は、Movable Type 添付のファイルを強制的に変更するものなので、当然ながら、ベンダーのサポートは期待できない。ファイルに手を入れる前に、オリジナルをバックアップしておくのはもちろんのこと、何をしているのか理解できない人は、やらない方が良いと考える。念の為。</p>
<p>[mt導入ディレクトリ]/lib/MT/ObjectDriver/Driver/DBD/mysql.pm内のデータベース読み出しキャラクタセットの定義を変更する。</p>
<blockquote><p>※これにより、サイトの出力キャラクタセットにUTF-8を指定すると、データベースからは常に utf8mb4 で読み出される。</p>
</blockquote>

<blockquote>【修正個所差分】<br />
<samp><pre>--- ./mysql.pm.orign    2011-06-03 15:14:21.000000000 +0900
+++ ./mysql.pm  2011-12-11 16:42:41.000000000 +0900
@@ -64,7 +64,9 @@
             # MySQL 4.1+ and non-latin1(database) == needs SET NAMES call.
             my $c = lc $cfg->PublishCharset;
             my %Charset = (
-                'utf-8' => 'utf8',
+###  for MySQL-5.5.x utf8mb4 (2011 Dec. 11)
+                'utf-8' => 'utf8mb4',
+#                'utf-8' => 'utf8',
                 'shift_jis' => 'sjis',
                 'shift-jis' => 'sjis',
                 'euc-jp' => 'ujis',</pre></samp>
</blockquote>

<p>以上の変更が終ったら、Webサーバ（Apache等）をリスタートして完了である。</p>
]]>
    </content>
</entry>

<entry>
    <title>MySQL-5.5に更新してみた</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/12/upgrading-for-mysql-55.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.752</id>

    <published>2011-12-03T08:44:30Z</published>
    <updated>2011-12-18T03:21:57Z</updated>

    <summary>私設データベース解析の都合で、今年になってMySQL-5.0.xから解析ツールの...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="CentOS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Web-CGI" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="アプリケーション" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mysql" label="MySQL" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>私設データベース解析の都合で、今年になってMySQL-5.0.xから解析ツールの豊富なMySQL-5.1.xにアップデートしたばかりだったのだが、最新バージョンである<a href="http://dev.mysql.com/doc/refman/5.5/en/mysql-nutshell.html">MySQL-5.5の機能<sub>（英文）</sub></a>に気になるものが追加されていたので、アップグレードすることにした。</p>]]>
        <![CDATA[<p>新機能の概要については<a href="http://dev.mysql.com/doc/refman/5.5/en/mysql-nutshell.html">「MySQL 5.5  Reference Manual :: 1.4 What Is New in MySQL 5.5<sub>（英文）</sub>」</a>に詳細がある。</p>
<p>筆者が興味を持ったのは、その中の、<a href="http://dev.mysql.com/doc/refman/5.5/en/charset-unicode.html">ユニコードサポート</a>の変更である。<br />
MySQL-5.5では、「ucs2」「utf8」「utf16」「utf32」に加えて、新しく「utf8mb4」というキャラクタセットが定義されている。<br />
これは何かというと、４バイトユニコードの文字を使えるということである。
これまでのMySQLでは、３バイトの範囲のユニコードで定義された文字しか、ユニコードの文字としては扱えなかった。<br />
３バイト以下のユニコード文字は、いわゆる基本面に定義されている文字で、具体的には、基本から拡張Ａまでの文字群である。つまり、これまでは、ユニコードで定義した文字項目でも、拡張Ｂ、拡張Ｃの文字を登録しようとすると、文字化けを起こしていたのである。
どうしても拡張Ｂ以降の定義文字を使用したい場合は、項目のキャラクタセットをbinaryにして入出力するなどの工夫が必要だった。<br />
筆者の場合、古文献などの文字をそのままデータベースに使いたい場合が侭あるので、４バイトユニコードが使えるようになるのは有難い。</p>

<p>しかし、utf8mb4は使用可能な文字範囲が増える代わりに、同一文字数で使用する領域が増えるので、例えば、MyISAMのデータベースにおける１行（１レコード）の最大領域は65535バイト<sub>（<a href="http://dev.mysql.com/doc/refman/5.5/en/column-count-limit.html">E.10.4. Table Column-Count and Row-Size Limits</a>）</sub>なので、１文字当り従来型キャラクタセットで３バイトだったものが、４バイトに変われば、当然のことながら、１レコードで扱える最大文字数は少なくなる。</p>

<p>その他にもレプリケーション関連など、かなり大胆に機能強化を図ったようだが、反面、使用する資源も相当増えていると思われるし、機能によっては動作速度の低下も覚悟しておかないといけない。そういったメリット・デメリットを比較して、MySQL-5.5に移行するかどうかを考えればいいと思う。いずれは新しいバージョンに移行せざるを得ない時が来るのだが、慌てる必要は無いのである。</p>

<p>注意すべき点を一つ挙げれば、MySQL-5.5では、既定データベースエンジンがInnoDBになった。
筆者の様な日曜プログラマ的な使用では、トランザクションを必要とする程のシステムはいらないので、ちょっと余計なお世話に感じる。筆者としては、MySQLでトランザクション機能を使うというのは「無理な方向の使い方」に思えて仕方ないのだが、今回の機能変更などを見ると、Oracleは必ずしもそうは考えていないような印象で、むしろ、このまま肥大化の道をたどりそうな気配も感じる。</p>


<p>さて、実際に導入する手順を記しておく。</p>
<p>筆者が現在使用しているサーバは、FreeBSD-7-STABLEとCentOS-5.7の２種類のＯＳを使用しているので、それぞれについて記述する。</p>


<h2><strong>１．共通</strong></h2>
作業前の基本、バックアップを行う。
<blockquote><samp># <strong>mysqldump -p --all-databases > ./all-data_20111203.sql</strong><br />
<br />
# <strong>cp -p /etc/my.cnf /etc/my.cnf_20111203_old</strong></samp>
</blockquote>
<br />
<a href="http://dev.mysql.com/downloads/mysql/#downloads">http://dev.mysql.com/downloads/mysql/#downloads</a>から該当するOS用のMySQL-5.5最新パッケージを取得する。
<blockquote>※1 FreeBSDのportsを介して導入する場合は不要。</blockquote>
<blockquote>※2 CentOSの場合は、次のrpmパッケージを取得する（i86マシン＋64bit OSの場合）。
<ul>
	<li>MySQL-server-5.5.18-1.linux2.6.x86_64.rpm</li>
	<li>MySQL-client-5.5.18-1.linux2.6.x86_64.rpm</li>
	<li>MySQL-devel-5.5.18-1.linux2.6.x86_64.rpm</li>
	<li>MySQL-shared-compat-5.5.18-1.linux2.6.x86_64.rpm</li>
</ul>
<ins datetime="2011-12-04T09:47:00+09:00">※※ remiリポジトリを使ってyumで導入する方法もある。<sub>（参照: <a href="http://www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/">Install MySQL 5.5.18 on Fedora 16/15, CentOS/Red Hat (RHEL) 6/5.7</a>）</sub></ins></blockquote>
<br />
オプションファイル(/etc/my.cnf)の一部修正を行う。
<blockquote>次のオプション指定行はコメントアウトする（下線行を追加した）。
<blockquote><samp>[mysqld]<br />
<ins datetime="2011-12-10T21:30:00+09:00"><strong>character-set-server=utf8mb4</strong><br /></ins>
<strong>#</strong>default-character-set=utf8<br />
<ins datetime="2011-12-17T17:27:30+09:00"><strong>collation-server=utf8mb4_general_ci</strong><br /></ins>
<strong>#</strong>collation-server=utf8_general_ci<br />
<strong>#</strong>log-long-format
</samp>
</blockquote></blockquote>
<br />

<h2><strong>２．CentOS-5.7</strong></h2>
データベースを停止する。
<blockquote><samp># <strong>/etc/rc.d/init.d/mysqld stop</strong><br />
</samp>
</blockquote>
<br />
既存データベースの関連ファイル群を削除する。
<blockquote><samp># <strong>yum remove mysql-server.x86_64 mysql-devel.x86_64 </strong><br />
</samp>
<blockquote><img src="/mt/mt-static/plugins/InsertIcon/images/danger.gif" class="mt_icon" width="16" height="16" alt="注意" />perl-DBD-MySQL.x86_64などのMySQLドライバが共連れで削除されてしまった場合は、新データベース導入時にあらためて導入し直すこと。</blockquote>
</blockquote>
<br />
新しいデータベースを導入する。
<blockquote><samp># <strong>rpm -ivh MySQL-server-5.5.18-1.linux2.6.x86_64.rpm MySQL-client-5.5.18-1.linux2.6.x86_64.rpm MySQL-devel-5.5.18-1.linux2.6.x86_64.rpm MySQL-shared-compat-5.5.18-1.linux2.6.x86_64.rpm </strong><br />
</samp>
</blockquote>
<br />
データベースドライバ（<a href="http://rpm.pbone.net/index.php3/stat/4/idpl/16385328/dir/redhat_el_5/com/perl-DBD-MySQL-4.014-1.el5.rfx.x86_64.rpm.html">perl-DBD-MySQL-4.014-1.el5.rfx.x86_64.rpm</a>）を導入する。
<blockquote><samp># <strong>yum localinstall perl-DBD-MySQL-4.014-1.el5.rfx.x86_64.rpm </strong><br />
</samp>
</blockquote>
<br />
データベースを起動する。
<blockquote><samp># <strong>/etc/rc.d/init.d/mysql start</strong><br />
</samp>
<blockquote><img src="/mt/mt-static/plugins/InsertIcon/images/danger.gif" class="mt_icon" width="16" height="16" alt="注意" />Oracle提供のrpmパッケージの場合、起動ファイルがCentOSのbaseリポジトリ配布版と異なる名前（<strong>/etc/rc.d/initd/mysql</strong>）で作成されるので、必要に応じて、名前を変更するなどの対応を行う。<br />
<ins datetime="2011-12-04T09:47:00+09:00">Oracleのrpmパッケージでは、導入時に自動起動設定が削除されるので、あらためて自動設定を行う必要がある。
<blockquote><samp># <strong>/sbin/chkconfig --add mysql</strong><br />
# <strong>/sbin/chkconfig mysql on</strong><br />
# <strong>/sbin/chkconfig --list mysql</strong><br />
mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off</samp></blockquote>
</blockquote></ins>
</blockquote>
<br />


<h2><strong>３．FreeBSD-7-STABLE</strong></h2>
/usr/local/etc/pkg_tools.confにビルドオプションを追記（<strong>太字</strong>部）する。
<blockquote><samp>
  MAKE_ARGS = {<br />
        'databases/mysql41-client' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        'databases/mysql41-server' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        'databases/mysql50-client' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        'databases/mysql50-server' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        'databases/mysql51-client' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        'databases/mysql51-server' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        <strong>'databases/mysql55-client' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',<br />
        'databases/mysql55-server' => 'WITH_CHARSET=ujis WITH_XCHARSET=all',</strong><br />
        'editors/openoffice.org-2' => 'LOCALIZED_LANG=alllangs',<br />
        '*' => 'WITHOUT_IPV6=yes',<br />
  }
</samp>
</blockquote>
<br />

データベースを停止する。
<blockquote><samp># <strong>/usr/local/etc/rc.d/mysql-server stop</strong><br />
</samp>
</blockquote>
<br />

旧バージョンのMySQL関連モジュールをportsシステムを介して削除する。
<blockquote><samp># <strong>pkg_deinstall -fv mysql-client-5.1.60 mysql-server-5.1.60 p5-DBD-mysql51-4.019</strong><br />
</samp>
</blockquote>
<br />

新バージョンのMySQL関連モジュールをportsシステムを介して導入する。
<blockquote><samp># <strong>portinstall -vp databases/mysql55-server databases/p5-DBD-mysql55</strong><br />
</samp>
</blockquote>
<br />

データベースを起動する。
<blockquote><samp># <strong>/usr/local/etc/rc.d/mysql-server start</strong><br />
</samp>
</blockquote>
<br />

<h2><strong>４．共通</strong></h2>
<a href="http://dev.mysql.com/doc/refman/5.5/en/mysql-upgrade.html">mysql_upgrade</a>でテーブルフォーマットのアップグレードを行う。
<blockquote><samp># <strong>mysql_upgrade -p</strong><br />
Enter password: <pre>
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
Running 'mysqlcheck with default connection arguments
books.booklist
error    : Table upgrade required. Please do "REPAIR TABLE `booklist`" or dump/reload to fix it!
epco_advisory.Company
error    : Table upgrade required. Please do "REPAIR TABLE `Company`" or dump/reload to fix it!
events.Event                                       OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category
error    : Table upgrade required. Please do "REPAIR TABLE `help_category`" or dump/reload to fix it!
mysql.help_keyword
error    : Table upgrade required. Please do "REPAIR TABLE `help_keyword`" or dump/reload to fix it!
mysql.help_relation                                OK
mysql.help_topic
error    : Table upgrade required. Please do "REPAIR TABLE `help_topic`" or dump/reload to fix it!
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc
error    : Table upgrade required. Please do "REPAIR TABLE `proc`" or dump/reload to fix it!
mysql.procs_priv                                   OK
mysql.servers                                      OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name
error    : Table upgrade required. Please do "REPAIR TABLE `time_zone_name`" or dump/reload to fix it!
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
test.userpref                                      OK
test_inno.data                                     OK

Repairing tables
books.booklist                                     OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_topic                                   OK
mysql.proc                                         OK
mysql.time_zone_name                               OK
Running 'mysql_fix_privilege_tables'...
OK
# </pre></samp>
</blockquote>
<br />
<p>apache等、MySQLを参照するアプリケーション動作させている場合は、それぞれをリスタートさせる。</p>
<br />
<h2><strong>５．プログラム中SQLの一部修正</strong></h2>
<p>テーブルロックを行っている場合で、プログラム中でviewを参照している時、LOCK TABLESにviewの定義も加えないと、実行時エラーになるようである。</p>
<ins datetime="2011-12-04T10:11:30+09:00"><p>また、筆者の環境の一つ（Oracle版rpmパッケージ）では、クライアント側のキャラクタ設定コマンド<samp>SET NAMES eucjpms</samp>を、<samp>SET NAMES ujis</samp>に変更しなければならなかった。<br />
これはビルドオプションの関係で、eucjpmsが組み込まれずに構築された為と考えられる。キャラクタセットの定義上、<samp>eucjpms</samp>は変らず存在する<sub>（参照: <a href="http://dev.mysql.com/doc/refman/5.5/en/charset-charsets.html">9.1.14. Character Sets and Collations That MySQL Supports</a>）</sub>。<br />
MySQLにログインした後、次の様にすると、その環境で使用可能なキャラクタセットが確認できる。
<blockquote><samp>mysql&gt; <strong>SHOW CHARACTER SET;</strong>
</samp></blockquote>
</p></ins>

<ins datetime="2011-12-04T11:15:30+09:00"><blockquote>（12月５日追記）
<p>と、書いておきながら、調べてみると、Oracle版パッケージでも、ちゃんとeucjpmsは組み込まれていた。<img src="/mt/mt-static/plugins/InsertIcon/images/coldsweats01.gif" class="mt_icon" width="16" height="16" alt="汗" /><br />
してみると、Perl-DBD-mysqlドライバ辺りが原因かもしれない。</p></blockquote></ins>
<ins datetime="2011-12-11T00:10:00+09:00"><blockquote>（12月11日追記）
<p><a href="http://rpm.pbone.net/index.php3/stat/4/idpl/16385328/dir/redhat_el_5/com/perl-DBD-MySQL-4.014-1.el5.rfx.x86_64.rpm.html">perl-DBD-MySQL-4.014-1.el5.rfx.x86_64.rpm</a>を導入した所、eucjpmsの障害は解消した。やはり、ドライバが古いせいだった様である。<br />
ソースからビルドしたい方は<a href="http://www.lovebug.jp/index.php?Perl%2FDBD-MySQL%2F4.013%A4%CE%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB">こちらのサイト</a>を参考にされたい。</p></blockquote></ins>

<p>データベースをアップグレードした直後にCGIがエラーになった場合は、上記の点を確認して欲しい。</p>
]]>
    </content>
</entry>

<entry>
    <title>お、地震だ</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/11/post-461.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.750</id>

    <published>2011-11-08T03:34:15Z</published>
    <updated>2011-11-08T03:38:12Z</updated>

    <summary>スーパーでレジ待ちをしていたら、あちこちからカタカタという音がし出して、次第に大...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="生活" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="地震" label="地震" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>スーパーでレジ待ちをしていたら、あちこちからカタカタという音がし出して、次第に大きな揺れとなった。<br />
沖縄で震度４クラスの地震と遭遇するのは珍しい。<br />
<script type="text/javascript" charset="utf-8" src="http://tenki.jp/blog/script/paste/earthquake/?id=8844"></script></p>

<p>揺れが長く続いたので、那覇市からは比較的遠い震源なのだろうと考えたが、沖縄本島北西沖（北緯27.2度東経125.8度）深さ220km、推定M6.8だったようである。<br />
幸い、津波注意報は出なかった。<br />
震度４でこれだから、東日本大震災や阪神淡路の際の震度７なんてのは、さぞかし強烈なのだろう。願わくは遭遇したくないものだが、、叶うかどうかは運次第である。<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>20世紀FOX『はやぶさ/HAYABUSA』</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/10/20foxhayabusa.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.749</id>

    <published>2011-10-15T06:07:06Z</published>
    <updated>2011-10-15T07:32:02Z</updated>

    <summary>昨日、空いた時間に、20世紀FOX制作の『はやぶさ/HAYABUSA』を観てきた...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="映画" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="宇宙" label="宇宙" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>昨日、空いた時間に、20世紀FOX制作の<a href="http://ja.wikipedia.org/wiki/%E3%81%AF%E3%82%84%E3%81%B6%E3%81%95/HAYABUSA">『はやぶさ/HAYABUSA』</a>を観てきた。<br />
映画館で映画を観たのは久しぶりの事である。</p>]]>
        <![CDATA[<p>竹内結子演じる主人公水沢恵以外は、実在の人物をモデルにして名前を変えただけで、ドキュメンタリー映画のようなものだった。<br />
強いて例えれば、140分の「ＮＨＫスペシャル」の様な感じといえば、伝わるだろうか。</p>

<p>科学番組としてみれば、工学実験機「はやぶさ」に到るまでのわが国のロケット開発の歴史から、今回の意義、プロジェクトの始まりと、その運営の苦労など、網羅的に詰め込まれていて、なかなかいい出来だった様に思う。140分が長くは感じなかった。</p>

<p>筆者は、前にも書いたと思うが、「はやぶさ」が通信途絶した時点で、ああ、今回は失敗か、と思って関心を失った程度の興味しか持っていなかった。<br />
しかし、その後、奇跡的に通信を回復、つまり、この広大な宇宙空間の中から点の様な「はやぶさ」を探し出したと聞いたときから、俄然、このプロジェクトに興味が湧いた口である。<br />
そして、昨年６月13日22時51分、「おかえり、はやぶさ」とつぶやいたであろう多くの人の一人であった。</p>

<p>今回の映画でちょっと残念だったのは、最も感動的な場面である筈の帰還の時に、盛り上がりに欠けていたように感じたことである（いや、画面では複数の関係者が涙でその瞬間を迎えていたのだが）。<br />
何でだろうと、つらつら考えてみたのだが、一つだけ思い当たる点があった。</p>

<p>「はやぶさ」は、もともとは、地球上空に帰還して再突入カプセルを分離した後待機し、その後、別の探査に向かわせる計画だったのだ。<br />
古くから「はやぶさ」動向を追っている人にとって、それは周知の事実である。<br />
しかし、トラブルに次ぐトラブルで、地球付近で軌道変更を実現するための大推力を得られる化学スラスタが使用不能になったことで、再突入カプセルを地球に届けるためには、「はやぶさ」本体をも大気圏に突入させざるを得なくなったのだ。</p>

<p>その辺りの経緯は、川口プロジェクトマネージャの「<a href="http://hayabusa.jaxa.jp/message/message_001.html">「はやぶさ」、そうまでして君は。</a>」内で簡単に触れられている。<br />
スタッフの多くは、長い宇宙の旅路の果てに帰還してきた機体を、科学的な意味からも心情的な意味からも、何とかして残したかったのだが、サンプルリターンという大目標の為に、機体焼失による運用終了という道を選んだのである。<br />
その悔しさ、哀しさがあの再突入時のスタッフの涙に繋がっていると筆者は理解しているのだが、作品の中では、計画変更によって機体が大気圏に突入したことは触れられていない。最初からの予定だったように見えてしまうのである。計画通りだったら、スタッフはあんなに泣かないだろうと思うのだ。</p>

<p>「はやぶさ」関連の映画は、あと２本が製作中である。<br />
<ul><li>東映: <a href="http://www.hayabusa2012.jp/">『はやぶさ　遥かなる帰還』</a>2012年２月11日公開予定。瀧本智行監督、渡辺謙主演。</li><li>松竹:<a href="http://hayabusa3d.jp/"> 『おかえり、はやぶさ』</a>2012年３月10日公開予定。本木克英監督、藤原竜也主演。</li></ul><br />
他の作品ではどの様に描かれるのか、楽しみである。<br />
</p>]]>
    </content>
</entry>

<entry>
    <title>FreeBSD セキュリティ勧告 FreeBSD-SA-11:05.unix</title>
    <link rel="alternate" type="text/html" href="http://www.sanshouo.com/mt/2011/10/freebsd-sa-1105unix.html" />
    <id>tag:www.sanshouo.com,2011:/mt//1.748</id>

    <published>2011-10-08T00:33:03Z</published>
    <updated>2011-10-08T01:07:26Z</updated>

    <summary>９月28日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。 10...</summary>
    <author>
        <name>山椒魚</name>
        <uri>http://www.kattch.com/~kattch/</uri>
    </author>
    
        <category term="FreeBSD" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="セキュリティ勧告" label="セキュリティ勧告" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://www.sanshouo.com/mt/">
        <![CDATA[<p>９月28日付で、FreeBSDコミュニティからセキュリティ勧告が出ました。</p>
<blockquote><img src="/mt/mt-static/plugins/InsertIcon/images/danger.gif" class="mt_icon" width="16" height="16" alt="注意" /><strong>10月４日付で<font color="red">追加修正</font></strong>がありました。</blockquote>
<p>対象は FreeBSD 7.x, 8.x, 9.0 系です。</p>
<p>（続きに周知メールを転載）</p>]]>
        <![CDATA[<blockquote><pre>Content-Type:
text/plain; charset=ISO-2022-JP

=============================================================================
FreeBSD-SA-11:05.unix                                       Security Advisory
                                                          The FreeBSD Project

Topic:          Buffer overflow in handling of UNIX socket addresses

Category:       core
Module:         kern
Announced:      2011-09-28
Credits:        Mateusz Guzik
Affects:        All supported versions of FreeBSD.
Corrected:      2011-10-04 19:07:38 UTC (RELENG_7, 7.4-STABLE)
                2011-10-04 19:07:38 UTC (RELENG_7_4, 7.4-RELEASE-p4)
                2011-10-04 19:07:38 UTC (RELENG_7_3, 7.3-RELEASE-p8)
                2011-10-04 19:07:38 UTC (RELENG_8, 8.2-STABLE)
                2011-10-04 19:07:38 UTC (RELENG_8_2, 8.2-RELEASE-p4)
                2011-10-04 19:07:38 UTC (RELENG_8_1, 8.1-RELEASE-p6)
                2011-10-04 19:07:38 UTC (RELENG_9, 9.0-RC1)

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit <URL:http://security.FreeBSD.org/>.

0.   Revision History

v1.0  2011-09-28 Initial release.
v1.1  2011-10-04 Updated patch to add linux emulation bug fix.

I.   Background

UNIX-domain sockets, also known as "local" sockets, are a mechanism for
interprocess communication.  They are similar to Internet sockets (and
utilize the same system calls) but instead of relying on IP addresses
and port numbers, UNIX-domain sockets have addresses in the local file
system address space.

FreeBSD contains "linux emulation" support via system call translation
in order to make it possible to use certain linux applications without
recompilation.

II.  Problem Description

When a UNIX-domain socket is attached to a location using the bind(2)
system call, the length of the provided path is not validated.  Later,
when this address was returned via other system calls, it is copied into
a fixed-length buffer.

Linux uses a larger socket address structure for UNIX-domain sockets
than FreeBSD, and the FreeBSD's linux emulation code did not translate
UNIX-domain socket addresses into the correct size of structure.

III. Impact

A local user can cause the FreeBSD kernel to panic.  It may also be
possible to execute code with elevated privileges ("gain root"), escape
from a jail, or to bypass security mechanisms in other ways.

The patch provided with the initial version of this advisory exposed
the pre-existing bug in FreeBSD's linux emulation code, resulting in
attempts to use UNIX sockets from linux applications failing.  The most
common instance where UNIX sockets were used by linux applications is
in the context of the X windowing system, including the widely used
linux "flash" web browser plugin.

IV.  Workaround

No workaround is available, but systems without untrusted local users
are not vulnerable.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 7-STABLE or 8-STABLE, or to
the RELENG_8_2, RELENG_8_1, RELENG_7_4, or RELENG_7_3 security
branch dated after the correction date.

2) To update your vulnerable system via a source code patch:

The following patch has been verified to apply to FreeBSD 7.4, 7.3,
8.2 and 8.1 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch http://security.FreeBSD.org/patches/SA-11:05/unix2.patch
# fetch http://security.FreeBSD.org/patches/SA-11:05/unix2.patch.asc

NOTE: The patch distributed at the time of the original advisory fixed
the security vulnerability but exposed the pre-existing bug in the linux
emulation subsystem.  Systems to which the original patch was applied
should be patched with the following corrective patch, which contains
only the additional changes required to fix the newly-exposed linux
emulation bug:

# fetch http://security.FreeBSD.org/patches/SA-11:05/unix-linux.patch
# fetch http://security.FreeBSD.org/patches/SA-11:05/unix-linux.patch.asc

b) Apply the patch.

# cd /usr/src
# patch &lt; /path/to/patch

c) Recompile your kernel as described in
<a href="http://www.FreeBSD.org/handbook/kernelconfig.html">&lt;URL:http://www.FreeBSD.org/handbook/kernelconfig.html&gt;</a> and reboot the
system.

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 7.3-RELEASE, 8.2-RELEASE, or 8.1-RELEASE on
the i386 or amd64 platforms can be updated via the freebsd-update(8)
utility:

# freebsd-update fetch
# freebsd-update install

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

CVS:

Branch                                                           Revision
  Path
-------------------------------------------------------------------------
RELENG_7
  src/sys/kern/uipc_usrreq.c                                   1.206.2.13
  src/sys/compat/linux/linux_socket.c                           1.74.2.15
RELENG_7_4
  src/UPDATING                                             1.507.2.36.2.5
  src/sys/conf/newvers.sh                                   1.72.2.18.2.8
  src/sys/kern/uipc_usrreq.c                               1.206.2.11.4.2
  src/sys/compat/linux/linux_socket.c                       1.74.2.13.2.2
RELENG_7_3
  src/UPDATING                                             1.507.2.34.2.9
  src/sys/conf/newvers.sh                                  1.72.2.16.2.11
  src/sys/kern/uipc_usrreq.c                               1.206.2.11.2.2
  src/sys/compat/linux/linux_socket.c                       1.74.2.12.2.2
RELENG_8
  src/sys/kern/uipc_usrreq.c                                    1.233.2.6
  src/sys/compat/linux/linux_socket.c                           1.101.2.5
RELENG_8_2
  src/UPDATING                                             1.632.2.19.2.5
  src/sys/conf/newvers.sh                                   1.83.2.12.2.8
  src/sys/kern/uipc_usrreq.c                                1.233.2.2.2.2
  src/sys/compat/linux/linux_socket.c                       1.101.2.3.4.2
RELENG_8_1
  src/UPDATING                                             1.632.2.14.2.8
  src/sys/conf/newvers.sh                                   1.83.2.10.2.9
  src/sys/kern/uipc_usrreq.c                                1.233.2.1.4.2
  src/sys/compat/linux/linux_socket.c                       1.101.2.3.2.2
RELENG_9
  src/sys/kern/uipc_usrreq.c                                    1.244.2.2
  src/sys/compat/linux/linux_socket.c                           1.108.2.2
-------------------------------------------------------------------------

Subversion:

Branch/path                                                      Revision
-------------------------------------------------------------------------
stable/7/                                                         r226023
releng/7.4/                                                       r226023
releng/7.3/                                                       r226023
stable/8/                                                         r226023
releng/8.2/                                                       r226023
releng/8.1/                                                       r226023
stable/9/                                                         r226023
-------------------------------------------------------------------------

The latest revision of this advisory is available at
<a href="http://security.FreeBSD.org/advisories/FreeBSD-SA-11:05.unix.asc">http://security.FreeBSD.org/advisories/FreeBSD-SA-11:05.unix.asc</a>
</tt></pre></blockquote>]]>
    </content>
</entry>

</feed>

