Skip to content

Commit

Permalink
Use better escape method for "interface"
Browse files Browse the repository at this point in the history
Fixes commit c7e8af0 ("Escape "interface" as a file name in a
virt filetrans pattern")
  • Loading branch information
bachradsusi authored and zpytela committed Aug 29, 2024
1 parent 6aeb7c0 commit 410bd80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/modules/contrib/virt.if
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ template(`virt_driver_template',`

# This sequence of quotation marks is needed to prevent "interface"
# from being interpreted as a keyword and further parsed by m4 macros
filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, "``interface''")
filetrans_pattern($1, virt_var_run_t, virtinterfaced_var_run_t, dir, ``"interface"'')
filetrans_pattern($1, virt_var_run_t, virtnodedevd_var_run_t, dir, "nodedev")
filetrans_pattern($1, virt_var_run_t, virtnwfilterd_var_run_t, dir, "nwfilter")
filetrans_pattern($1, virt_var_run_t, virtsecretd_var_run_t, dir, "secrets")
Expand Down

0 comments on commit 410bd80

Please sign in to comment.