Add optional file name to filetrans_pattern.
This commit is contained in:
parent
ba817fccd9
commit
e5b14e7e3a
|
@ -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',`
|
||||
|
|
Loading…
Reference in New Issue