Skip to content

Commit

Permalink
optimize rule and allow shell in the homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Feb 8, 2020
1 parent 6ad9552 commit 2b10666
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions init/fapolicyd.rules
Expand Up @@ -39,6 +39,10 @@ allow exe=%python2_path% : ftype=application/octet-stream trust=1
deny_audit perm=any all : ftype=text/x-python
#deny_audit perm=any all : ftype=application/octet-stream path=*.pyc

# Allow shell script but block all other languages
allow perm=execute all : ftype=text/x-shellscript
allow perm=execute all : ftype=text/plain trust=1

#
# In this next optional languages section, choose either to
# block (default) or allow by commenting or uncommenting the
Expand Down Expand Up @@ -66,10 +70,6 @@ deny_audit perm=any exe=/usr/bin/ruby : all
#allow perm=open all : ftype=text/x-ruby trust=1
#deny_audit perm=any all : ftype=text/x-ruby

# Allow shell script but block all other languages
allow perm=execute all : ftype=text/x-shellscript trust=1
allow perm=execute all : ftype=text/plain trust=1

# This is a workaround for kernel thinking this is being executed. We
# catch actual execution in rule 3.
allow perm=execute all : path=%ld_so_path% trust=1
Expand Down

0 comments on commit 2b10666

Please sign in to comment.