selinuxdefcon(1)
β¨ NAME β¨
selinuxdefcon β bestie, this one reports the default SELinux context for a user π
(also, hi, welcome to the SELinux Command Line documentation, we're doing this together π«Ά)
πΈ SYNOPSIS πΈ
selinuxdefcon [-l level] user fromcon
π DESCRIPTION π
okay so here's the tea: selinuxdefcon reports the default context for the user you name, starting from the context you hand it. That's it. That's the whole vibe. π
-l levelβ the mcs/mls level. give it a level, that's the level. slay. β¨
π¦ EXAMPLE π¦
like, watch this:
# selinuxdefcon jsmith system_u:system_r:sshd_t:s0
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
you put in the user + the context you're coming from, it hands you back the default context. no cap, it's giving effortless. π
π AUTHOR π
This manual page was written by Dan Walsh <dwalsh@redhat.com>. iconic behavior fr fr π
π₯ SEE ALSO π₯
secon(8)selinuxconlist(8)
okay bestie that's the whole page, mwah π shoutout to dwalsh@redhat.com, dropped on 7 May 2008, living inside selinuxdefcon(1) forever and ever. periodt. π β¨
π¦ where this page comes from
- centos-stream 10: libselinux-utils 3.11-3.el10 Β· LicenseRef-Fedora-Public-Domain
- centos-stream 9: libselinux-utils 3.6-5.el9 Β· Public Domain
- fedora 43: libselinux-utils 3.9-5.fc43 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-utils 3.10-1.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-utils 3.11-2.fc44 Β· LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms