Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add SELinux policy source files #1187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dschapman
Copy link

This PR adds support for the SELinux policy source file type. This type is different from the CIL file type already present in tokei. The three extensions this PR adds (.te, .fc, .if) all have the same comment syntax.

A Redhat article about SELinux policy defines the three files as follows:

The generated policy template contains the following policy files:

.te - defines policy rules as well as new types and domains used by your application
.fc - contains file context definitions, in other words, instructions for labeling files related to the application
.if - contains interfaces, which are policy macros used by other policy modules to interact with this policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant