Difference between revisions of "SELinux"
Tags: Mobile web edit, Mobile edit |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[wikipedia:Security-Enhanced Linux]] is a [[Linux kernel]] security module that provides a mechanism for supporting access control security policies, including [[mandatory access controls]] (MAC). | |
− | [[wikipedia:Security-Enhanced Linux]] | ||
<code>[[semanage]]</code> and <code>[[restorecon]]</code> command line utilities can be used to manage SELinux configuration and behavior. | <code>[[semanage]]</code> and <code>[[restorecon]]</code> command line utilities can be used to manage SELinux configuration and behavior. | ||
Line 7: | Line 6: | ||
− | Command-line utilities | + | == Command-line utilities == |
− | <code>chcon</code>,<ref>{{cite web |url=http://linuxcommand.org/man_pages/chcon1.html |archive-url=https://web.archive.org/web/20041024211853/http://linuxcommand.org/man_pages/chcon1.html |url-status=dead |archive-date=2004-10-24 |title=chcon |publisher=Linuxcommand.org |accessdate=2013-02-06 }}</ref> | + | <ref>{{cite web|url=https://fedoraproject.org/wiki/SELinux/Commands |title=SELinux/Commands - FedoraProject |accessdate=2015-11-25}}</ref> |
+ | <code>[[chcon]]</code>,<ref>{{cite web |url=http://linuxcommand.org/man_pages/chcon1.html |archive-url=https://web.archive.org/web/20041024211853/http://linuxcommand.org/man_pages/chcon1.html |url-status=dead |archive-date=2004-10-24 |title=chcon |publisher=Linuxcommand.org |accessdate=2013-02-06 }}</ref> | ||
<code>restorecon</code>,<ref>{{cite web|url=http://linux.die.net/man/8/restorecon |title=restorecon(8) - Linux man page |publisher=Linux.die.net |date= |accessdate=2013-02-06}}</ref> | <code>restorecon</code>,<ref>{{cite web|url=http://linux.die.net/man/8/restorecon |title=restorecon(8) - Linux man page |publisher=Linux.die.net |date= |accessdate=2013-02-06}}</ref> | ||
<code>restorecond</code>,<ref>{{cite web|url=http://linux.die.net/man/8/restorecond |title=restorecond(8) - Linux man page |publisher=Linux.die.net |date= |accessdate=2013-02-06}}</ref> | <code>restorecond</code>,<ref>{{cite web|url=http://linux.die.net/man/8/restorecond |title=restorecond(8) - Linux man page |publisher=Linux.die.net |date= |accessdate=2013-02-06}}</ref> | ||
Line 30: | Line 30: | ||
and <code>selinux-policy-upgrade</code><ref>{{cite web |url=http://manpages.ubuntu.com/manpages/natty/man8/selinux-policy-upgrade.8.html |title=Ubuntu Manpage: selinux-policy-upgrade - upgrade the modules in the SE Linux policy |publisher=[[Canonical Ltd]] |accessdate=2013-02-06 |url-status=dead |archiveurl=https://web.archive.org/web/20120404160143/http://manpages.ubuntu.com/manpages/natty/man8/selinux-policy-upgrade.8.html |archivedate=2012-04-04 }}</ref> | and <code>selinux-policy-upgrade</code><ref>{{cite web |url=http://manpages.ubuntu.com/manpages/natty/man8/selinux-policy-upgrade.8.html |title=Ubuntu Manpage: selinux-policy-upgrade - upgrade the modules in the SE Linux policy |publisher=[[Canonical Ltd]] |accessdate=2013-02-06 |url-status=dead |archiveurl=https://web.archive.org/web/20120404160143/http://manpages.ubuntu.com/manpages/natty/man8/selinux-policy-upgrade.8.html |archivedate=2012-04-04 }}</ref> | ||
+ | [[sestatus]] | ||
+ | [[setenforce]] enforcing | ||
+ | |||
+ | <code>setenforce 0</code> | ||
+ | |||
+ | == Related == | ||
+ | * [[selinux-utils]] | ||
== See also == | == See also == | ||
− | * | + | * {{AppArmor}} |
− | * seccomp | + | * {{seccomp}} |
* {{SELinux}} | * {{SELinux}} | ||
+ | * {{Security modules}} | ||
+ | |||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Security]] | [[Category:Security]] | ||
+ | [[Category:SELinux]] |
Latest revision as of 09:51, 7 November 2021
wikipedia:Security-Enhanced Linux is a Linux kernel security module that provides a mechanism for supporting access control security policies, including mandatory access controls (MAC).
semanage
and restorecon
command line utilities can be used to manage SELinux configuration and behavior.
SELinux is available in RHEL 4 since 2005 and in Ubuntu. As of 2018 Ubuntu 18.04 LTS do not install SELinux by default.
Command-line utilities[edit]
[1]
chcon
,[2]
restorecon
,[3]
restorecond
,[4]
runcon
,[5]
secon
,[6]
fixfiles
,[7]
setfiles
,[8]
load_policy
,[9]
booleans
,[10]
getsebool
,[11]
setsebool
,[12]
togglesebool
[13]
setenforce
,
semodule
,
postfix-nochroot
,
check-selinux-installation
,
semodule_package
,
checkmodule
,
selinux-config-enforcing
,[14]
selinuxenabled
,[15]
and selinux-policy-upgrade
[16]
sestatus setenforce enforcing
setenforce 0
Related[edit]
See also[edit]
- AppArmor,
/etc/apparmor.d/libvirt
,apparmor_status
- Seccomp
- SELinux,
semanage
,sestatus
,getenforce
,chcon
, security context,setsebool
- Mandatory access control: AppArmor, SELinux, seccomp, System Integrity Protection (macOS)
Advertising: