{"id":102,"date":"2021-01-03T14:41:35","date_gmt":"2021-01-03T13:41:35","guid":{"rendered":"https:\/\/threedots.ovh\/blog\/?p=102"},"modified":"2021-01-03T14:41:35","modified_gmt":"2021-01-03T13:41:35","slug":"chroot-on-modern-macos-disallowed","status":"publish","type":"post","link":"https:\/\/threedots.ovh\/blog\/2021\/01\/chroot-on-modern-macos-disallowed\/","title":{"rendered":"chroot on modern macOS: disallowed"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>-> % sudo chroot \/         \n&#91;1]    93188 killed     sudo chroot \/\n-> % sudo dmesg | grep AMFI\n&#91;1281783.098834]: AMFI: hook..execve() hardened runtime not allowed in chrootAMFI: hook..execve() killing pid 93189: not allowed in chroot<\/code><\/pre>\n\n\n\n<p>The <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.apple.com\/documentation\/security\/hardened_runtime\" target=\"_blank\">hardened runtime<\/a> is enforced for all executables bundled as part of macOS. As such, chroot isn&#8217;t usable anymore for running a macOS CLI environment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The hardened runtime is enforced for all executables bundled as part of macOS. As such, chroot isn&#8217;t usable anymore for running a macOS CLI environment.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":1,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}