[Tomoyo-dev 1171] Re: プロファイルの指定方法の変更について

Back to archive index

from-****@i-lov***** from-****@i-lov*****
2009年 8月 27日 (木) 11:31:53 JST


 熊猫です。

> なぜか、上記のドメインでは disabled なのに「環境変数だけ」学習されてしまいます。
ありがとうございます。
r.profile に遷移前のドメインのプロファイル番号が入っていたためです。
遷移先ドメイン( r.domain に入っている)でのプロファイル番号を使って
モードを取得する必要がありますね。

Index: domain.c
===================================================================
--- domain.c    (revision 2959)
+++ domain.c    (working copy)
@@ -1267,7 +1267,7 @@
  ok:
        if (retval < 0)
                goto out;
-       ee->r.mode = ccs_get_mode(ee->r.profile, CCS_MAC_ENVIRON);
+       ee->r.mode = ccs_get_mode(ee->r.domain->profile, CCS_MAC_ENVIRON);
        retval = ccs_environ(ee);
        if (retval < 0)
                goto out;




tomoyo-dev メーリングリストの案内
Back to archive index