sepolicy-communicate(8)

πŸ“¦
version 3.11 Β· 2 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ sepolicy-communicate β€” the "can y'all even talk??" page ✨

okay bestie, welcome to sepolicy-communicate, part of the sepolicy manual crew πŸ’– this is the tool that tells you whether two SELinux Policy Domains are on speaking terms or if they're giving each other the silent treatment fr fr.


🌸 NAME 🌸

sepolicy-communicate β€” generate a report showing if two SELinux Policy Domains can communicate 🫢


πŸŽ€ SYNOPSIS πŸŽ€

sepolicy communicate [-h] -s SOURCE -t TARGET [-c TCLASS] [-S
SOURCEACCESS] [-T TARGETACCESS]

πŸ’… DESCRIPTION πŸ’…

okay so here's the vibe. you run sepolicy communicate and it goes digging through SELinux Policy to figure out whether a source SELinux Domain can communicate with a target SELinux Domain. yes, we're literally playing matchmaker between domains 😭

and by default? the command checks whether there are any file types that the source domain can write that the target domain can read. that's the default love language, no cap.


✨ OPTIONS ✨

  • -c, --class β€” pick the SELinux class that the source domain is gonna use to try to communicate with the target domain. (Default is file) πŸ“
  • -h, --help β€” shows you the help message, bestie. the classic escape hatch 🫢
  • -s, --source β€” name the source SELinux domain type. who's the one sliding into DMs πŸ‘‘
  • -S, --sourceaccess β€” give the list of accesses the source SELinux domain type uses to communicate with the target domain. Default is Open, Write. πŸ“
  • -t, --target β€” name the target SELinux domain type. the one receiving the message πŸ’Œ
  • -T, --targetaccess β€” give the list of accesses the target SELinux domain type uses to receive communications from the source domain. Default is Open, Read. πŸ‘€

🌈 EXAMPLE 🌈

list the types that can be used to communicate between the samba daemon and the apache server:

# sepolicy communicate -s httpd_t -t smbd_t

now consider a type to be accessible by the source domain when it can be opened and appended to (as opposed to opened and written to) β€” yes, different vibe entirely:

# sepolicy communicate -s httpd_t -t smbd_t -S open,append

πŸ’œ AUTHOR πŸ’œ

this man page was written by Daniel Walsh <dwalsh@redhat.com> β€” credit where credit is due, periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

sepolicy(8), selinux(8)


that's the whole page bestie, you ate it πŸ’– this little icon was dated 20121005 and it lives in the sepolicy-communicate(8) section of the manual β€” go forth and vibe check your domains, ily πŸ¦‹βœ¨

πŸ“¦ where this page comes from