Commit 554f284
authored
[ACE] perform initial ACL checks before existence checks to avoid leaking non-existence (project-chip#39415)
* CommandHandler: returning AccessFailures before Existence Failures
* WriteHandler: returning ACL check failures before Attribute existence failures
* Adapting TC_ACE_2.2 for WriteHandler Changes
* Adapting changes to new spec
* removing TODO comment
* Adding Unit Tests
* minor fixes and gemini comments
* Unit Tests fix
* Integrating Comments1 parent b641cdb commit 554f284
File tree
10 files changed
+708
-38
lines changed- src
- app
- tests
- python_testing
10 files changed
+708
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
539 | 544 | | |
540 | 545 | | |
541 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
1799 | | - | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
1800 | 1809 | | |
1801 | 1810 | | |
1802 | 1811 | | |
| |||
1805 | 1814 | | |
1806 | 1815 | | |
1807 | 1816 | | |
1808 | | - | |
| 1817 | + | |
1809 | 1818 | | |
1810 | 1819 | | |
1811 | 1820 | | |
1812 | 1821 | | |
1813 | 1822 | | |
1814 | 1823 | | |
1815 | | - | |
| 1824 | + | |
1816 | 1825 | | |
1817 | 1826 | | |
1818 | 1827 | | |
| |||
1824 | 1833 | | |
1825 | 1834 | | |
1826 | 1835 | | |
1827 | | - | |
| 1836 | + | |
1828 | 1837 | | |
1829 | 1838 | | |
1830 | 1839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
775 | 776 | | |
776 | 777 | | |
777 | 778 | | |
| |||
790 | 791 | | |
791 | 792 | | |
792 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
793 | 809 | | |
794 | 810 | | |
795 | 811 | | |
| |||
812 | 828 | | |
813 | 829 | | |
814 | 830 | | |
815 | | - | |
816 | | - | |
817 | | - | |
| 831 | + | |
818 | 832 | | |
819 | | - | |
| 833 | + | |
820 | 834 | | |
821 | | - | |
822 | | - | |
| 835 | + | |
| 836 | + | |
823 | 837 | | |
824 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
825 | 841 | | |
826 | | - | |
827 | 842 | | |
828 | | - | |
829 | | - | |
830 | | - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
831 | 850 | | |
832 | 851 | | |
833 | 852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
0 commit comments