{"id":5780,"date":"2019-10-20T21:44:41","date_gmt":"2019-10-20T12:44:41","guid":{"rendered":"https:\/\/east19-mikas.com\/?p=5780"},"modified":"2024-08-17T17:16:33","modified_gmt":"2024-08-17T08:16:33","slug":"selinux%e3%81%ae%e8%90%bd%e3%81%a8%e3%81%97%e7%a9%b4","status":"publish","type":"post","link":"https:\/\/east19-mikas.com\/mpat\/?p=5780","title":{"rendered":"SELINUX\u306e\u843d\u3068\u3057\u7a74"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">SELINUX\u306e\u8a2d\u5b9a\u9593\u9055\u3044\u3067OS\u8d77\u52d5\u3057\u306a\u3044\u5bfe\u51e6<\/h2>\n\n\n\n<p>\u30cd\u30c3\u30c8\u3067\u306f\u3001\u7d50\u69cbSELINUX\u306e\u8a2d\u5b9a\u9593\u9055\u3048\u3067\u30b7\u30b9\u30c6\u30e0\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u308b\u5bfe\u7b56\u304c\u8272\u3005\u3068\u3067\u3066\u3044\u307e\u3057\u305f\u3002<br><a href=\"http:\/\/blog.livedoor.jp\/zye385\/archives\/25917142.html\" target=\"_blank\" rel=\"noopener\">\u53c2\u8003\u30b5\u30a4\u30c8\u3055\u3093<\/a>\u306e\u65b9\u6cd5\u3092\u3001CentOS8\u3067\u5b9f\u65bd\u3057\u3066\u4e0a\u624b\u304f\u884c\u304d\u307e\u3057\u305f\u306e\u3067\u8a18\u9332\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30b7\u30b9\u30c6\u30e0\u30d6\u30fc\u30c8\u6642\u306b\u300ce\u300d\u30ad\u30fc\u3092\u62bc\u3059<\/li>\n<\/ol>\n\n\n\n<p>\u4e0b\u8a18\u753b\u9762\u304c\u51fa\u308b\u306e\u3067\u3001\u8d64\u5370\u306e\u6240\u306b selinux=0 \u3068\u8ffd\u8a18\u3057\u307e\u3059<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color wp-elements-967ddea207f0673b4d851ddc86b9cc01\" style=\"background-color:#444444\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">load_video<br>set gfx_payload=keep<br>insmod gzio<br>linux ($root)\/vmlinuz-4.18.0-80.11.2.e18_0.x86_64 <\/mark><span id=\"rylo\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff5555\" class=\"has-inline-color\">selinux=0<\/mark><\/span><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\"> root=\/dev\/mapper\/c<span id=\"aria\"><\/span><br>l-root ro crashkernel=auto resume=\/dev\/mapper\/cl-swap rd.lvm.lv=cl\/root rd.lvm<span id=\"aria\"><\/span><br>.lv=cl\/swap rhgb quiet<br>initrd ($root)\/initramfs-4.18.0-80.11.2.e18_0.x86_64.img $tuned_initrd<br><br><br><br><br>          Press Ctrl-x to start, Ctrl-c for a command prompt or Escape to<br>          discard edits and return to the menu. Pressing Tab lists<br>          possible completions.<br><\/mark><\/p>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001PC\u3092\u8d77\u52d5\u3057\u305f\u76f4\u5f8c\u306eCUI\u753b\u9762\u3067\u30014,5\u884c\u76ee\u306b\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u81ea\u52d5\u3067\u53f3\u7aef\u306b\u5165\u308b\u3088\u3046\u3067\u3001\u6587\u5b57\u3092\u5165\u529b\u3057\u3066\u3082\u3001\u30d0\u30c3\u30af\u30b9\u30e9\u30c3\u30b7\u30e5\u306f\u3001\u51fa\u308b\u4f4d\u7f6e\u306f\u5909\u5316\u3057\u307e\u305b\u3093\uff01<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8ffd\u8a18\u3057\u305f\u3089\u3001\u300cCtrl+x\u300d\u30ad\u30fc\u3092\u62bc\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u3092\u8d77\u52d5\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3067\u3001root+PW\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u8a18\u8f09\u30df\u30b9\u3057\u305fconfig\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u518d\u8d77\u52d5\u3057\u307e\u3059<\/li>\n<\/ol>\n\n\n\n<p>\u5ff5\u306e\u70ba\u3001\u5143\u306b\u623b\u3057\u305fConfig\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#444444\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"> <\/mark><span id=\"yelo\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">cat \/etc\/selinux\/config<\/mark><\/span><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\"># This file controls the state of SELinux on the system.<br># SELINUX= can take one of these three values:<br>#     enforcing &#8211; SELinux security policy is enforced.<br>#     permissive &#8211; SELinux prints warnings instead of enforcing.<br>#     disabled &#8211; No SELinux policy is loaded.<br>SELINUX=enforcing<br># SELINUXTYPE= can take one of these three values:<br>#     targeted &#8211; Targeted processes are protected,<br>#     minimum &#8211; Modification of targeted policy. Only selected processes are protected. <br>#     mls &#8211; Multi Level Security protection.<br>SELINUXTYPE=targeted<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u518d\u8d77\u52d5\u5f8c\u3001\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b<\/h2>\n\n\n\n<p>\u518d\u8d77\u52d5\u5f8c\u3001\u6b63\u5e38\u306b\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u51fa\u3066\u304f\u308c\u3070\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\u3002<br>\u56e0\u307f\u306b\u3001Selinux\u3092\u6b62\u3081\u3088\u3046\u3068\u3057\u3066\u3001SELINUXTYPE\u3092disable\u3068\u3057\u305f\u9593\u9055\u3048\u3067\u3059\u30fb\u30fb\u30fb\uff01\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SELINUX\u306e\u8a2d\u5b9a\u9593\u9055\u3044\u3067OS\u8d77\u52d5\u3057\u306a\u3044\u5bfe\u51e6 \u30cd\u30c3\u30c8\u3067\u306f\u3001\u7d50\u69cbSELINUX\u306e\u8a2d\u5b9a\u9593\u9055\u3048\u3067\u30b7\u30b9\u30c6\u30e0\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u308b\u5bfe\u7b56\u304c\u8272\u3005\u3068\u3067\u3066\u3044\u307e\u3057\u305f\u3002\u53c2\u8003\u30b5\u30a4\u30c8\u3055\u3093\u306e\u65b9\u6cd5\u3092\u3001CentOS8\u3067\u5b9f\u65bd\u3057\u3066\u4e0a\u624b\u304f\u884c\u304d\u307e\u3057\u305f\u306e\u3067\u8a18\u9332\u3057\u307e\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7886,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[34,95],"class_list":["post-5780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-centos8","tag-selinux"],"_links":{"self":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/5780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5780"}],"version-history":[{"count":3,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/5780\/revisions"}],"predecessor-version":[{"id":8542,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/5780\/revisions\/8542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/media\/7886"}],"wp:attachment":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}