{"id":1862,"date":"2014-05-06T20:43:00","date_gmt":"2014-05-07T01:43:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/activar-desactivar-selinux-en-fedora\/"},"modified":"2014-05-06T20:43:00","modified_gmt":"2014-05-07T01:43:00","slug":"activar-desactivar-selinux-en-fedora","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/activar-desactivar-selinux-en-fedora\/","title":{"rendered":"Activar\/desactivar SeLinux en fedora"},"content":{"rendered":"<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">En primera veremos como ver la funci\u00f3n actual de SELinux, o sea saber si esta activo o no. Para ello tipeamos el siguiente comando:<\/div>\n<blockquote style=\"background-color: white; border: 0px; color: #707070; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 21px; line-height: 1.8em; margin: 30px; padding: 0px; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;\"># getenforce<\/div>\n<\/blockquote>\n<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">Para deshabilitarlo necesitamos acceder al archivo de configuraci\u00f3n de SELinux como root&nbsp; en esta ruta&nbsp;<em style=\"border: 0px; font-family: inherit; font-size: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;\">\/etc\/selinux\/config<\/em>:<\/div>\n<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">Cambiamos<\/div>\n<blockquote style=\"background-color: white; border: 0px; color: #707070; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 21px; line-height: 1.8em; margin: 30px; padding: 0px; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;\">SELINUX=enforcing<\/div>\n<\/blockquote>\n<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">por :<\/div>\n<blockquote style=\"background-color: white; border: 0px; color: #707070; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 21px; line-height: 1.8em; margin: 30px; padding: 0px; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;\">SELINUX=disabled<\/div>\n<\/blockquote>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/2.bp.blogspot.com\/-3mfMDfewbSc\/U2mPrSZIZhI\/AAAAAAAAAEc\/Shq4e4WtQcM\/s1600\/selinux-disable-geekalt42.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/-3mfMDfewbSc\/U2mPrSZIZhI\/AAAAAAAAAEc\/Shq4e4WtQcM\/s1600\/selinux-disable-geekalt42.png\" height=\"148\" width=\"400\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">Y hace lo tendremos deshabitado, obviamente si queremos volverlo a activar hacemos lo contrario.<\/div>\n<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">Ahora si lo queremos hacer temporal solo bastan con escribir esto:<\/div>\n<blockquote style=\"background-color: white; border: 0px; color: #707070; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 21px; line-height: 1.8em; margin: 30px; padding: 0px; quotes: none; vertical-align: baseline;\">\n<div style=\"border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;\"># setenforce 0<\/div>\n<\/blockquote>\n<div style=\"background-color: white; border: 0px; color: #949494; font-family: Raleway, 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 14px; line-height: 24.5px; margin-bottom: 20px; padding: 0px; vertical-align: baseline;\">Ya que esto al reiniciar nuestra maquina volviera a activar SELinux. Espero que les sirva cualquier duda o comentario no duden es escribirlo,<\/div>\n","protected":false},"excerpt":{"rendered":"<p>En primera veremos como ver la funci\u00f3n actual de SELinux, o sea saber si esta activo o no. Para ello tipeamos el siguiente comando: # getenforce Para deshabilitarlo necesitamos acceder al archivo de configuraci\u00f3n de SELinux como root&nbsp; en esta ruta&nbsp;\/etc\/selinux\/config: Cambiamos SELINUX=enforcing por : SELINUX=disabled Y hace lo tendremos deshabitado, obviamente si queremos volverlo [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,87,4,1531,725,1532],"tags":[],"class_list":["post-1862","post","type-post","status-publish","format-standard","hentry","category-fedora","category-gnome","category-linux","category-security","category-seguridad","category-selinux"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1862"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1862\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}