Skip to content

Commit

Permalink
fix man
Browse files Browse the repository at this point in the history
  • Loading branch information
skosachiov authored and radosroka committed Nov 21, 2024
1 parent 2e7b115 commit f76484b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/fapolicyd.rules.5
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ in favor of using obj_trust with execute permission when writing rules.
.RE
.TP
.B ftype
This option takes the mime type of a file as an argument. If you wish to check the mime type of a file while writing rules, run the following command:
This option takes the mime type of a file as an argument. Mime is determined based on magic patterns files. Fapolicyd uses two precompiled magic files /usr/share/fapolicyd/fapolicyd-magic.mgc and /usr/share/misc/magic.mgc. To compile a magic file run the command \fBfile -C -m <magic file>\fP. If you wish to check the mime type of a file while writing rules, run the following command:

.nf
.B fapolicyd-cli \-\-ftype /path-to-file
Expand Down Expand Up @@ -169,7 +169,7 @@ will run and compile all these component files into one master file, compiled.ru
.B fagenrules
man page for more information.

When you are writing a rule for the execute permission, remember that the file to be executed is an
When you are writing a rule for the execute permission, remember that the file to be executed is an
.B object.
For example, you type ssh into the shell. The shell calls execve on /usr/bin/ssh. At that instant in time, ssh is the object that bash is working on. However, if you are blocking execution
.I from
Expand Down

0 comments on commit f76484b

Please sign in to comment.