sebuild_graph(1)
π
sebuild_graph β the sebuild_graph(1) glow-up
okay bestie, welcome to the SELinux Policy Analysis Tool corner of the sebuild_graph(1) manual, where we build graphs and slay β¨
πΈ NAME πΈ
sebuild_graph β the SELinux policy visualization tool graph builder. she builds the graph, you get to stare at it. iconic behavior fr fr π
π SYNOPSIS π
sebuild_graph [-h] [-dg] [-fb [FILTER_BOOLS]] [-c CLASSES]
[-p [POLICY]] FILENAME
yes the flags are stacked like that. no we don't make the rules, we just read them π
π¦ DESCRIPTION π¦
So here's the tea: sebuild_graph creates a snapshot of a given SELinux policy β and that snapshot is a thing you can then go analyze with segraph_query. π«Ά
and if you don't hand her a policy file at all? no stress, she'll just use the policy that's loaded in the system right now. lowkey convenient, highkey useful. β¨
β¨ OPTIONS β¨
π Positional arguments:
FILENAMEβ the name for the new policy graph file. that's it, that's the whole job, and she does it gorgeously π
π Optional arguments:
-h,--helpβ shows this help message and dips. short, sweet, and exits. π-dg,--domain_groupingβ groups SELinux domains based on the package they belong to. cute in theory!! but listen to me bestie: use with caution, because this one generates false positives! β οΈ not a vibe, just a fact.-fb [FILTER_BOOLS],--filter_bools [FILTER_BOOLS]β filters rules based on either the current boolean setting, or a comma separated list written as[boolean]:[on/off]. mix and match, she's flexible πΈ-c CLASSES,--class CLASSESβ a comma separated list of object classes that should be present in the graph. omit it and all classes are assumed. "all of them? sure bestie, all of them." π-p [POLICY],--policy [POLICY]β path to the SELinux policy you want to be used. point her at your file, she handles it π¦
π₯ EXAMPLE π₯
create a snapshot of the SELinux policy loaded in the system β only rules concerning files and processes are considered, and the boolean setting is taken into account:
$ sebuild_graph.py -fb -c file,process graph
look at that command go. she ate and left no crumbs π β¨
π SEE ALSO π
segraph_query(1)β the other half of the duo. go check her out too, they're a set fr fr π
π AUTHOR π
Vit Mojzis <vmojzis@redhat.com> β thank her for the graph builder, she understood the assignment π«Ά
okay that's the whole page bestie, no cap, every flag accounted for, nothing skipped, we kept the lore intact πβ¨
written 2017-02-09, and this is sebuild_graph(1) from the SELinux Policy Analysis Tool β bye babes, go build a graph π¦ππ
π¦ where this page comes from
- fedora 43: sepolicy_analysis 0.1-32.fc43 Β· GPL-3.0-only
- fedora 44: sepolicy_analysis 0.1-33.fc44 Β· GPL-3.0-only
- Copyright 2016 Vit Mojzis, vmojzis@redhat.com
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms