Skip to content

Commit

Permalink
Add application/javascript to Language macro
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Mar 31, 2021
1 parent 0194a60 commit 71df36d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- fapolicyd-cli open trustdb without locking to prevent daemon hang
- If db migration fails due to unlinking problem, fail startup
- Do not exit on fanotify_event read failure
- Add application/javascript to Language macro

1.0.2
- Add Group ID support for rules
Expand Down
2 changes: 1 addition & 1 deletion init/fapolicyd-magic
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
!:mime text/x-tcl

0 string/wt #!\ /usr/bin/gjs Gnome Javascript text executable
!:mime text/javascript
!:mime application/javascript

0 string/wt #!\ /usr/bin/jimsh Jim TCL text executable
!:mime text/x-tcl
Expand Down
2 changes: 1 addition & 1 deletion init/fapolicyd.rules.known-libs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# performance while ensuring that there is not much interference by
# the daemon.

%languages=application/x-bytecode.ocaml,application/x-bytecode.python,application/java-archive,text/x-java,application/x-java-applet,text/javascript,text/x-awk,text/x-gawk,text/x-lisp,application/x-elc,text/x-lua,text/x-m4,text/x-perl,text/x-php,text/x-python,text/x-R,text/x-ruby,text/x-script.guile,text/x-tcl,text/x-luatex,text/x-systemtap
%languages=application/x-bytecode.ocaml,application/x-bytecode.python,application/java-archive,text/x-java,application/x-java-applet,application/javascript,text/javascript,text/x-awk,text/x-gawk,text/x-lisp,application/x-elc,text/x-lua,text/x-m4,text/x-perl,text/x-php,text/x-python,text/x-R,text/x-ruby,text/x-script.guile,text/x-tcl,text/x-luatex,text/x-systemtap

# Carve out an exception for dracut initramfs building
allow perm=any uid=0 : dir=/var/tmp/
Expand Down
2 changes: 1 addition & 1 deletion init/fapolicyd.rules.restrictive
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# %python=/usr/bin/python2.7,/usr/bin/python3.6
# allow perm=open exe=%python : all
#
%languages=application/x-bytecode.ocaml,application/x-bytecode.python,application/java-archive,text/x-java,application/x-java-applet,text/javascript,text/x-awk,text/x-gawk,text/x-lisp,application/x-elc,text/x-lua,text/x-m4,text/x-perl,text/x-php,text/x-python,text/x-R,text/x-ruby,text/x-script.guile,text/x-tcl,text/x-luatex,text/x-systemtap
%languages=application/x-bytecode.ocaml,application/x-bytecode.python,application/java-archive,text/x-java,application/x-java-applet,application/javascript,text/javascript,text/x-awk,text/x-gawk,text/x-lisp,application/x-elc,text/x-lua,text/x-m4,text/x-perl,text/x-php,text/x-python,text/x-R,text/x-ruby,text/x-script.guile,text/x-tcl,text/x-luatex,text/x-systemtap

# Carve out an exception for dracut
allow perm=any uid=0 : dir=/var/tmp/
Expand Down

0 comments on commit 71df36d

Please sign in to comment.