Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hookup SubjectDescriptor in CommandHandler #12953

Conversation

mlepage-google
Copy link
Contributor

Problem

SubjectDescriptor needs to be hooked up in CommandHandler
so AccessControl check can be performed before executing command.

Change overview

Get the SubjectDescriptor from the ExchangeContext/SessionHandle.

Testing

Testing is currently an issue, they seem to run CommandHandler
without having an ExchangeContext/SessionHandle.

Get the subject descriptor (from the exchange context session handle)
in the command handler so an access control check can be performed
before executing a command.
@stale
Copy link

stale bot commented Dec 22, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Dec 22, 2021
@stale
Copy link

stale bot commented Dec 29, 2021

This stale pull request has been automatically closed. Thank you for your contributions.

@stale stale bot closed this Dec 29, 2021
@stale stale bot removed the stale Stale issue or PR label Dec 31, 2021
@github-actions
Copy link

github-actions bot commented Jan 4, 2022

PR #12953: Size comparison from 65ba5df to aaf1632

Increases above 0.2%:

platform target config section 65ba5df aaf1632 change % change
linux all-clusters-app debug .data 1184 1216 32 2.7
p6 all-clusters-app default .data 2584 2592 8 0.3
Increases (19 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 65ba5df aaf1632 change % change
efr32 lighting-app BRD4161A (read only) 829460 829764 304 0.0
.text 829452 829756 304 0.0
BRD4161A+rpc (read only) 817088 817392 304 0.0
.text 817080 817384 304 0.0
window-app BRD4161A (read only) 802908 803212 304 0.0
.text 802900 803204 304 0.0
esp32 all-clusters-app c3devkit (read only) 888438 889188 750 0.1
(read/write) 1313706 1313770 64 0.0
.dram0.bss 69280 69288 8 0.0
.dram0.data 14228 14236 8 0.1
.flash.rodata 177136 177184 48 0.0
.flash.text 888438 889188 750 0.1
m5stack (read only) 948511 949075 564 0.1
(read/write) 445296 445352 56 0.0
.dram0.data 34056 34064 8 0.0
.flash.rodata 206456 206504 48 0.0
.flash.text 943127 943691 564 0.1
k32w light k32w061+release (read/write) 647784 648488 704 0.1
.bss 76200 76216 16 0.0
.text 563880 564568 688 0.1
lock k32w061+release (read/write) 632608 633312 704 0.1
.bss 75912 75928 16 0.0
.text 549036 549724 688 0.1
linux all-clusters-app debug .data 1184 1216 32 2.7
tv-app debug (read only) 2209001 2209281 280 0.0
(read/write) 373192 373256 64 0.0
.data.rel.ro 69896 69960 64 0.1
.text 1855826 1856082 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2345800 2346224 424 0.0
.bss 188540 188548 8 0.0
.data 5304 5312 8 0.2
.text 1308376 1308800 424 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2329384 2329448 64 0.0
.text 1291984 1292048 64 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2302544 2302608 64 0.0
.text 1265144 1265208 64 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2053888 2053952 64 0.0
.text 1016488 1016552 64 0.0
p6 all-clusters-app default (read/write) 2400296 2401240 944 0.0
.data 2584 2592 8 0.3
.text 1358560 1359504 944 0.1
light-app default (read/write) 2324200 2324600 400 0.0
.text 1282464 1282864 400 0.0
lock-app default (read/write) 2296400 2296800 400 0.0
.text 1254664 1255064 400 0.0
qpg lighting-app qpg6105+debug (read only) 531416 531672 256 0.0
.text 526096 526352 256 0.0
lock-app qpg6105+debug (read only) 503220 503468 248 0.0
.text 497900 498148 248 0.0
telink lighting-app tlsr9518adk80d (read/write) 832122 832178 56 0.0
text 580558 580618 60 0.0
Decreases (8 builds for linux)
platform target config section 65ba5df aaf1632 change % change
linux all-clusters-app debug (read only) 2133833 2131225 -2608 -0.1
(read/write) 142624 142592 -32 -0.0
.data.rel.ro 74512 74480 -32 -0.0
.got 4152 4128 -24 -0.6
.rodata 174084 173796 -288 -0.2
.text 1802722 1800706 -2016 -0.1
bridge-app debug+rpc (read only) 1589941 1586349 -3592 -0.2
(read/write) 86816 86784 -32 -0.0
.data.rel.ro 35312 35280 -32 -0.1
.got 4000 3984 -16 -0.4
.rodata 134356 133972 -384 -0.3
.text 1343253 1340261 -2992 -0.2
chip-tool debug (read only) 7026253 7021789 -4464 -0.1
.got 4568 4552 -16 -0.4
.rodata 379145 378793 -352 -0.1
.text 6218645 6214757 -3888 -0.1
chip-tool-ipv6only arm64 (read only) 7014236 7010540 -3696 -0.1
(read/write) 324865 324785 -80 -0.0
.data.rel.ro 208984 208920 -64 -0.0
.rodata 383332 383108 -224 -0.1
.text 5938468 5935236 -3232 -0.1
lighting-app debug+rpc (read only) 1860977 1857377 -3600 -0.2
.got 4160 4144 -16 -0.4
.rodata 153052 152668 -384 -0.3
.text 1558050 1555058 -2992 -0.2
ota-provider-app debug (read only) 1497417 1492833 -4584 -0.3
(read/write) 82592 82560 -32 -0.0
.got 4056 4040 -16 -0.4
.rodata 133398 133022 -376 -0.3
.text 1254674 1250690 -3984 -0.3
ota-requestor-app debug (read only) 1572225 1567609 -4616 -0.3
.got 4056 4040 -16 -0.4
.rodata 138311 137903 -408 -0.3
.text 1321762 1317778 -3984 -0.3
shell debug (read only) 867177 858601 -8576 -1.0
(read/write) 61968 61776 -192 -0.3
.data.rel.ro 40056 39912 -144 -0.4
.got 3616 3576 -40 -1.1
.rodata 88338 87858 -480 -0.5
.text 668386 661090 -7296 -1.1
Full report (29 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 65ba5df aaf1632 change % change
efr32 lighting-app BRD4161A (read only) 829460 829764 304 0.0
(read/write) 127068 127068 0 0.0
.bss 125192 125192 0 0.0
.data 1876 1876 0 0.0
.text 829452 829756 304 0.0
BRD4161A+rpc (read only) 817088 817392 304 0.0
(read/write) 143736 143736 0 0.0
.bss 141760 141760 0 0.0
.data 1976 1976 0 0.0
.text 817080 817384 304 0.0
window-app BRD4161A (read only) 802908 803212 304 0.0
(read/write) 126008 126008 0 0.0
.bss 124176 124176 0 0.0
.data 1832 1832 0 0.0
.text 802900 803204 304 0.0
esp32 all-clusters-app c3devkit (read only) 888438 889188 750 0.1
(read/write) 1313706 1313770 64 0.0
.dram0.bss 69280 69288 8 0.0
.dram0.data 14228 14236 8 0.1
.flash.rodata 177136 177184 48 0.0
.flash.text 888438 889188 750 0.1
.iram0.text 62254 62254 0 0.0
m5stack (read only) 948511 949075 564 0.1
(read/write) 445296 445352 56 0.0
.dram0.bss 73776 73776 0 0.0
.dram0.data 34056 34064 8 0.0
.flash.rodata 206456 206504 48 0.0
.flash.text 943127 943691 564 0.1
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 647784 648488 704 0.1
.bss 76200 76216 16 0.0
.data 1904 1904 0 0.0
.text 563880 564568 688 0.1
lock k32w061+release (read/write) 632608 633312 704 0.1
.bss 75912 75928 16 0.0
.data 1860 1860 0 0.0
.text 549036 549724 688 0.1
linux all-clusters-app debug (read only) 2133833 2131225 -2608 -0.1
(read/write) 142624 142592 -32 -0.0
.bss 61312 61312 0 0.0
.data 1184 1216 32 2.7
.data.rel.ro 74512 74480 -32 -0.0
.dynamic 592 592 0 0.0
.got 4152 4128 -24 -0.6
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 174084 173796 -288 -0.2
.text 1802722 1800706 -2016 -0.1
bridge-app debug+rpc (read only) 1589941 1586349 -3592 -0.2
(read/write) 86816 86784 -32 -0.0
.bss 44608 44608 0 0.0
.data 1760 1760 0 0.0
.data.rel.ro 35312 35280 -32 -0.1
.dynamic 592 592 0 0.0
.got 4000 3984 -16 -0.4
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 134356 133972 -384 -0.3
.text 1343253 1340261 -2992 -0.2
chip-tool debug (read only) 7026253 7021789 -4464 -0.1
(read/write) 212760 212760 0 0.0
.bss 37816 37816 0 0.0
.data 1032 1032 0 0.0
.data.rel.ro 168112 168112 0 0.0
.dynamic 592 592 0 0.0
.got 4568 4552 -16 -0.4
.init 27 27 0 0.0
.init_array 600 600 0 0.0
.rodata 379145 378793 -352 -0.1
.text 6218645 6214757 -3888 -0.1
chip-tool-ipv6only arm64 (read only) 7014236 7010540 -3696 -0.1
(read/write) 324865 324785 -80 -0.0
.bss 54209 54209 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208984 208920 -64 -0.0
.dynamic 560 560 0 0.0
.got 56880 56880 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 383332 383108 -224 -0.1
.text 5938468 5935236 -3232 -0.1
lighting-app debug+rpc (read only) 1860977 1857377 -3600 -0.2
(read/write) 118880 118880 0 0.0
.bss 49408 49408 0 0.0
.data 1280 1280 0 0.0
.data.rel.ro 62744 62744 0 0.0
.dynamic 608 608 0 0.0
.got 4160 4144 -16 -0.4
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 153052 152668 -384 -0.3
.text 1558050 1555058 -2992 -0.2
ota-provider-app debug (read only) 1497417 1492833 -4584 -0.3
(read/write) 82592 82560 -32 -0.0
.bss 46176 46176 0 0.0
.data 936 936 0 0.0
.data.rel.ro 30216 30216 0 0.0
.dynamic 592 592 0 0.0
.got 4056 4040 -16 -0.4
.init 27 27 0 0.0
.init_array 568 568 0 0.0
.rodata 133398 133022 -376 -0.3
.text 1254674 1250690 -3984 -0.3
ota-requestor-app debug (read only) 1572225 1567609 -4616 -0.3
(read/write) 86088 86088 0 0.0
.bss 47904 47904 0 0.0
.data 1032 1032 0 0.0
.data.rel.ro 31864 31864 0 0.0
.dynamic 592 592 0 0.0
.got 4056 4040 -16 -0.4
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 138311 137903 -408 -0.3
.text 1321762 1317778 -3984 -0.3
shell debug (read only) 867177 858601 -8576 -1.0
(read/write) 61968 61776 -192 -0.3
.bss 17064 17064 0 0.0
.data 256 256 0 0.0
.data.rel.ro 40056 39912 -144 -0.4
.dynamic 592 592 0 0.0
.got 3616 3576 -40 -1.1
.init 27 27 0 0.0
.init_array 352 352 0 0.0
.rodata 88338 87858 -480 -0.5
.text 668386 661090 -7296 -1.1
thermostat-no-ble arm64 (read only) 2023804 2023804 0 0.0
(read/write) 144017 144017 0 0.0
.bss 64001 64001 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72272 72272 0 0.0
.dynamic 560 560 0 0.0
.got 3936 3936 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128508 128508 0 0.0
.text 1682656 1682656 0 0.0
tv-app debug (read only) 2209001 2209281 280 0.0
(read/write) 373192 373256 64 0.0
.bss 294432 294432 0 0.0
.data 2912 2912 0 0.0
.data.rel.ro 69896 69960 64 0.1
.dynamic 592 592 0 0.0
.got 4504 4504 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 186676 186676 0 0.0
.text 1855826 1856082 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2345800 2346224 424 0.0
.bss 188540 188548 8 0.0
.data 5304 5312 8 0.2
.text 1308376 1308800 424 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2329384 2329448 64 0.0
.bss 180624 180624 0 0.0
.data 5552 5552 0 0.0
.text 1291984 1292048 64 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2302544 2302608 64 0.0
.bss 179672 179672 0 0.0
.data 5544 5544 0 0.0
.text 1265144 1265208 64 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053888 2053952 64 0.0
.bss 156972 156972 0 0.0
.data 4864 4864 0 0.0
.text 1016488 1016552 64 0.0
p6 all-clusters-app default (read/write) 2400296 2401240 944 0.0
.bss 116748 116748 0 0.0
.data 2584 2592 8 0.3
.text 1358560 1359504 944 0.1
light-app default (read/write) 2324200 2324600 400 0.0
.bss 105872 105872 0 0.0
.data 2384 2384 0 0.0
.text 1282464 1282864 400 0.0
lock-app default (read/write) 2296400 2296800 400 0.0
.bss 104752 104752 0 0.0
.data 2336 2336 0 0.0
.text 1254664 1255064 400 0.0
qpg lighting-app qpg6105+debug (read only) 531416 531672 256 0.0
(read/write) 146936 146936 0 0.0
.bss 86672 86672 0 0.0
.data 1004 1004 0 0.0
.text 526096 526352 256 0.0
lock-app qpg6105+debug (read only) 503220 503468 248 0.0
(read/write) 146940 146940 0 0.0
.bss 85808 85808 0 0.0
.data 952 952 0 0.0
.text 497900 498148 248 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 832122 832178 56 0.0
bss 86856 86856 0 0.0
noinit 37160 37160 0 0.0
text 580558 580618 60 0.0

@github-actions
Copy link

github-actions bot commented Jan 7, 2022

PR #12953: Size comparison from 585cdcb to 718acac

Increases (16 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 585cdcb 718acac change % change
efr32 lighting-app BRD4161A (read only) 828876 828924 48 0.0
.text 828868 828916 48 0.0
BRD4161A+rpc (read only) 816072 816120 48 0.0
.text 816064 816112 48 0.0
window-app BRD4161A (read only) 802324 802388 64 0.0
.text 802316 802380 64 0.0
esp32 all-clusters-app c3devkit (read only) 891834 891854 20 0.0
.flash.text 891834 891854 20 0.0
m5stack (read only) 951779 951823 44 0.0
.flash.text 946395 946439 44 0.0
k32w light k32w061+release (read/write) 655308 655324 16 0.0
.text 570884 570900 16 0.0
lock k32w061+release (read/write) 659584 659616 32 0.0
.text 574844 574876 32 0.0
linux chip-tool-ipv6only arm64 (read only) 7039468 7039532 64 0.0
.text 5961492 5961556 64 0.0
thermostat-no-ble arm64 (read only) 2033468 2033516 48 0.0
.text 1690800 1690848 48 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2348496 2348560 64 0.0
.text 1311072 1311136 64 0.0
p6 all-clusters-app default (read/write) 2401624 2401672 48 0.0
.text 1359888 1359936 48 0.0
light-app default (read/write) 2323648 2323696 48 0.0
.text 1281912 1281960 48 0.0
lock-app default (read/write) 2295872 2295920 48 0.0
.text 1254136 1254184 48 0.0
qpg lighting-app qpg6105+debug (read only) 533160 533192 32 0.0
.text 527840 527872 32 0.0
lock-app qpg6105+debug (read only) 504936 504968 32 0.0
.text 499616 499648 32 0.0
telink lighting-app tlsr9518adk80d (read/write) 834466 834490 24 0.0
text 582710 582738 28 0.0
Full report (21 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 585cdcb 718acac change % change
efr32 lighting-app BRD4161A (read only) 828876 828924 48 0.0
(read/write) 126996 126996 0 0.0
.bss 125120 125120 0 0.0
.data 1876 1876 0 0.0
.text 828868 828916 48 0.0
BRD4161A+rpc (read only) 816072 816120 48 0.0
(read/write) 143656 143656 0 0.0
.bss 141680 141680 0 0.0
.data 1976 1976 0 0.0
.text 816064 816112 48 0.0
window-app BRD4161A (read only) 802324 802388 64 0.0
(read/write) 125936 125936 0 0.0
.bss 124104 124104 0 0.0
.data 1832 1832 0 0.0
.text 802316 802380 64 0.0
esp32 all-clusters-app c3devkit (read only) 891834 891854 20 0.0
(read/write) 1314010 1314010 0 0.0
.dram0.bss 69464 69464 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 177248 177248 0 0.0
.flash.text 891834 891854 20 0.0
.iram0.text 62254 62254 0 0.0
m5stack (read only) 951779 951823 44 0.0
(read/write) 445592 445592 0 0.0
.dram0.bss 73960 73960 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 206560 206560 0 0.0
.flash.text 946395 946439 44 0.0
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 655308 655324 16 0.0
.bss 76776 76776 0 0.0
.data 1848 1848 0 0.0
.text 570884 570900 16 0.0
lock k32w061+release (read/write) 659584 659616 32 0.0
.bss 77072 77072 0 0.0
.data 1868 1868 0 0.0
.text 574844 574876 32 0.0
linux chip-tool-ipv6only arm64 (read only) 7039468 7039532 64 0.0
(read/write) 325985 325985 0 0.0
.bss 54865 54865 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 209296 209296 0 0.0
.dynamic 560 560 0 0.0
.got 57040 57040 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 384404 384404 0 0.0
.text 5961492 5961556 64 0.0
thermostat-no-ble arm64 (read only) 2033468 2033516 48 0.0
(read/write) 145105 145105 0 0.0
.bss 64657 64657 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72624 72624 0 0.0
.dynamic 560 560 0 0.0
.got 4008 4008 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128988 128988 0 0.0
.text 1690800 1690848 48 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2348496 2348560 64 0.0
.bss 188724 188724 0 0.0
.data 5312 5312 0 0.0
.text 1311072 1311136 64 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2330392 2330392 0 0.0
.bss 180544 180544 0 0.0
.data 5552 5552 0 0.0
.text 1292992 1292992 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2303544 2303544 0 0.0
.bss 179592 179592 0 0.0
.data 5544 5544 0 0.0
.text 1266144 1266144 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 157060 157060 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
p6 all-clusters-app default (read/write) 2401624 2401672 48 0.0
.bss 116804 116804 0 0.0
.data 2592 2592 0 0.0
.text 1359888 1359936 48 0.0
light-app default (read/write) 2323648 2323696 48 0.0
.bss 105672 105672 0 0.0
.data 2384 2384 0 0.0
.text 1281912 1281960 48 0.0
lock-app default (read/write) 2295872 2295920 48 0.0
.bss 104552 104552 0 0.0
.data 2336 2336 0 0.0
.text 1254136 1254184 48 0.0
qpg lighting-app qpg6105+debug (read only) 533160 533192 32 0.0
(read/write) 146936 146936 0 0.0
.bss 86624 86624 0 0.0
.data 1004 1004 0 0.0
.text 527840 527872 32 0.0
lock-app qpg6105+debug (read only) 504936 504968 32 0.0
(read/write) 146940 146940 0 0.0
.bss 85760 85760 0 0.0
.data 952 952 0 0.0
.text 499616 499648 32 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 834466 834490 24 0.0
bss 86924 86924 0 0.0
noinit 37160 37160 0 0.0
text 582710 582738 28 0.0

@github-actions
Copy link

github-actions bot commented Jan 12, 2022

PR #12953: Size comparison from 34e4032 to 4787bb0

Increases (16 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 34e4032 4787bb0 change % change
efr32 lighting-app BRD4161A (read only) 830532 830580 48 0.0
.text 830524 830572 48 0.0
BRD4161A+rpc (read only) 817936 817984 48 0.0
.text 817928 817976 48 0.0
window-app BRD4161A (read only) 804476 804540 64 0.0
.text 804468 804532 64 0.0
esp32 all-clusters-app c3devkit (read only) 908118 908138 20 0.0
.flash.text 908118 908138 20 0.0
m5stack (read only) 956875 956919 44 0.0
.flash.text 951491 951535 44 0.0
k32w light k32w061+release (read/write) 656636 656668 32 0.0
.text 572160 572192 32 0.0
lock k32w061+release (read/write) 660980 660996 16 0.0
.text 576188 576204 16 0.0
linux chip-tool-ipv6only arm64 (read only) 7207756 7207804 48 0.0
.text 6083172 6083220 48 0.0
thermostat-no-ble arm64 (read only) 2038540 2038588 48 0.0
.text 1694608 1694656 48 0.0
mbed lighting-app CY8CPROTO_062_4343W+release (read/write) 2330808 2330872 64 0.0
.text 1293408 1293472 64 0.0
p6 all-clusters-app default (read/write) 2399688 2399736 48 0.0
.text 1357952 1358000 48 0.0
light-app default (read/write) 2325376 2325440 64 0.0
.text 1283640 1283704 64 0.0
lock-app default (read/write) 2297600 2297664 64 0.0
.text 1255864 1255928 64 0.0
qpg lighting-app qpg6105+debug (read only) 534716 534748 32 0.0
.text 529396 529428 32 0.0
lock-app qpg6105+debug (read only) 506636 506668 32 0.0
.text 501316 501348 32 0.0
telink lighting-app tlsr9518adk80d (read/write) 836102 836126 24 0.0
text 583852 583880 28 0.0
Full report (21 builds for efr32, esp32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 34e4032 4787bb0 change % change
efr32 lighting-app BRD4161A (read only) 830532 830580 48 0.0
(read/write) 127300 127300 0 0.0
.bss 125420 125420 0 0.0
.data 1880 1880 0 0.0
.text 830524 830572 48 0.0
BRD4161A+rpc (read only) 817936 817984 48 0.0
(read/write) 143964 143964 0 0.0
.bss 141980 141980 0 0.0
.data 1980 1980 0 0.0
.text 817928 817976 48 0.0
window-app BRD4161A (read only) 804476 804540 64 0.0
(read/write) 126004 126004 0 0.0
.bss 124168 124168 0 0.0
.data 1836 1836 0 0.0
.text 804468 804532 64 0.0
esp32 all-clusters-app c3devkit (read only) 908118 908138 20 0.0
(read/write) 1315962 1315962 0 0.0
.dram0.bss 70176 70176 0 0.0
.dram0.data 14284 14284 0 0.0
.flash.rodata 178016 178016 0 0.0
.flash.text 908118 908138 20 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 956875 956919 44 0.0
(read/write) 448128 448128 0 0.0
.dram0.bss 74640 74640 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 207296 207296 0 0.0
.flash.text 951491 951535 44 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 656636 656668 32 0.0
.bss 76824 76824 0 0.0
.data 1852 1852 0 0.0
.text 572160 572192 32 0.0
lock k32w061+release (read/write) 660980 660996 16 0.0
.bss 77120 77120 0 0.0
.data 1872 1872 0 0.0
.text 576188 576204 16 0.0
linux chip-tool-ipv6only arm64 (read only) 7207756 7207804 48 0.0
(read/write) 345073 345073 0 0.0
.bss 54865 54865 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 227000 227000 0 0.0
.dynamic 560 560 0 0.0
.got 58416 58416 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 392228 392228 0 0.0
.text 6083172 6083220 48 0.0
thermostat-no-ble arm64 (read only) 2038540 2038588 48 0.0
(read/write) 145505 145505 0 0.0
.bss 64737 64737 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72912 72912 0 0.0
.dynamic 560 560 0 0.0
.got 4040 4040 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129628 129628 0 0.0
.text 1694608 1694656 48 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2345840 2345840 0 0.0
.bss 188876 188876 0 0.0
.data 5320 5320 0 0.0
.text 1308416 1308416 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2330808 2330872 64 0.0
.bss 180416 180416 0 0.0
.data 5552 5552 0 0.0
.text 1293408 1293472 64 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304032 2304032 0 0.0
.bss 179456 179456 0 0.0
.data 5544 5544 0 0.0
.text 1266632 1266632 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054232 2054232 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016832 1016832 0 0.0
p6 all-clusters-app default (read/write) 2399688 2399736 48 0.0
.bss 117148 117148 0 0.0
.data 2592 2592 0 0.0
.text 1357952 1358000 48 0.0
light-app default (read/write) 2325376 2325440 64 0.0
.bss 105728 105728 0 0.0
.data 2384 2384 0 0.0
.text 1283640 1283704 64 0.0
lock-app default (read/write) 2297600 2297664 64 0.0
.bss 104608 104608 0 0.0
.data 2344 2344 0 0.0
.text 1255864 1255928 64 0.0
qpg lighting-app qpg6105+debug (read only) 534716 534748 32 0.0
(read/write) 146940 146940 0 0.0
.bss 89024 89024 0 0.0
.data 1008 1008 0 0.0
.text 529396 529428 32 0.0
lock-app qpg6105+debug (read only) 506636 506668 32 0.0
(read/write) 146936 146936 0 0.0
.bss 88160 88160 0 0.0
.data 956 956 0 0.0
.text 501316 501348 32 0.0
persistent-storage-app qpg6105+debug (read only) 106832 106832 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101512 101512 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 836102 836126 24 0.0
bss 86976 86976 0 0.0
noinit 37160 37160 0 0.0
text 583852 583880 28 0.0

@msandstedt
Copy link
Contributor

Is there an override to bypass the permissions check? We can't enable actual ACL checks until our basic flows can actually distribute permissions in a fabric.

I would think at a minimum this means we need the commissioner to allow writing an arbitrary AdminSubject and we need CATs supported as subjects.

@mlepage-google
Copy link
Contributor Author

@msandstedt don't worry, ACL won't be turned on until it's ready to use.

@mlepage-google
Copy link
Contributor Author

This PR is just to get the actual subject descriptor from the underlying exchange context, which must always be present.

However, we have tests which violate that, by not providing a proper exchange context or mock. This is why CI tests fail on this PR.

Now that I got a few other things done, I'll start to look at getting the tests running with this PR.

Unit tests did not always provide an exchange context for tests of
command interaction.

This required some special handling for test cases in actual
command handling code, and blocked cases (e.g. access control)
which require an exchange context.

So provide an exchange context even in test cases.
@mlepage-google
Copy link
Contributor Author

OK, I spent the entire day spelunking through TestCommandInteraction.cpp and I think I've managed to add an exchange context for the test cases that did not have it.

I removed the special check for an exchange context in test cases in CommandHandler::ProcessInvokeRequest and replaced it with a VerifyOrReturnError.

@bzbarsky-apple @yunhanw-google @erjiaqing
PLEASE CHECK THE DIFF ON MY COMMIT JUST NOW AND TELL ME IF I DIDN'T DO THIS CORRECTLY.

Tests do seem to pass locally (will see how CI goes) and I was still able to read/write attributes using REPL with all-clusters-app on Linux.

@github-actions
Copy link

github-actions bot commented Jan 13, 2022

PR #12953: Size comparison from 2d6d1a3 to ebf5202

Increases (26 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 2d6d1a3 ebf5202 change % change
efr32 lighting-app BRD4161A (read only) 831392 831824 432 0.1
.text 831384 831816 432 0.1
BRD4161A+rpc (read only) 818772 819204 432 0.1
.text 818764 819196 432 0.1
window-app BRD4161A (read only) 805272 805496 224 0.0
.text 805264 805488 224 0.0
esp32 all-clusters-app c3devkit (read only) 908520 909466 946 0.1
.flash.text 908520 909466 946 0.1
m5stack (read only) 957299 958443 1144 0.1
.flash.text 951915 953059 1144 0.1
k32w light k32w061+release (read/write) 657752 657976 224 0.0
.text 572964 573188 224 0.0
lock k32w061+release (read/write) 661532 661692 160 0.0
.text 576428 576588 160 0.0
linux chip-tool-ipv6only arm64 (read only) 8018628 8025060 6432 0.1
.text 6812964 6819396 6432 0.1
thermostat-no-ble arm64 (read only) 2040924 2042316 1392 0.1
.text 1696464 1697856 1392 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2346416 2347504 1088 0.0
.text 1308992 1310080 1088 0.1
lighting-app CY8CPROTO_062_4343W+release (read/write) 2331240 2331744 504 0.0
.text 1293840 1294344 504 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304464 2304712 248 0.0
.text 1267064 1267312 248 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 940303 940687 384 0.0
text 634620 635000 380 0.1
nrf52840dk_nrf52840+rpc (read/write) 925739 926155 416 0.0
text 629972 630392 420 0.1
nrf52840dongle_nrf52840 (read/write) 990983 991351 368 0.0
text 666816 667196 380 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 850130 850498 368 0.0
text 551536 551916 380 0.1
lock-app nrf52840dk_nrf52840 (read/write) 912543 912703 160 0.0
text 612612 612772 160 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822614 822774 160 0.0
text 529568 529728 160 0.0
pump-app nrf52840dk_nrf52840 (read/write) 913855 914079 224 0.0
text 613872 614096 224 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910655 910815 160 0.0
text 611368 611528 160 0.0
p6 all-clusters-app default (read/write) 2400616 2401672 1056 0.0
.text 1358880 1359936 1056 0.1
light-app default (read/write) 2326152 2326600 448 0.0
.text 1284416 1284864 448 0.0
lock-app default (read/write) 2298384 2298560 176 0.0
.text 1256648 1256824 176 0.0
qpg lighting-app qpg6105+debug (read only) 534972 535348 376 0.1
.text 529652 530028 376 0.1
lock-app qpg6105+debug (read only) 506896 507048 152 0.0
.text 501576 501728 152 0.0
telink lighting-app tlsr9518adk80d (read/write) 836950 837566 616 0.1
text 584320 584930 610 0.1
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 2d6d1a3 ebf5202 change % change
efr32 lighting-app BRD4161A (read only) 831392 831824 432 0.1
(read/write) 127612 127612 0 0.0
.bss 125732 125732 0 0.0
.data 1880 1880 0 0.0
.text 831384 831816 432 0.1
BRD4161A+rpc (read only) 818772 819204 432 0.1
(read/write) 144272 144272 0 0.0
.bss 142292 142292 0 0.0
.data 1980 1980 0 0.0
.text 818764 819196 432 0.1
window-app BRD4161A (read only) 805272 805496 224 0.0
(read/write) 126320 126320 0 0.0
.bss 124480 124480 0 0.0
.data 1836 1836 0 0.0
.text 805264 805488 224 0.0
esp32 all-clusters-app c3devkit (read only) 908520 909466 946 0.1
(read/write) 1316498 1316498 0 0.0
.dram0.bss 70504 70504 0 0.0
.dram0.data 14284 14284 0 0.0
.flash.rodata 178216 178216 0 0.0
.flash.text 908520 909466 946 0.1
.iram0.text 62056 62056 0 0.0
m5stack (read only) 957299 958443 1144 0.1
(read/write) 448664 448664 0 0.0
.dram0.bss 74976 74976 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 207496 207496 0 0.0
.flash.text 951915 953059 1144 0.1
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 657752 657976 224 0.0
.bss 77136 77136 0 0.0
.data 1852 1852 0 0.0
.text 572964 573188 224 0.0
lock k32w061+release (read/write) 661532 661692 160 0.0
.bss 77432 77432 0 0.0
.data 1872 1872 0 0.0
.text 576428 576588 160 0.0
linux chip-tool-ipv6only arm64 (read only) 8018628 8025060 6432 0.1
(read/write) 370241 370241 0 0.0
.bss 55217 55217 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 245760 245760 0 0.0
.dynamic 560 560 0 0.0
.got 64472 64472 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 417772 417772 0 0.0
.text 6812964 6819396 6432 0.1
thermostat-no-ble arm64 (read only) 2040924 2042316 1392 0.1
(read/write) 145969 145969 0 0.0
.bss 65089 65089 0 0.0
.data 880 880 0 0.0
.data.rel.ro 73016 73016 0 0.0
.dynamic 560 560 0 0.0
.got 4048 4048 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129868 129868 0 0.0
.text 1696464 1697856 1392 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2346416 2347504 1088 0.0
.bss 189204 189204 0 0.0
.data 5320 5320 0 0.0
.text 1308992 1310080 1088 0.1
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2331240 2331744 504 0.0
.bss 180728 180728 0 0.0
.data 5552 5552 0 0.0
.text 1293840 1294344 504 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304464 2304712 248 0.0
.bss 179768 179768 0 0.0
.data 5544 5544 0 0.0
.text 1267064 1267312 248 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054456 2054456 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1017056 1017056 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 940303 940687 384 0.0
bss 119596 119596 0 0.0
rodata 108508 108508 0 0.0
text 634620 635000 380 0.1
nrf52840dk_nrf52840+rpc (read/write) 925739 926155 416 0.0
bss 116640 116640 0 0.0
rodata 100960 100960 0 0.0
text 629972 630392 420 0.1
nrf52840dongle_nrf52840 (read/write) 990983 991351 368 0.0
bss 122440 122440 0 0.0
rodata 113264 113264 0 0.0
text 666816 667196 380 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 850130 850498 368 0.0
bss 116384 116384 0 0.0
rodata 101684 101684 0 0.0
text 551536 551916 380 0.1
lock-app nrf52840dk_nrf52840 (read/write) 912543 912703 160 0.0
bss 118784 118784 0 0.0
rodata 103780 103780 0 0.0
text 612612 612772 160 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822614 822774 160 0.0
bss 115600 115600 0 0.0
rodata 97008 97008 0 0.0
text 529568 529728 160 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 913855 914079 224 0.0
bss 118544 118544 0 0.0
rodata 103996 103996 0 0.0
text 613872 614096 224 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910655 910815 160 0.0
bss 118572 118572 0 0.0
rodata 103252 103252 0 0.0
text 611368 611528 160 0.0
shell nrf52840dk_nrf52840 (read/write) 798643 798643 0 0.0
bss 109776 109776 0 0.0
rodata 78376 78376 0 0.0
text 533988 533988 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711462 711462 0 0.0
bss 107664 107664 0 0.0
rodata 72680 72680 0 0.0
text 451668 451668 0 0.0
p6 all-clusters-app default (read/write) 2400616 2401672 1056 0.0
.bss 117484 117484 0 0.0
.data 2592 2592 0 0.0
.text 1358880 1359936 1056 0.1
light-app default (read/write) 2326152 2326600 448 0.0
.bss 106040 106040 0 0.0
.data 2384 2384 0 0.0
.text 1284416 1284864 448 0.0
lock-app default (read/write) 2298384 2298560 176 0.0
.bss 104920 104920 0 0.0
.data 2344 2344 0 0.0
.text 1256648 1256824 176 0.0
qpg lighting-app qpg6105+debug (read only) 534972 535348 376 0.1
(read/write) 146940 146940 0 0.0
.bss 89336 89336 0 0.0
.data 1008 1008 0 0.0
.text 529652 530028 376 0.1
lock-app qpg6105+debug (read only) 506896 507048 152 0.0
(read/write) 146936 146936 0 0.0
.bss 88472 88472 0 0.0
.data 956 956 0 0.0
.text 501576 501728 152 0.0
persistent-storage-app qpg6105+debug (read only) 106848 106848 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101528 101528 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 836950 837566 616 0.1
bss 87288 87288 0 0.0
noinit 37160 37160 0 0.0
text 584320 584930 610 0.1

@bzbarsky-apple
Copy link
Contributor

PLEASE CHECK THE DIFF ON MY COMMIT JUST NOW AND TELL ME IF I DIDN'T DO THIS CORRECTLY.

As discussed on Slack, seems fine for now.

@mlepage-google
Copy link
Contributor Author

Rebase to pull in some fixes for Darwin CI tests.

@github-actions
Copy link

github-actions bot commented Jan 14, 2022

PR #12953: Size comparison from 827fabd to a10fa63

Increases (26 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 827fabd a10fa63 change % change
efr32 lighting-app BRD4161A (read only) 832764 832812 48 0.0
.text 832756 832804 48 0.0
BRD4161A+rpc (read only) 820168 820216 48 0.0
.text 820160 820208 48 0.0
window-app BRD4161A (read only) 805424 805472 48 0.0
.text 805416 805464 48 0.0
esp32 all-clusters-app c3devkit (read only) 910034 910072 38 0.0
.flash.text 910034 910072 38 0.0
m5stack (read only) 959027 959063 36 0.0
.flash.text 953643 953679 36 0.0
k32w light k32w061+release (read/write) 657920 657952 32 0.0
.text 573132 573164 32 0.0
lock k32w061+release (read/write) 661604 661636 32 0.0
.text 576500 576532 32 0.0
linux chip-tool-ipv6only arm64 (read only) 8038420 8038596 176 0.0
.text 6830564 6830740 176 0.0
thermostat-no-ble arm64 (read only) 2041980 2042156 176 0.0
.text 1697504 1697680 176 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2347832 2347960 128 0.0
.text 1310408 1310536 128 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2332416 2332544 128 0.0
.text 1295016 1295144 128 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304536 2304656 120 0.0
.text 1267136 1267256 120 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 941447 941479 32 0.0
text 635576 635608 32 0.0
nrf52840dk_nrf52840+rpc (read/write) 926911 926943 32 0.0
text 630968 631000 32 0.0
nrf52840dongle_nrf52840 (read/write) 992091 992123 32 0.0
text 667772 667804 32 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 851270 851302 32 0.0
text 552492 552524 32 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912619 912651 32 0.0
text 612672 612704 32 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822686 822718 32 0.0
text 529632 529664 32 0.0
pump-app nrf52840dk_nrf52840 (read/write) 913991 914023 32 0.0
text 613996 614028 32 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910747 910779 32 0.0
text 611448 611480 32 0.0
p6 all-clusters-app default (read/write) 2402304 2402368 64 0.0
.text 1360568 1360632 64 0.0
light-app default (read/write) 2327544 2327592 48 0.0
.text 1285808 1285856 48 0.0
lock-app default (read/write) 2298456 2298504 48 0.0
.text 1256720 1256768 48 0.0
qpg lighting-app qpg6105+debug (read only) 561976 562008 32 0.0
.text 556656 556688 32 0.0
lock-app qpg6105+debug (read only) 515292 515324 32 0.0
.text 509972 510004 32 0.0
telink lighting-app tlsr9518adk80d (read/write) 838462 838502 40 0.0
text 585618 585658 40 0.0
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 827fabd a10fa63 change % change
efr32 lighting-app BRD4161A (read only) 832764 832812 48 0.0
(read/write) 127628 127628 0 0.0
.bss 125744 125744 0 0.0
.data 1884 1884 0 0.0
.text 832756 832804 48 0.0
BRD4161A+rpc (read only) 820168 820216 48 0.0
(read/write) 144288 144288 0 0.0
.bss 142304 142304 0 0.0
.data 1984 1984 0 0.0
.text 820160 820208 48 0.0
window-app BRD4161A (read only) 805424 805472 48 0.0
(read/write) 126320 126320 0 0.0
.bss 124480 124480 0 0.0
.data 1836 1836 0 0.0
.text 805416 805464 48 0.0
esp32 all-clusters-app c3devkit (read only) 910034 910072 38 0.0
(read/write) 1316506 1316506 0 0.0
.dram0.bss 70504 70504 0 0.0
.dram0.data 14284 14284 0 0.0
.flash.rodata 178224 178224 0 0.0
.flash.text 910034 910072 38 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 959027 959063 36 0.0
(read/write) 448672 448672 0 0.0
.dram0.bss 74976 74976 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 207504 207504 0 0.0
.flash.text 953643 953679 36 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 657920 657952 32 0.0
.bss 77136 77136 0 0.0
.data 1852 1852 0 0.0
.text 573132 573164 32 0.0
lock k32w061+release (read/write) 661604 661636 32 0.0
.bss 77432 77432 0 0.0
.data 1872 1872 0 0.0
.text 576500 576532 32 0.0
linux chip-tool-ipv6only arm64 (read only) 8038420 8038596 176 0.0
(read/write) 370497 370497 0 0.0
.bss 55217 55217 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 245760 245760 0 0.0
.dynamic 560 560 0 0.0
.got 64728 64728 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 419196 419196 0 0.0
.text 6830564 6830740 176 0.0
thermostat-no-ble arm64 (read only) 2041980 2042156 176 0.0
(read/write) 145969 145969 0 0.0
.bss 65089 65089 0 0.0
.data 880 880 0 0.0
.data.rel.ro 73016 73016 0 0.0
.dynamic 560 560 0 0.0
.got 4048 4048 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129884 129884 0 0.0
.text 1697504 1697680 176 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2347832 2347960 128 0.0
.bss 189204 189204 0 0.0
.data 5320 5320 0 0.0
.text 1310408 1310536 128 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2332416 2332544 128 0.0
.bss 180752 180752 0 0.0
.data 5560 5560 0 0.0
.text 1295016 1295144 128 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304536 2304656 120 0.0
.bss 179768 179768 0 0.0
.data 5544 5544 0 0.0
.text 1267136 1267256 120 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054464 2054464 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1017064 1017064 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 941447 941479 32 0.0
bss 119624 119624 0 0.0
rodata 108660 108660 0 0.0
text 635576 635608 32 0.0
nrf52840dk_nrf52840+rpc (read/write) 926911 926943 32 0.0
bss 116668 116668 0 0.0
rodata 101108 101108 0 0.0
text 630968 631000 32 0.0
nrf52840dongle_nrf52840 (read/write) 992091 992123 32 0.0
bss 122464 122464 0 0.0
rodata 113412 113412 0 0.0
text 667772 667804 32 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 851270 851302 32 0.0
bss 116412 116412 0 0.0
rodata 101832 101832 0 0.0
text 552492 552524 32 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912619 912651 32 0.0
bss 118784 118784 0 0.0
rodata 103792 103792 0 0.0
text 612672 612704 32 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822686 822718 32 0.0
bss 115600 115600 0 0.0
rodata 97016 97016 0 0.0
text 529632 529664 32 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 913991 914023 32 0.0
bss 118544 118544 0 0.0
rodata 104004 104004 0 0.0
text 613996 614028 32 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910747 910779 32 0.0
bss 118572 118572 0 0.0
rodata 103264 103264 0 0.0
text 611448 611480 32 0.0
shell nrf52840dk_nrf52840 (read/write) 798655 798655 0 0.0
bss 109776 109776 0 0.0
rodata 78388 78388 0 0.0
text 533992 533992 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711470 711470 0 0.0
bss 107664 107664 0 0.0
rodata 72688 72688 0 0.0
text 451672 451672 0 0.0
p6 all-clusters-app default (read/write) 2402304 2402368 64 0.0
.bss 117484 117484 0 0.0
.data 2592 2592 0 0.0
.text 1360568 1360632 64 0.0
light-app default (read/write) 2327544 2327592 48 0.0
.bss 106064 106064 0 0.0
.data 2392 2392 0 0.0
.text 1285808 1285856 48 0.0
lock-app default (read/write) 2298456 2298504 48 0.0
.bss 104920 104920 0 0.0
.data 2344 2344 0 0.0
.text 1256720 1256768 48 0.0
qpg lighting-app qpg6105+debug (read only) 561976 562008 32 0.0
(read/write) 146936 146936 0 0.0
.bss 89952 89952 0 0.0
.data 1044 1044 0 0.0
.text 556656 556688 32 0.0
lock-app qpg6105+debug (read only) 515292 515324 32 0.0
(read/write) 146936 146936 0 0.0
.bss 88584 88584 0 0.0
.data 972 972 0 0.0
.text 509972 510004 32 0.0
persistent-storage-app qpg6105+debug (read only) 106848 106848 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38512 38512 0 0.0
.data 288 288 0 0.0
.text 101528 101528 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 838462 838502 40 0.0
bss 87312 87312 0 0.0
noinit 37160 37160 0 0.0
text 585618 585658 40 0.0

@mlepage-google mlepage-google merged commit f12831d into project-chip:master Jan 14, 2022
@mlepage-google mlepage-google deleted the subject-descriptor-in-command-handler branch January 14, 2022 19:00
selissia pushed a commit to selissia/connectedhomeip that referenced this pull request Jan 28, 2022
Get the subject descriptor (from the exchange context session handle)
in the command handler so an access control check can be performed
before executing a command.

Unit tests did not always provide an exchange context for tests of
command interaction.

This required some special handling for test cases in actual
command handling code, and blocked cases (e.g. access control)
which require an exchange context.

So provide an exchange context even in test cases.
step0035 pushed a commit to hank820/connectedhomeip that referenced this pull request Feb 8, 2022
Get the subject descriptor (from the exchange context session handle)
in the command handler so an access control check can be performed
before executing a command.

Unit tests did not always provide an exchange context for tests of
command interaction.

This required some special handling for test cases in actual
command handling code, and blocked cases (e.g. access control)
which require an exchange context.

So provide an exchange context even in test cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants