2014年8月13日水曜日

SELinux モジュールの中身を確認する

Serverfault 経由

How do I view the contents of a SELinux policy package
http://serverfault.com/questions/321301/how-do-i-view-the-contents-of-a-selinux-policy-package


postgreylocal.mod から、postgreylocal.pp を取り出す。

semodule_unpackage postgreylocal.pp postgreylocal.mod

semodule_unpackage はここにある。

postgreylocal.pp から ルールを取り出す。

dismod postgreylocal.pp

dismod はここにある。

本来は、checkpolicy 等のテスト用らしい。