{"id":2076,"date":"2018-05-30T23:12:05","date_gmt":"2018-05-30T14:12:05","guid":{"rendered":"https:\/\/pandanote.info\/?p=2076"},"modified":"2018-12-01T13:18:57","modified_gmt":"2018-12-01T04:18:57","slug":"%e6%9c%ac%e3%82%b5%e3%83%bc%e3%83%90%e3%82%92%e3%81%93%e3%81%a3%e3%81%9d%e3%82%8afedora-26%e3%81%8b%e3%82%8927%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89%e3%81%97%e3%81%a6","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=2076","title":{"rendered":"\u672c\u30b5\u30fc\u30d0\u3092\u3053\u3063\u305d\u308aFedora 26\u304b\u308927\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u4e0d\u5177\u5408\u304c\u51fa\u305f\u306e\u3067\u3001\u4fee\u6b63\u3057\u305f\u4ef6\u3002"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>NUC(<a href=\"https:\/\/amzn.to\/2IS7J2D\">NUC7i5BNH<\/a>)\u3092\u8cfc\u5165\u3057\u3066\u304b\u3089\u3068\u3044\u3046\u3082\u306e\u306e\u3001\u305d\u3061\u3089\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u4f5c\u696d\u3084\u5ec3\u68c4\u4e88\u5b9a\u306ePC\u304b\u3089\u5225\u306ePC\u3078\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u7389\u7a81\u304d\u79fb\u8ee2\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u308a\u3001\u52d5\u753b\u306e\u30cd\u30bf\u304c\u5927\u91cf\u306b\u8972\u3044\u304b\u304b\u3063\u3066\u304d\u3066\u3001\u305d\u306e\u7de8\u96c6\u306b\u8ffd\u308f\u308c\u305f\u308a\u3001\u672c\u696d\u304c\u6025\u306b\u3044\u305d\u304c\u3057\u304f\u306a\u3063\u305f\u308a\u3067\u3001\u3053\u306eWordpress\u304c\u53ef\u52d5\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0(\u4ee5\u4e0b\u3001\u300c\u672c\u30b5\u30fc\u30d0\u300d\u3068\u66f8\u304d\u307e\u3059\u3002)\u306e(OS\u3082\u542b\u3081\u305f)\u30a4\u30f3\u30d5\u30e9\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u304a\u308d\u305d\u304b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3093\u306a\u4e2d\u3001\u672c\u30b5\u30fc\u30d0\u306eOS\u3092\u9045\u308c\u3070\u305b\u306a\u304c\u3089Fedora 26\u304b\u308927\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u5f8c2\u65e5\u307b\u3069\u52d5\u304b\u3057\u3066\u307f\u305f\u611f\u3058\u3067\u306f\u4e00\u898b\u554f\u984c\u306a\u3055\u3052\u306b\u898b\u3048\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u5927\u304d\u3081\u306e\u554f\u984c\u304c\u51fa\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u305d\u308c\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h2>\u554f\u984c\u767a\u899a\u306e\u304d\u3063\u304b\u3051\u3002<\/h2>\n<p>\u672cWeb\u30b5\u30a4\u30c8\u306b\u306fAmazon Product Advertising API \u3092\u5229\u7528\u3057\u305f\u300c<a href=\"https:\/\/pandanote.info\/?page_id=976\">\u5e83\u544a\u30ae\u30e3\u30e9\u30ea\u30fc<\/a>\u300d\u3068\u3044\u3046\u30da\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059(\u203b\u305d\u306e\u5f8c\u30012018\u5e7411\u6708\u306b\u516c\u958b\u3092\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/pandanote.info\/?page_id=3366\">\u3053\u3061\u3089<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044)\u3002<\/p>\n<p>\u3053\u306e\u4ed5\u69d8\u306b\u3064\u3044\u3066\u306f\u5e83\u544a\u30ae\u30e3\u30e9\u30ea\u30fc\u3092\u4f5c\u3063\u305f\u3068\u304d\u306b\u66f8\u3044\u305f\u8a18\u4e8b\u306b\u66f8\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u8a73\u7d30\u306f\u7701\u7565\u3057\u307e\u3059\u304c\u3001\u304a\u304a\u3080\u306d1\u6642\u9593\u304a\u304d\u304f\u3089\u3044\u306b\u66f4\u65b0\u3055\u308c\u308b\u306f\u305a\u306e\u5e83\u544a\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u306bFedora 27\u3078\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f2\u65e5\u5f8c\u3042\u305f\u308a\u306b\u6c17\u304c\u3064\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u3001\u672c\u30b5\u30a4\u30c8\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u3088\u30fc\u304f\u898b\u3066\u307f\u308b\u3068\u2026<\/p>\n<p>&#8220;WordPress Events and News&#8221;\u306e\u30ab\u30fc\u30c9\u306e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u305a\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3057\u305f(\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306f\u64ae\u3063\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3059\u307f\u307e\u305b\u3093)\u3002<\/p>\n<p>\u5e83\u544a\u30ae\u30e3\u30e9\u30ea\u30fc\u3060\u3051\u306a\u3089?\u306e\u66f8\u3044\u305fPHP\u306e\u30b3\u30fc\u30c9\u306e\u30d0\u30b0\u3060\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Wordpress\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067\u3001\u5916\u90e8\u306e\u30b5\u30a4\u30c8\u3068\u306e\u901a\u4fe1\u6642\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3068\u306a\u308b\u3068\u2026<\/p>\n<p>\u30d4\u30b3\u30fc\u30f3!!<\/p>\n<p>SELinux\u95a2\u9023\u3067\u3059\u304b\u306d\u3001\u3068\u304a\u304a\u3088\u305d\u306e\u898b\u5f53\u304c\u3064\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\u56f0\u3063\u305f\u3068\u304d\u306eaudit\u983c\u307f\u3002<\/h2>\n<p>SELinux\u95a2\u9023\u306e\u554f\u984c\u3067\u3042\u308b\u3068\u3053\u308d\u307e\u3067\u3042\u305f\u308a\u304c\u3064\u3044\u305f\u3068\u3053\u308d\u3067\u3001\/var\/log\/audit\/audit.log\u306b\u95a2\u9023\u3059\u308b\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u306a\u3044\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002\u3059\u308b\u3068\u2026<\/p>\n<div class=\"code\">type=AVC msg=audit(1527071735.137:29098): avc:  denied  { name_connect } for  pid=5437 comm=&#8221;php-fpm&#8221; dest=443 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0<\/div>\n<p>&nbsp;<br \/>\n\u306e\u3088\u3046\u306a\u300cname_connect\u304c\u62d2\u5426\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u300d(\u8d85\u610f\u8a33)\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5927\u91cf\u306b\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u554f\u984c\u89e3\u6c7a\u306e\u65b9\u6cd5\u3002<\/h2>\n<p>\u300c\u3068\u3044\u3046\u3053\u3068\u306f\u3001name_connect\u3067\u30b0\u30b0\u308c\u3070\u89e3\u6c7a\u7b56\u304c\u898b\u3064\u304b\u308b\u3093\u3058\u3083\u306d?\u300d\u3068\u601d\u3063\u305f\u306e\u3067\u3001Google\u5148\u751f\u306b\u805e\u3044\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u306f\u3058\u3081\u3068\u3057\u3066\u95a2\u9023\u3059\u308b\u8a18\u4e8b\u304c\u5927\u91cf\u306b\u30d2\u30c3\u30c8\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=1528722\">Bug 1528722 &#8211; SELinux is preventing php-fpm from &#8216;name_connect&#8217; accesses on the tcp_socket port 80.<\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u8a18\u4e8b\u306b\u3042\u308b\u901a\u308a\u3001Fedora 27\u3067\u306fhttpd_can_network_connect\u306e\u5024\u304coff\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u8a2d\u5b9a\u5024\u306e\u78ba\u8a8d\u53ca\u3073\u4fee\u6b63\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001httpd_can_network_connect\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<div class=\"code\">[root@pandanote.info iconic-one]# getsebool httpd_can_network_connect<br \/>\nhttpd_can_network_connect &#8211;> off<\/div>\n<p>&nbsp;<br \/>\n\u3082\u306e\u306e\u898b\u4e8b\u306boff\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002orz\n<\/li>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001httpd_can_network_connect\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u518d\u8d77\u52d5\u5f8c\u3082\u8a2d\u5b9a\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u306f-P\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059(-P\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001\u518d\u8d77\u52d5\u5f8c\u306f\u8a2d\u5b9a\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306b\u623b\u3063\u3066\u3057\u307e\u3044\u307e\u3059)\u3002\n<div class=\"code\">[root@pandanote.info iconic-one]# setsebool -P httpd_can_network_connect on<\/div>\n<p>&nbsp;\n<\/li>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5ea6\u5b9f\u884c\u3057\u3001httpd_can_network_connect\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<div class=\"code\">[root@pandanote.info iconic-one]# getsebool httpd_can_network_connect<br \/>\nhttpd_can_network_connect &#8211;> on<\/div>\n<p>&nbsp;\n<\/li>\n<li>\u3057\u3070\u3089\u304f\u30b5\u30fc\u30d0\u306e\u72b6\u6cc1\u3092\u89b3\u5bdf\u3057\u307e\u3059\u3002\u672c\u30b5\u30a4\u30c8\u3067\u306f<a href=\"https:\/\/pandanote.info\/?page_id=976\">\u5e83\u544a\u30ae\u30e3\u30e9\u30ea\u30fc<\/a>\u306b\u65b0\u3057\u3044\u5e83\u544a\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/li>\n<\/ol>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u307e\u3067Fedora 27\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306e\u969b\u306b\u767a\u751f\u3057\u305fhttpd\u304b\u3089\u306e\u901a\u4fe1\u306b\u3064\u3044\u3066\u306e\u30c8\u30e9\u30d6\u30eb\u3068\u305d\u306e\u89e3\u6c7a\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002SELinux\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u6642\u306b\u3053\u306e\u7a2e\u985e\u306e\u30c8\u30e9\u30d6\u30eb\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3051\u3069\u3001\u81ea\u5206\u306e\u7d4c\u9a13\u4e0a\u3001Google\u5148\u751f\u306b\u805e\u3044\u3066\u307f\u308b\u3068\u3059\u3050\u306b\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u307b\u3068\u3093\u3069\u3060\u3063\u305f\u306e\u3067\u3001<del datetime=\"2018-05-30T13:12:25+00:00\">\u5e78\u304b\u4e0d\u5e78\u304b<\/del>\u5e78\u3044\u306b\u3057\u3066<\/p>\n<p>\u300c\u89e3\u6c7a\u3067\u304d\u306a\u3044\u304b\u3089\u3001SELinux\u3092\u7121\u52b9\u306b\u3057\u3061\u3083\u3048!!\u300d<\/p>\n<p>\u3068\u3044\u3046\u5224\u65ad\u306b\u81f3\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5916\u90e8\u306b\u516c\u958b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3067\u306f\u5c11\u3057\u3067\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u30ea\u30b9\u30af\u306f\u6e1b\u3089\u3057\u305f\u3044\u306e\u3067\u3001SELinux\u306f\u3067\u304d\u308b\u3060\u3051\u6709\u52b9\u306b\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u826f\u3044\u3068\u500b\u4eba\u7684\u306b\u306f\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3053\u308d\u3067\u3001Wordpress\u304c\u4eca\u5e74(2018\u5e74)\u306e5\u670827\u65e5\u306715\u5468\u5e74\u3060\u3063\u305f\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u81ea\u5206(panda)\u306e\u8a95\u751f\u65e5?\u3068Wordpress\u306e\u8a95\u751f\u65e5?\u304c\u4e00\u7dd2\u3060\u3063\u305f\u307f\u305f\u3044\u3067\u3001\u3073\u3063\u304f\u308a\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b NUC(NUC7i5BNH)\u3092\u8cfc\u5165\u3057\u3066\u304b\u3089\u3068\u3044\u3046\u3082\u306e\u306e\u3001\u305d\u3061\u3089\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u4f5c\u696d\u3084\u5ec3\u68c4\u4e88\u5b9a\u306ePC\u304b\u3089\u5225\u306ePC\u3078\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u7389\u7a81\u304d\u79fb\u8ee2\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u308a\u3001\u52d5\u753b\u306e\u30cd\u30bf\u304c\u5927\u91cf\u306b\u8972\u3044\u304b\u304b\u3063\u3066\u304d\u3066\u3001\u305d\u306e\u7de8\u96c6\u306b\u8ffd\u308f\u308c\u305f\u308a\u3001\u672c\u696d\u304c\u6025\u306b\u3044\u305d\u304c\u3057\u304f\u306a\u3063\u305f\u308a\u3067\u3001\u3053\u306eWordpress\u304c\u53ef\u52d5\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0(\u4ee5\u4e0b\u3001\u300c\u672c\u30b5\u30fc\u30d0\u300d\u3068\u66f8\u304d\u307e\u3059\u3002)\u306e(OS\u3082\u542b\u3081\u305f)\u30a4\u30f3\u30d5\u30e9\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u304a\u308d\u305d\u304b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u305d\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=2076\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,23,8,3],"tags":[],"class_list":["post-2076","post","type-post","status-publish","format-standard","hentry","category-amazon-product-advertising-api","category-api","category-fedora","category-website-2"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2076"}],"version-history":[{"count":11,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2076\/revisions"}],"predecessor-version":[{"id":3466,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/2076\/revisions\/3466"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}