Add optional file name to filetrans_pattern.

This commit is contained in:
Chris PeBenito 2011-11-02 08:48:25 -04:00
parent ba817fccd9
commit e5b14e7e3a

View File

@ -526,16 +526,19 @@ define(`relabel_chr_files_pattern',`
#
# File type_transition patterns
#
# pattern(domain,dirtype,newtype,class(es))
# filetrans_add_pattern(domain,dirtype,newtype,class(es),[filename])
#
define(`filetrans_add_pattern',`
allow $1 $2:dir { list_dir_perms add_entry_dir_perms };
type_transition $1 $2:$4 $3;
type_transition $1 $2:$4 $3 $5;
')
#
# filetrans_pattern(domain,dirtype,newtype,class(es),[filename])
#
define(`filetrans_pattern',`
allow $1 $2:dir rw_dir_perms;
type_transition $1 $2:$4 $3;
type_transition $1 $2:$4 $3 $5;
')
define(`admin_pattern',`