Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions policy/modules/roles/sysadm.te
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,11 @@ optional_policy(`
tor_admin(sysadm_t, sysadm_r)
')

optional_policy(`
tpm2_run(sysadm_t, sysadm_r)
tpm2_dbus_chat_abrmd(sysadm_t)
')

optional_policy(`
transproxy_admin(sysadm_t, sysadm_r)
')
Expand Down
1 change: 1 addition & 0 deletions policy/modules/services/dbus.te
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ optional_policy(`

optional_policy(`
tpm2_rw_abrmd_pipes(system_dbusd_t)
tpm2_rw_abrmd_stream_sockets(system_dbusd_t)
')

optional_policy(`
Expand Down
20 changes: 20 additions & 0 deletions policy/modules/services/tpm2.if
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,23 @@ interface(`tpm2_rw_abrmd_pipes',`
allow $1 tpm2_abrmd_t:fd use;
allow $1 tpm2_abrmd_t:fifo_file rw_fifo_file_perms;
')

########################################
## <summary>
## Read and write tpm2-abrmd unix stream sockets.
## This is used by the D-Bus system daemon to communicate
## over the socketpair fds passed by tpm2-abrmd to clients.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`tpm2_rw_abrmd_stream_sockets',`
gen_require(`
type tpm2_abrmd_t;
')
allow $1 tpm2_abrmd_t:fd use;
allow $1 tpm2_abrmd_t:unix_stream_socket rw_socket_perms;
')
5 changes: 5 additions & 0 deletions policy/modules/services/tpm2.te
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ logging_send_syslog_msg(tpm2_abrmd_t)

dev_read_urand(tpm2_abrmd_t)

files_read_etc_files(tpm2_abrmd_t)

miscfiles_read_localization(tpm2_abrmd_t)

optional_policy(`
dbus_system_domain(tpm2_abrmd_t, tpm2_abrmd_exec_t)
init_dbus_chat(tpm2_abrmd_t)
')


Expand Down
4 changes: 4 additions & 0 deletions policy/modules/system/unconfined.te
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ optional_policy(`
allow unconfined_execmem_t self:process { execmem execstack };
unconfined_domain_noaudit(unconfined_execmem_t)

optional_policy(`
tpm2_dbus_chat_abrmd(unconfined_t)
')

optional_policy(`
unconfined_dbus_chat(unconfined_execmem_t)
')
Comment thread
khalidfaisal17 marked this conversation as resolved.
Expand Down
Loading