sedta(1)
π sedta β the SELinux domain transition girlie π
okay bestie, so this is sedta(1), part of the SETools: SELinux Policy Analysis Tools fam. she's a command line tool, she does domain transition analysis on SELinux policies, and honestly? she eats. let's get into it π¦
β¨ SYNOPSIS β¨
sedta [OPTIONS] -s SOURCE [-t TARGET (-S|-A LIMIT)] [EXCLUDE [EXCLUDE ...]]
that's the whole vibe. source, maybe a target, maybe an algorithm, maybe some types to exclude. simple. iconic. π
πΈ DESCRIPTION πΈ
so like, sedta is a command line tool that lets you do domain transition analyses on an SELinux policy. that's it, that's the job, and she does it flawlessly. no notes. β¨
π POLICY π
so the policy is a single file containing a binary policy, mmkay?
- on Linux systems this file is usually named by version, for example
policy.30 - on Android systems this file is usually named
sepolicy
and if you don't hand her a policy file? no worries, she'll go searching for the policy that's running on your current system. π΅οΈβοΈ and if she can't find any policy at all? she will print an error message and exit, periodt. π
π OPTIONS π
π Analysis Settings
-pPOLICY β specify the policy to analyze. if you don't specify one,sedtawill search for the policy running on your current system. same energy as the POLICY section, just in flag form. π«Ά-sSOURCE β specify the source type to use in the domain transition analysis. this one's kinda required, she needs to know where the story starts. π-tTARGET β specify the target type to use in the domain transition analysis. heads up bestie: using this option will also require specifying an analysis algorithm. no algorithm, no vibes. β
π§ Analysis Algorithms
okay so sedta uses graph algorithms to analyze the domain transition paths of an SELinux policy. the following algorithms are the options for figuring out paths from a source type to a target type:
-Sβ print the shortest domain transition path(s) from the source type to the target type. and if multiple paths have the same length? she shows all of them, because fairness. π-ALIMIT β print all domain transition path(s) up to LIMIT steps long. π¨ and depending on how connected your policy is, this may be extremely expensive. like, she will be working. be warned. π
π Analysis Options
-rβ perform a reverse domain transition analysis. the domain transitions get analyzed to find the parent domains instead of finding the child domains. backwards but make it fashion. π-lLIMIT_TRANS β specify the maximum number of domain transitions to output. the default is unlimited. yes, unlimited. go off. π₯-oOUTPUT_PATH β generate a graphical representation of the analysis in PNG format at the specified path. art. literally art. π¨- EXCLUDE β a space-separated list of types to exclude from the analysis. bye girl, not you. βοΈ
π General Options
--fullβ print rule lists for transitions.--statsβ print domain transition graph statistics at the end of the analysis. numbers at the end, cute lil finale. π-h,--helpβ print help information and exit.--versionβ print version information and exit.-v,--verboseβ print additional informational messages. she talks more. we love that for her. π¬--debugβ enable debugging output. for when things are giving bug and you need the receipts. π
β EXAMPLE β
show the shortest transition paths from httpd_t to unconfined_t, while not using container_runtime_t:
# sedta -s httpd_t -t unconfined_t -S container_runtime_t
list all domain transition paths shorter than 3 steps from init_t to smbd_t:
# sedta -s init_t -t smbd_t -A 3
see? easy. slay. π₯
π AUTHOR π
Chris PeBenito <pebenito@ieee.org> β the icon, the moment, the legend. π
π BUGS π
please report bugs via the SETools bug tracker, https://github.com/SELinuxProject/setools/issues β she wants to know, fr fr. don't be shy. π
π SEE ALSO π
apol(1), sediff(1), seinfo(1), seinfoflow(1), sesearch(1) β the whole friend group, go say hi. π«Ά
okay that's the whole page bestie, ty for coming to my TED talk π β¨
this one's brought to you by the SELinux Project, dated 2016-02-20 β and yeah the man page says sedta(1) at the bottom too, because consistency is the blueprint. π mwah, bye! π¦
π¦ where this page comes from
- centos-stream 10: setools-console-analyses 4.7.1-1.1.el10 Β· GPL-2.0-only
- debian trixie: setools 4.5.1-1.1+b1
- fedora 43: setools-console-analyses 4.6.0-2.fc43 Β· GPL-2.0-only
- fedora 43: setools-console-analyses 4.6.0-4.fc43 Β· GPL-2.0-only
- fedora 44: setools-console-analyses 4.6.0-5.fc44 Β· GPL-2.0-only
- fedora 44: setools-console-analyses 4.6.0-6.fc44 Β· GPL-2.0-only
- nixos 26.05: setools 4.6.0
- nixpkgs unstable: setools 4.7.1
- ubuntu questing: setools 4.6.0-2
- ubuntu resolute: setools 4.6.0-2build3
- ubuntu stonking: setools 4.7.1-1
- Copyright (c) 2016 Tresys Technology, LLC. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms