{"id":903,"date":"2016-01-08T01:15:09","date_gmt":"2016-01-07T16:15:09","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=903"},"modified":"2016-01-08T01:15:09","modified_gmt":"2016-01-07T16:15:09","slug":"clam-antivirus%e3%81%ae%e8%aa%bf%e6%95%b4","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=903","title":{"rendered":"Clam AntiVirus\u306e\u8abf\u6574"},"content":{"rendered":"<p>Clam AntiVirus\u304c\u5168\u304f\u52d5\u3044\u3066\u306a\u3044\u306e\u3092\u767a\u898b\u3057\u305f\u3002<\/p>\n<p>\u306a\u3093\u304b\u3000\u6700\u8fd1\u306e\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u306f\u3044\u3044\u52a0\u6e1b\u3060\u306a\u3041\u3000\u3053\u3093\u306a\u3093\u3067\u826f\u3044\u306e\u304b\uff1f<\/p>\n<p><!--more--><\/p>\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u3053\u3093\u306a\u611f\u3058<br \/>\n[code]<br \/>\nClamd was NOT notified: Can&#8217;t connect to clamd through \/var\/run\/clamav\/clamd.sock: No such file or directory<br \/>\n[\/code]<\/p>\n<p>clamd.sock\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308c\u306a\u3044\u3089\u3057\u3044\u3002\u8272\u3005\u8abf\u3079\u3066\u5bfe\u7b56\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u307e\u305a\u306f\u3000\/var\/run\/clamav\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u3001\u66f4\u306b\u4ed6\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u540c\u3058SElinux\u306e\u5c5e\u6027\u3092\u5408\u308f\u305b\u3066\u3084\u308b\u3002<br \/>\n[code]<br \/>\n[]# cd \/var\/run<br \/>\n[]# mkdir clamav<br \/>\n[]# chcon -u  system_u .\/clamav<br \/>\n[\/code]<\/p>\n<p>\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3067SElinux\u3092\u7121\u52b9\u306b\u3059\u308b\u3068clamd.sock\u306f\u4f5c\u6210\u3067\u304d\u308b\u304c\u3000SElinux\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u4f5c\u6210\u3067\u304d\u306a\u3044\u3002\u3000\u305d\u3053\u3067SElinux\u3092\u6709\u52b9\u306b\u3057\u305f\u72b6\u614b\u3067\u3000clamd.sock\u3092\u4f5c\u6210\u3067\u304d\u308b\u69d8\u306b\u8abf\u6574\u3057\u3066\u3084\u308b\u3002\u4ee5\u4e0b\u306e\u64cd\u4f5c\u3067\u3000clamd.pp\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002\u3000SElinux\u306e\u8a2d\u5b9a\u5c02\u7528\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u3000\u305d\u306e\u4e2d\u3067\u4f5c\u696d\u3057\u305f\u65b9\u304c\u826f\u3044\u3002<\/p>\n<p>[code]<br \/>\nsetenforce 0<br \/>\naudit2allow -i \/var\/log\/audit\/audit.log<br \/>\naudit2allow -i \/var\/log\/audit\/audit.log -m clamd<br \/>\naudit2allow -i \/var\/log\/audit\/audit.log -l -M clamd<br \/>\nsemodule -i clamd.pp<br \/>\nsetenforce 1<br \/>\n[\/code]<\/p>\n<p>\u53c2\u8003URL\uff1a\u3000<a href=\"http:\/\/blog.goo.ne.jp\/arimuratadao\/e\/3c74888decf5ae085296ea6e2034b6cd\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/blog.goo.ne.jp\/arimuratadao\/e\/3c74888decf5ae085296ea6e2034b6cd<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clam AntiVirus\u304c\u5168\u304f\u52d5\u3044\u3066\u306a\u3044\u306e\u3092\u767a\u898b\u3057\u305f\u3002 \u306a\u3093\u304b\u3000\u6700\u8fd1\u306e\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u306f\u3044\u3044\u52a0\u6e1b\u3060\u306a\u3041\u3000\u3053\u3093\u306a\u3093\u3067\u826f\u3044\u306e\u304b\uff1f<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[3,4,5,21],"tags":[],"class_list":["post-903","post","type-post","status-publish","format-standard","hentry","category-centos-setup","category-centos7","category-darkgray-server","category-selinux"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=903"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/903\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}