sefcontext

Collection: community.general

Full Name: parallax.community.general.sefcontext

Aliases: community.general.sefcontext, sefcontext

Synopsis

Manage sefcontext

Parameters

NameTypeRequiredDefaultDescription
targetstringyesTarget file or directory path specification (supports regex)
setypestringyesSELinux type for the file context
statestringpresentWhether the context should be present or absent
ftypestringaFile type (a=all, f=file, d=directory, c=char, b=block, s=socket, l=symlink, p=pipe)
selevelstringSELinux range/level for MLS/MCS
seuserstringSELinux user for the file context
reloadbooltrueReload SELinux policy after commit

Example

- name: Example sefcontext task
  sefcontext:
    target: <your_target>
    setype: <your_setype>