summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-11-28 18:51:12 -0500
committerPaul Moore <paul@paul-moore.com>2017-11-28 18:51:12 -0500
commitef28df55ac27e1e5cd122e19fa311d886d47a756 (patch)
tree61410c34607ca1bdf625b74467f1811f947f5690 /tools/perf/scripts/python
parent4f0753e708c2e07f6e9bc1adfa73138e8ab0ee5d (diff)
downloadkernel-ef28df55ac27e1e5cd122e19fa311d886d47a756.tar.gz
selinux: ensure the context is NUL terminated in security_context_to_sid_core()
The syzbot/syzkaller automated tests found a problem in security_context_to_sid_core() during early boot (before we load the SELinux policy) where we could potentially feed context strings without NUL terminators into the strcmp() function. We already guard against this during normal operation (after the SELinux policy has been loaded) by making a copy of the context strings and explicitly adding a NUL terminator to the end. The patch extends this protection to the early boot case (no loaded policy) by moving the context copy earlier in security_context_to_sid_core(). Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Paul Moore <paul@paul-moore.com> Reviewed-By: William Roberts <william.c.roberts@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
d>Tudor Ambarus 2022-02-24ARM: dts: at91: remove status = "okay" from soc specific dtsiClaudiu Beznea 2021-12-13ARM: dts: at91: sama7g5: Add QSPI nodesTudor Ambarus 2021-11-03Merge tag 'dt-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/socLinus Torvalds 2021-10-21ARM: dts: at91: sama7g5: add tcb nodesClaudiu Beznea 2021-10-21ARM: dts: at91: sama7g5: add rtc nodeEugen Hristev 2021-09-15ARM: dts: at91: sama7g5: add node for the ADCEugen Hristev 2021-09-14ARM: dts: at91: sama7g5: add chipidClaudiu Beznea 2021-09-14ARM: dts: at91: sama7g5: add shdwc nodeClaudiu Beznea 2021-09-14ARM: dts: at91: sama7g5: add securam nodeClaudiu Beznea 2021-09-14ARM: dts: at91: sama7g5: add ram controllersClaudiu Beznea 2021-07-19ARM: dts: at91: add sama7g5 SoC DT and sama7g5-ekEugen Hristev