tpm2: small fixes

* Drop permissions implied by domtrans_pattern
* Use fifo_file permission macro for fifo_file class

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
Christian Göttsche 2020-05-08 19:54:49 +02:00
parent d769c71848
commit 0ac9f4cb22

View File

@ -35,9 +35,6 @@ interface(`tpm2_domtrans',`
type tpm2_t, tpm2_exec_t;
')
allow tpm2_t $1:fd use;
allow tpm2_t $1:fifo_file rw_file_perms;
corecmd_search_bin($1)
domtrans_pattern($1, tpm2_exec_t, tpm2_t)
')
@ -162,6 +159,6 @@ interface(`tpm2_rw_abrmd_pipes',`
')
allow $1 tpm2_abrmd_t:fd use;
allow $1 tpm2_abrmd_t:fifo_file rw_file_perms;
allow $1 tpm2_abrmd_t:fifo_file rw_fifo_file_perms;
')