File tree 4 files changed +12
-6
lines changed
4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -973,8 +973,8 @@ get_prop(system_server, time_prop)
973
973
# on low memory kills.
974
974
get_prop(system_server, system_lmk_prop)
975
975
976
- # Only system server can access BINDER_FREEZE
977
- allowxperm system_server binder_device:chr_file ioctl { BINDER_FREEZE };
976
+ # Only system server can access BINDER_FREEZE and BINDER_GET_FROZEN_INFO
977
+ allowxperm system_server binder_device:chr_file ioctl { BINDER_FREEZE BINDER_GET_FROZEN_INFO };
978
978
979
979
# ##
980
980
# ## Neverallow rules
@@ -1178,4 +1178,6 @@ neverallow { domain -init -system_server } socket_hook_prop:property_service set
1178
1178
1179
1179
# BINDER_FREEZE is used to block ipc transactions to frozen processes, so it
1180
1180
# can be accessed by system_server only (b/143717177)
1181
- neverallowxperm { domain -system_server } binder_device:chr_file ioctl { BINDER_FREEZE };
1181
+ # BINDER_GET_FROZEN_INFO is used by system_server to determine the state of a frozen binder
1182
+ # interface
1183
+ neverallowxperm { domain -system_server } binder_device:chr_file ioctl { BINDER_FREEZE BINDER_GET_FROZEN_INFO };
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ define(`BC_REPLY', `0x40406301')
133
133
define(`BC_REQUEST_DEATH_NOTIFICATION', `0x400c630e')
134
134
define(`BC_TRANSACTION', `0x40406300')
135
135
define(`BINDER_FREEZE', `0x400c620e')
136
+ define(`BINDER_GET_FROZEN_INFO', `0xc00c620f')
136
137
define(`BINDER_GET_NODE_DEBUG_INFO', `0xc018620b')
137
138
define(`BINDER_GET_NODE_INFO_FOR_REF', `0xc018620c')
138
139
define(`BINDER_SET_CONTEXT_MGR', `0x40046207')
Original file line number Diff line number Diff line change @@ -973,8 +973,8 @@ get_prop(system_server, time_prop)
973
973
# on low memory kills.
974
974
get_prop(system_server, system_lmk_prop)
975
975
976
- # Only system server can access BINDER_FREEZE
977
- allowxperm system_server binder_device:chr_file ioctl { BINDER_FREEZE };
976
+ # Only system server can access BINDER_FREEZE and BINDER_GET_FROZEN_INFO
977
+ allowxperm system_server binder_device:chr_file ioctl { BINDER_FREEZE BINDER_GET_FROZEN_INFO };
978
978
979
979
# ##
980
980
# ## Neverallow rules
@@ -1178,4 +1178,6 @@ neverallow { domain -init -system_server } socket_hook_prop:property_service set
1178
1178
1179
1179
# BINDER_FREEZE is used to block ipc transactions to frozen processes, so it
1180
1180
# can be accessed by system_server only (b/143717177)
1181
- neverallowxperm { domain -system_server } binder_device:chr_file ioctl { BINDER_FREEZE };
1181
+ # BINDER_GET_FROZEN_INFO is used by system_server to determine the state of a frozen binder
1182
+ # interface
1183
+ neverallowxperm { domain -system_server } binder_device:chr_file ioctl { BINDER_FREEZE BINDER_GET_FROZEN_INFO };
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ define(`BC_REPLY', `0x40406301')
133
133
define(`BC_REQUEST_DEATH_NOTIFICATION', `0x400c630e')
134
134
define(`BC_TRANSACTION', `0x40406300')
135
135
define(`BINDER_FREEZE', `0x400c620e')
136
+ define(`BINDER_GET_FROZEN_INFO', `0xc00c620f')
136
137
define(`BINDER_GET_NODE_DEBUG_INFO', `0xc018620b')
137
138
define(`BINDER_GET_NODE_INFO_FOR_REF', `0xc018620c')
138
139
define(`BINDER_SET_CONTEXT_MGR', `0x40046207')
You can’t perform that action at this time.
0 commit comments