summaryrefslogtreecommitdiffstats
path: root/src/build/security
Commit message (Collapse)AuthorAgeFilesLines
* treewide: use print function instead of statementMarty E. Plummer2020-01-151-46/+48
| | | | | | | | | | | | | | | | | | | | This enables better compat between python2.7 and python3.x Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: File: "sbe/src/build/security/securityRegListGen.py", line 64 -v, --verbose enable verbose traces" ^ SyntaxError: Missing parentheses in call to 'print' Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Change-Id: Id617f54096fca5cc5fcd829767595a85350e343d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89618 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* securityRegListGen: use io.open and read in text mode.Marty E. Plummer2020-01-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | io.open is compatible with python3.x's open builtin. Open in text mode (no 'b') as this is a plain csv file, and specify the encoding as utf8. Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: File "sbe/src/build/security/securityRegListGen.py", line 695, in <module> main(sys.argv) File "sbe/src/build/security/securityRegListGen.py", line 592, in main for idx, row in enumerate(reader): File "/usr/lib/python3.5/csv.py", line 109, in __next__ self.fieldnames File "/usr/lib/python3.5/csv.py", line 96, in fieldnames self._fieldnames = next(self.reader) _csv.Error: iterator should return strings, not bytes (did you open the file in text mode?) Change-Id: Ib86ea774b40c89e83ab1c0474014222f2fe9ddb9 Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89386 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Srikantha S. Meesala <srikantha@in.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* White/Black/Grey List Binary dump full SBE implementationSrikantha Meesala2019-03-141-24/+24
| | | | | | | | Change-Id: I7e547677102edb93b562dae767fd5a01b86958ce Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70842 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* Support for greylistSachin Gupta2018-06-191-3/+61
| | | | | | | | | | | | | | | In this commit support is added to parse bit mask and create data structure in sbe. Change-Id: Ia7a532de138dbd879d2bf5d54ce5d315884d0469 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60761 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> (cherry picked from commit a2139de912b1513f0a1f0c5967aa1e6b413961b2) Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60675
* Bump up security list table size datatypespashabk-in2018-06-111-5/+5
| | | | | | | | | | | | Change-Id: I29a6efe5cfd65393deec0d828cecb5052cf68d42 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60300 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> (cherry picked from commit 9f63d2dfe644009fc2389f566830802db2011e96) Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60288 Tested-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Strip spaces in csv fieldsspashabk-in2017-10-051-6/+6
| | | | | | | | | | Remove spaces in the csv fields for comparision to work Change-Id: Idf0316f7b92035cc58278c5e7af03e906da9cebc Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/47997 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* Update security testcasespashabk-in2017-10-041-1/+1
| | | | | | | | | Update scom address in reg security testcases to a known value Change-Id: I9c15e2f07ec54a42e3b0279e5350bd82c07eadd0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/47118 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* [Whitelist/Blacklist] - Enable scom filter and testcase additionspashabk-in2017-10-041-20/+40
| | | | | | | | | | | | | Implemented whitelist/blacklist filtering on scom chip-ops Removed separate scom tetcases and included the same in security testcases Included security negative testcases for scom filtering Change-Id: I41e5aa1a059b7a60b83e8740c738de41dc30dd3f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41871 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
* [Whitelist/Blacklist] - Algorithm implementationspashabk-in2017-10-041-6/+8
| | | | | | | | | | | | | | | Added data structures for the tables Added framework for Security algorithm implementation Added generated file for the security table Implemented the source code for the algorithm Incremental size with current csv - 1500bytes Change-Id: Ifb9f2ee4a406c61488c0f3ccaab58318126550f1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41821 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
* [Whitelist/Blacklist] - table generationspashabk-in2017-09-111-1/+590
| | | | | | | | | | | | | Tables generation implemented Change-Id: I35f33847a7c24d5ea623837ca0944a5b90f3454d RTC: 174252 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41300 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
* [Whitelist/Blacklist] - Files additionspashabk-in2017-08-251-0/+24
Adding new files in SBE build and compilation unit Change-Id: Ia19c0a2944ec46b88e657f2aa11cf302da34837f RTC: 174252 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40908 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
OpenPOWER on IntegriCloud