CentOSでSELinuxの修復
SELinux無効時にyumでインストールしたせいか
% sudo /etc/init.d/iptables restart ファイアウォールルールを適用中: [ OK ] チェインポリシーを ACCEPT に設定中filter [ OK ] iptables モジュールを取り外し中 [ OK ] iptables ファイアウォールルールを適用中: iptables-restore v1.3.5: iptables-restore: unable to initializetable 'filter' Error occurred at line: 3 Try `iptables-restore -h' or 'iptables-restore --help' for more information. [失敗]
と言われる
audit.logをみるとSELinuxのせいみたいで
Permissiveにすると問題なくrestartできる
messagesをみるとntpもコケているみたいで
めんどうくさいなと思ったので
% sudo /sbin/fixfiles restore /sbin/setfiles: labeling files under / ******************************************************************************* ************************************************************ matchpathcon_filespec_eval: hash table stats: 135155 elements, 35173/65536 buckets used,longest chain length 22 /sbin/setfiles: labeling files under /var **matchpathcon_filespec_eval: hash table stats: 2044 elements, 1336/65536 buckets used, longest chain length 4 /sbin/setfiles: labeling files under /boot matchpathcon_filespec_eval: hash table stats: 26 elements, 26/65536 buckets used, longest chain length 1 /sbin/setfiles: Done.
としたらなおった