From henrich @ debian.or.jp Wed Feb 27 11:47:03 2013 From: henrich @ debian.or.jp (Hideki Yamane) Date: Wed, 27 Feb 2013 11:47:03 +0900 Subject: [Tomoyo-dev 1318] 2.5.0-20130214 with clang Message-ID: <20130227114703.33c796d408d02c8450d340ba@debian.or.jp>  やまねです。  clang で 2.5.0-20130214 をビルドしたら以下の warning がでてました。 > editpolicy_offline.c:2885:24: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] > memset(ptr, 0, sizeof(ptr)); > ~~~ ^~~ > editpolicy_offline.c:4791:30: warning: too few arguments in call to 'ccs_editpolicy_offline_init' > ccs_editpolicy_offline_init(); > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ > 2 warnings generated. -- Regards, Hideki Yamane henrich @ debian.or.jp/org http://wiki.debian.org/HidekiYamane From from-tomoyo-dev @ I-love.SAKURA.ne.jp Wed Feb 27 20:59:42 2013 From: from-tomoyo-dev @ I-love.SAKURA.ne.jp (Tetsuo Handa) Date: Wed, 27 Feb 2013 20:59:42 +0900 Subject: [Tomoyo-dev 1319] Re: 2.5.0-20130214 with clang In-Reply-To: <20130227114703.33c796d408d02c8450d340ba@debian.or.jp> References: <20130227114703.33c796d408d02c8450d340ba@debian.or.jp> Message-ID: <201302272059.IBF26065.PUWNNPtEPtZSFGP@I-love.SAKURA.ne.jp>  熊猫です。 Hideki Yamane さんは書きました: > >  やまねです。 >  clang で 2.5.0-20130214 をビルドしたら以下の warning がでてました。 > > > editpolicy_offline.c:2885:24: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] > > memset(ptr, 0, sizeof(ptr)); > > ~~~ ^~~ 上記はバグですが、呼び出し側でもゼロクリアしているので、影響は無い筈です。 http://sourceforge.jp/projects/tomoyo/scm/svn/commits/5932 での修正漏れですね。 > > editpolicy_offline.c:4791:30: warning: too few arguments in call to 'ccs_editpolicy_offline_init' > > ccs_editpolicy_offline_init(); > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ > > 2 warnings generated. おやまぁ、こんな typo が残ったままでよくコンパイルが通ったものです。(苦笑) 報告ありがとうございます。どちらも Revision 6207 で修正しました。 http://sourceforge.jp/projects/tomoyo/scm/svn/commits/6207 # 何故か知らないけれど https://access.redhat.com/knowledge/solutions/290593 に # AppArmor と TOMOYO の名前が出ています。 SELinux 一本の Red Hat 社が、わざわざ # 他の LSM モジュール提供者向けに注意喚起用コードを追加するとは、ビックリです。 # しかし、「再コンパイルするだけでもサポート対象外になるカーネル」に対して、 # 「ソースコードに修正を加えるよう促している」のは、「誰向けの注意喚起?」って # 気がしなくもないのですが。