Skip to content
Snippets Groups Projects
Commit 87cba6e8 authored by William Roberts's avatar William Roberts Committed by William C Roberts
Browse files

te_macros: add map to tpmfs_domain


domain based tmpfs file access has getattr, read and write.

However newer kernels support map. Add this map permission so they
can use mmap based access.

Test: build test.

Change-Id: I2e128967e10a1332b3c1c908550360a52fbceaf8
Signed-off-by: default avatarWilliam Roberts <william.c.roberts@intel.com>
parent dd7e36c0
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ allow $1 $2:{ file lnk_file } r_file_perms;
define(`tmpfs_domain', `
type $1_tmpfs, file_type;
type_transition $1 tmpfs:file $1_tmpfs;
allow $1 $1_tmpfs:file { read write getattr };
allow $1 $1_tmpfs:file { read write getattr map };
allow $1 tmpfs:dir { getattr search };
')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment