SYMBOL INDEX (465 symbols across 40 files) FILE: cmd/fwanalyzer/fwanalyzer.go function readFileWithCfgPath (line 40) | func readFileWithCfgPath(filepath string, cfgpath []string) (string, err... function readConfig (line 52) | func readConfig(filepath string, cfgpath []string) (string, error) { type arrayFlags (line 79) | type arrayFlags method String (line 81) | func (af *arrayFlags) String() string { method Set (line 85) | func (af *arrayFlags) Set(value string) error { function main (line 90) | func main() { FILE: cmd/fwanalyzer/fwanalyzer_test.go function TestMain (line 27) | func TestMain(t *testing.T) { FILE: devices/android/check_ota.py class CheckOTA (line 28) | class CheckOTA: method __init__ (line 29) | def __init__(self, fwanalyzer="fwanalyzer"): method getTmpDir (line 34) | def getTmpDir(self): method setUnpacked (line 37) | def setUnpacked(self, unpacked): method runFwAnalyzeFs (line 41) | def runFwAnalyzeFs(self, img, cfg, cfginc, out): method unpack (line 48) | def unpack(self, otafile, otaunpacker, mkboot): method delTmpDir (line 63) | def delTmpDir(self): method checkResult (line 68) | def checkResult(self, result): function getCfg (line 80) | def getCfg(name): function getOut (line 84) | def getOut(name): function getImg (line 88) | def getImg(name): function hashfile (line 94) | def hashfile(fpath): function makeReport (line 105) | def makeReport(ota, data): FILE: devices/check.py class CheckFirmware (line 25) | class CheckFirmware: method __init__ (line 26) | def __init__(self, fwanalyzer="fwanalyzer"): method get_tmp_dir (line 32) | def get_tmp_dir(self): method run_fwanalyzer_fs (line 35) | def run_fwanalyzer_fs(self, img, cfg, cfginc, out, options=""): method unpack (line 42) | def unpack(self, fwfile, unpacker, cfgpath): method del_tmp_dir (line 66) | def del_tmp_dir(self): method files_by_ext_stat (line 70) | def files_by_ext_stat(self, data): method analyze_filetree (line 81) | def analyze_filetree(self, filetreefile): method check_result (line 100) | def check_result(self, result): function hashfile (line 118) | def hashfile(fpath): function make_report (line 129) | def make_report(fwfile, data): FILE: pkg/analyzer/analyzer.go type AnalyzerPluginType (line 41) | type AnalyzerPluginType interface type AnalyzerType (line 48) | type AnalyzerType interface type AllFilesCallbackData (line 60) | type AllFilesCallbackData interface type AllFilesCallback (line 61) | type AllFilesCallback type globalConfigType (line 63) | type globalConfigType struct type AnalyzerReport (line 69) | type AnalyzerReport struct type Analyzer (line 78) | type Analyzer struct method FsTypeSupported (line 142) | func (a *Analyzer) FsTypeSupported() (bool, string) { method ImageInfo (line 149) | func (a *Analyzer) ImageInfo() AnalyzerReport { method AddAnalyzerPlugin (line 158) | func (a *Analyzer) AddAnalyzerPlugin(aplug AnalyzerPluginType) { method iterateFiles (line 162) | func (a *Analyzer) iterateFiles(curpath string) error { method checkRoot (line 186) | func (a *Analyzer) checkRoot() error { method addPluginReport (line 202) | func (a *Analyzer) addPluginReport(report string) { method RunPlugins (line 214) | func (a *Analyzer) RunPlugins() { method CleanUp (line 235) | func (a *Analyzer) CleanUp() error { method GetFileInfo (line 240) | func (a *Analyzer) GetFileInfo(filepath string) (fsparser.FileInfo, er... method FileGet (line 244) | func (a *Analyzer) FileGet(filepath string) (string, error) { method FileGetSha256 (line 254) | func (a *Analyzer) FileGetSha256(filepath string) ([]byte, error) { method RemoveFile (line 265) | func (a *Analyzer) RemoveFile(filepath string) error { method iterateAllDirs (line 270) | func (a *Analyzer) iterateAllDirs(curpath string, cb AllFilesCallback,... method CheckAllFilesWithPath (line 287) | func (a *Analyzer) CheckAllFilesWithPath(cb AllFilesCallback, cbdata A... method AddOffender (line 297) | func (a *Analyzer) AddOffender(filepath string, reason string) { method AddInformational (line 309) | func (a *Analyzer) AddInformational(filepath string, reason string) { method HasOffenders (line 321) | func (a *Analyzer) HasOffenders() bool { method AddData (line 325) | func (a *Analyzer) AddData(key string, value string) { method addReportData (line 345) | func (a *Analyzer) addReportData(report []byte) ([]byte, error) { method JsonReport (line 361) | func (a *Analyzer) JsonReport() string { function New (line 87) | func New(fsp fsparser.FsParser, cfg globalConfigType) *Analyzer { function NewFromConfig (line 106) | func NewFromConfig(imagepath string, cfgdata string) *Analyzer { FILE: pkg/analyzer/analyzer_test.go function TestBasic (line 24) | func TestBasic(t *testing.T) { FILE: pkg/analyzer/dataextract/dataextract.go type dataType (line 35) | type dataType struct type dataExtractType (line 45) | type dataExtractType struct method Start (line 84) | func (state *dataExtractType) Start() {} method Finalize (line 85) | func (state *dataExtractType) Finalize() string { method Name (line 89) | func (state *dataExtractType) Name() string { method CheckFile (line 93) | func (state *dataExtractType) CheckFile(fi *fsparser.FileInfo, filepat... function New (line 50) | func New(config string, a analyzer.AnalyzerType) *dataExtractType { function runScriptOnFile (line 210) | func runScriptOnFile(a analyzer.AnalyzerType, script string, scriptOptio... FILE: pkg/analyzer/dataextract/dataextract_test.go type testAnalyzer (line 29) | type testAnalyzer struct method AddData (line 34) | func (a *testAnalyzer) AddData(key, value string) { method GetFileInfo (line 38) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 41) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 44) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 47) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 50) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 52) | func (a *testAnalyzer) AddInformational(filepath string, reason string... method CheckAllFilesWithPath (line 53) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 55) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function makeFile (line 59) | func makeFile(data string, fn string) fsparser.FileInfo { function TestRegex1 (line 67) | func TestRegex1(t *testing.T) { function TestScript1 (line 111) | func TestScript1(t *testing.T) { function TestMulti (line 152) | func TestMulti(t *testing.T) { function TestAutoNaming (line 198) | func TestAutoNaming(t *testing.T) { function TestJson1 (line 242) | func TestJson1(t *testing.T) { function TestJson2 (line 272) | func TestJson2(t *testing.T) { function TestJson3Bool (line 302) | func TestJson3Bool(t *testing.T) { function TestJsonError (line 332) | func TestJsonError(t *testing.T) { function TestJson4Num (line 362) | func TestJson4Num(t *testing.T) { function TestJson5Deep (line 392) | func TestJson5Deep(t *testing.T) { function TestJson6array (line 422) | func TestJson6array(t *testing.T) { function TestJsonContent (line 452) | func TestJsonContent(t *testing.T) { FILE: pkg/analyzer/dircontent/dircontent.go type dirContentType (line 30) | type dirContentType struct type dirContentCheckType (line 37) | type dirContentCheckType struct method Start (line 97) | func (state *dirContentCheckType) Start() {} method Finalize (line 99) | func (state *dirContentCheckType) Finalize() string { method Name (line 110) | func (state *dirContentCheckType) Name() string { method CheckFile (line 114) | func (state *dirContentCheckType) CheckFile(fi *fsparser.FileInfo, dir... function addTrailingSlash (line 42) | func addTrailingSlash(path string) string { function validateItem (line 49) | func validateItem(item dirContentType) bool { function New (line 66) | func New(config string, a analyzer.AnalyzerType) *dirContentCheckType { FILE: pkg/analyzer/dircontent/dircontent_test.go type OffenderCallack (line 26) | type OffenderCallack type testAnalyzer (line 28) | type testAnalyzer struct method AddData (line 33) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 34) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 37) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 40) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 43) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 46) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 49) | func (a *testAnalyzer) AddInformational(filepath string, reason string... method CheckAllFilesWithPath (line 50) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 52) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function TestDirCheck (line 56) | func TestDirCheck(t *testing.T) { FILE: pkg/analyzer/filecmp/filecmp.go type cmpType (line 34) | type cmpType struct type fileCmpType (line 44) | type fileCmpType struct method Start (line 85) | func (state *fileCmpType) Start() {} method Finalize (line 87) | func (state *fileCmpType) Finalize() string { method Name (line 91) | func (state *fileCmpType) Name() string { method CheckFile (line 130) | func (state *fileCmpType) CheckFile(fi *fsparser.FileInfo, filepath st... function New (line 49) | func New(config string, a analyzer.AnalyzerType, fileDirectory string) *... function fileExists (line 95) | func fileExists(filePath string) error { function copyFile (line 100) | func copyFile(out string, in string) error { function makeTmpFromOld (line 115) | func makeTmpFromOld(filePath string) (string, error) { FILE: pkg/analyzer/filecmp/filecmp_test.go type OffenderCallack (line 28) | type OffenderCallack type testAnalyzer (line 30) | type testAnalyzer struct method AddData (line 35) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 36) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 39) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 42) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 45) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 48) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 51) | func (a *testAnalyzer) AddInformational(filepath string, reason string) { method CheckAllFilesWithPath (line 54) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 56) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function TestCmp (line 60) | func TestCmp(t *testing.T) { function TestCmpInfo (line 152) | func TestCmpInfo(t *testing.T) { function TestCmpNoOld (line 215) | func TestCmpNoOld(t *testing.T) { FILE: pkg/analyzer/filecontent/filecontent.go type contentType (line 37) | type contentType struct type fileContentType (line 52) | type fileContentType struct method Start (line 107) | func (state *fileContentType) Start() {} method Finalize (line 109) | func (state *fileContentType) Finalize() string { method Name (line 120) | func (state *fileContentType) Name() string { method canCheckFile (line 132) | func (state *fileContentType) canCheckFile(fi *fsparser.FileInfo, fn s... method CheckFile (line 144) | func (state *fileContentType) CheckFile(fi *fsparser.FileInfo, filepat... function validateItem (line 57) | func validateItem(item contentType) bool { function New (line 73) | func New(config string, a analyzer.AnalyzerType, MatchInvert bool) *file... function regexCompile (line 124) | func regexCompile(rx string) (*regexp.Regexp, error) { type callbackDataType (line 276) | type callbackDataType struct function checkFileScript (line 298) | func checkFileScript(fi *fsparser.FileInfo, fullpath string, cbData anal... FILE: pkg/analyzer/filecontent/filecontent_test.go type OffenderCallack (line 28) | type OffenderCallack type testAnalyzer (line 30) | type testAnalyzer struct method AddData (line 35) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 36) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 39) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 42) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 49) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 52) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 55) | func (a *testAnalyzer) AddInformational(filepath string, reason string... method CheckAllFilesWithPath (line 56) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 58) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function makeFile (line 62) | func makeFile(data string, fn string) fsparser.FileInfo { function TestRegex (line 70) | func TestRegex(t *testing.T) { function TestDigest (line 125) | func TestDigest(t *testing.T) { function TestScript (line 174) | func TestScript(t *testing.T) { function TestValidateItem (line 216) | func TestValidateItem(t *testing.T) { function TestMissingFile (line 246) | func TestMissingFile(t *testing.T) { function TestJson (line 280) | func TestJson(t *testing.T) { function TestJsonDoesNotMatch (line 310) | func TestJsonDoesNotMatch(t *testing.T) { function TestGlobalInvert (line 340) | func TestGlobalInvert(t *testing.T) { FILE: pkg/analyzer/filepathowner/filepathowner.go type filePathOwner (line 29) | type filePathOwner struct type filePathOwenrList (line 34) | type filePathOwenrList struct type fileownerpathType (line 38) | type fileownerpathType struct method Start (line 54) | func (state *fileownerpathType) Start() {} method CheckFile (line 55) | func (state *fileownerpathType) CheckFile(fi *fsparser.FileInfo, filep... method Name (line 59) | func (state *fileownerpathType) Name() string { method Finalize (line 68) | func (state *fileownerpathType) Finalize() string { function New (line 43) | func New(config string, a analyzer.AnalyzerType) *fileownerpathType { type cbDataCheckOwnerPath (line 63) | type cbDataCheckOwnerPath struct function cbCheckOwnerPath (line 86) | func cbCheckOwnerPath(fi *fsparser.FileInfo, fullpath string, data analy... FILE: pkg/analyzer/filepathowner/filepathowner_test.go type OffenderCallack (line 26) | type OffenderCallack type testAnalyzer (line 28) | type testAnalyzer struct method AddData (line 33) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 34) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 37) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 40) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 43) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 46) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 49) | func (a *testAnalyzer) AddInformational(filepath string, reason string... method CheckAllFilesWithPath (line 50) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 52) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function Test (line 56) | func Test(t *testing.T) { FILE: pkg/analyzer/filestatcheck/filestatcheck.go type fileexistType (line 31) | type fileexistType struct type fileExistListType (line 43) | type fileExistListType struct type fileExistType (line 47) | type fileExistType struct method Start (line 75) | func (state *fileExistType) Start() {} method CheckFile (line 77) | func (state *fileExistType) CheckFile(fi *fsparser.FileInfo, filepath ... method Name (line 81) | func (state *fileExistType) Name() string { method Finalize (line 85) | func (state *fileExistType) Finalize() string { function New (line 52) | func New(config string, a analyzer.AnalyzerType) *fileExistType { FILE: pkg/analyzer/filestatcheck/filestatcheck_test.go type OffenderCallack (line 27) | type OffenderCallack type testAnalyzer (line 29) | type testAnalyzer struct method AddData (line 35) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 37) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 40) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 43) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 46) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 49) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 52) | func (a *testAnalyzer) AddInformational(filepath string, reason string... method CheckAllFilesWithPath (line 53) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 55) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function TestGlobal (line 59) | func TestGlobal(t *testing.T) { function TestLink (line 119) | func TestLink(t *testing.T) { function TestLinkEmpty (line 175) | func TestLinkEmpty(t *testing.T) { FILE: pkg/analyzer/filetree/filetree.go constant newFileTreeExt (line 37) | newFileTreeExt string = ".new" type fileTreeConfig (line 40) | type fileTreeConfig struct type fileTreeType (line 49) | type fileTreeType struct method Start (line 105) | func (state *fileTreeType) Start() { method Name (line 109) | func (state *fileTreeType) Name() string { method readOldTree (line 113) | func (tree *fileTreeType) readOldTree() error { method saveTree (line 130) | func (tree *fileTreeType) saveTree() error { method CheckFile (line 159) | func (state *fileTreeType) CheckFile(fi *fsparser.FileInfo, filepath s... method Finalize (line 192) | func (state *fileTreeType) Finalize() string { type fileInfoSaveType (line 57) | type fileInfoSaveType struct type imageInfoSaveType (line 61) | type imageInfoSaveType struct function New (line 67) | func New(config string, a analyzer.AnalyzerType, outputDirectory string)... function inPath (line 96) | func inPath(checkPath string, cfgPath []string) bool { function fiToString (line 285) | func fiToString(fi fileInfoSaveType, selinux bool) string { FILE: pkg/analyzer/filetree/filetree_test.go type OffenderCallack (line 28) | type OffenderCallack type testAnalyzer (line 30) | type testAnalyzer struct method AddData (line 35) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 36) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 39) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 42) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 45) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 48) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 50) | func (a *testAnalyzer) AddInformational(filepath string, reason string) { method CheckAllFilesWithPath (line 53) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 55) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function TestGlobal (line 59) | func TestGlobal(t *testing.T) { function TestGlobalCheckPath1 (line 146) | func TestGlobalCheckPath1(t *testing.T) { function TestGlobalCheckPath2 (line 165) | func TestGlobalCheckPath2(t *testing.T) { FILE: pkg/analyzer/globalfilechecks/globalfilechecks.go type filePermsConfigType (line 30) | type filePermsConfigType struct type filePermsType (line 42) | type filePermsType struct method Start (line 103) | func (state *filePermsType) Start() {} method Finalize (line 104) | func (state *filePermsType) Finalize() string { method Name (line 108) | func (state *filePermsType) Name() string { method CheckFile (line 112) | func (state *filePermsType) CheckFile(fi *fsparser.FileInfo, fpath str... function New (line 47) | func New(config string, a analyzer.AnalyzerType) *filePermsType { FILE: pkg/analyzer/globalfilechecks/globalfilechecks_test.go type OffenderCallack (line 26) | type OffenderCallack type testAnalyzer (line 28) | type testAnalyzer struct method AddData (line 32) | func (a *testAnalyzer) AddData(key, value string) {} method GetFileInfo (line 33) | func (a *testAnalyzer) GetFileInfo(filepath string) (fsparser.FileInfo... method RemoveFile (line 36) | func (a *testAnalyzer) RemoveFile(filepath string) error { method FileGetSha256 (line 39) | func (a *testAnalyzer) FileGetSha256(filepath string) ([]byte, error) { method FileGet (line 42) | func (a *testAnalyzer) FileGet(filepath string) (string, error) { method AddOffender (line 45) | func (a *testAnalyzer) AddOffender(filepath string, reason string) { method AddInformational (line 48) | func (a *testAnalyzer) AddInformational(filepath string, reason string) { method CheckAllFilesWithPath (line 51) | func (a *testAnalyzer) CheckAllFilesWithPath(cb analyzer.AllFilesCallb... method ImageInfo (line 53) | func (a *testAnalyzer) ImageInfo() analyzer.AnalyzerReport { function TestGlobal (line 57) | func TestGlobal(t *testing.T) { FILE: pkg/capability/capability.go constant CAP_CHOWN (line 33) | CAP_CHOWN = 0 constant CAP_DAC_OVERRIDE (line 34) | CAP_DAC_OVERRIDE = 1 constant CAP_DAC_READ_SEARCH (line 35) | CAP_DAC_READ_SEARCH = 2 constant CAP_FOWNER (line 36) | CAP_FOWNER = 3 constant CAP_FSETID (line 37) | CAP_FSETID = 4 constant CAP_KILL (line 38) | CAP_KILL = 5 constant CAP_SETGID (line 39) | CAP_SETGID = 6 constant CAP_SETUID (line 40) | CAP_SETUID = 7 constant CAP_SETPCAP (line 41) | CAP_SETPCAP = 8 constant CAP_LINUX_IMMUTABLE (line 42) | CAP_LINUX_IMMUTABLE = 9 constant CAP_NET_BIND_SERVICE (line 43) | CAP_NET_BIND_SERVICE = 10 constant CAP_NET_BROADCAST (line 44) | CAP_NET_BROADCAST = 11 constant CAP_NET_ADMIN (line 45) | CAP_NET_ADMIN = 12 constant CAP_NET_RAW (line 46) | CAP_NET_RAW = 13 constant CAP_IPC_LOCK (line 47) | CAP_IPC_LOCK = 14 constant CAP_IPC_OWNER (line 48) | CAP_IPC_OWNER = 15 constant CAP_SYS_MODULE (line 49) | CAP_SYS_MODULE = 16 constant CAP_SYS_RAWIO (line 50) | CAP_SYS_RAWIO = 17 constant CAP_SYS_CHROOT (line 51) | CAP_SYS_CHROOT = 18 constant CAP_SYS_PTRACE (line 52) | CAP_SYS_PTRACE = 19 constant CAP_SYS_PACCT (line 53) | CAP_SYS_PACCT = 20 constant CAP_SYS_ADMIN (line 54) | CAP_SYS_ADMIN = 21 constant CAP_SYS_BOOT (line 55) | CAP_SYS_BOOT = 22 constant CAP_SYS_NICE (line 56) | CAP_SYS_NICE = 23 constant CAP_SYS_RESOURCE (line 57) | CAP_SYS_RESOURCE = 24 constant CAP_SYS_TIME (line 58) | CAP_SYS_TIME = 25 constant CAP_SYS_TTY_CONFIG (line 59) | CAP_SYS_TTY_CONFIG = 26 constant CAP_MKNOD (line 60) | CAP_MKNOD = 27 constant CAP_LEASE (line 61) | CAP_LEASE = 28 constant CAP_AUDIT_WRITE (line 62) | CAP_AUDIT_WRITE = 29 constant CAP_AUDIT_CONTROL (line 63) | CAP_AUDIT_CONTROL = 30 constant CAP_SETFCAP (line 64) | CAP_SETFCAP = 31 constant CAP_MAC_OVERRIDE (line 65) | CAP_MAC_OVERRIDE = 32 constant CAP_MAC_ADMIN (line 66) | CAP_MAC_ADMIN = 33 constant CAP_SYSLOG (line 67) | CAP_SYSLOG = 34 constant CAP_WAKE_ALARM (line 68) | CAP_WAKE_ALARM = 35 constant CAP_BLOCK_SUSPEND (line 69) | CAP_BLOCK_SUSPEND = 36 constant CAP_AUDIT_READ (line 70) | CAP_AUDIT_READ = 37 constant CAP_LAST_CAP (line 71) | CAP_LAST_CAP = CAP_AUDIT_READ constant capOffset (line 114) | capOffset = 2 constant CapByteSizeMax (line 115) | CapByteSizeMax = 24 constant CAP_PERMITTED (line 118) | CAP_PERMITTED = 0 constant CAP_INHERITABLE (line 119) | CAP_INHERITABLE = 1 function capValid (line 136) | func capValid(cap uint32) bool { function capIndex (line 142) | func capIndex(cap uint32) int { function capMask (line 147) | func capMask(cap uint32) uint32 { function capHasCap (line 151) | func capHasCap(caps []uint32, cap uint32, capPerm int) bool { function capSet (line 157) | func capSet(caps []uint32, cap uint32, capPerm int) ([]uint32, error) { function capToText (line 165) | func capToText(cap []uint32) []string { function New (line 187) | func New(caps interface{}) ([]string, error) { function capsParse (line 207) | func capsParse(caps []byte, capsLen uint32) ([]uint32, error) { function capsParseFromText (line 229) | func capsParseFromText(capsText string) ([]uint32, error) { function CapsEqual (line 246) | func CapsEqual(a, b []string) bool { FILE: pkg/capability/capability_test.go function TestCap (line 24) | func TestCap(t *testing.T) { function TestCapsParse (line 40) | func TestCapsParse(t *testing.T) { function TestCapsStringParse (line 50) | func TestCapsStringParse(t *testing.T) { function TestCapMain (line 60) | func TestCapMain(t *testing.T) { FILE: pkg/cpioparser/cpioparser.go constant cpioCmd (line 33) | cpioCmd = "cpio" constant cpCmd (line 34) | cpCmd = "cp" constant MIN_LINE_LENGTH (line 35) | MIN_LINE_LENGTH = 25 type CpioParser (line 38) | type CpioParser struct method ImageName (line 64) | func (p *CpioParser) ImageName() string { method parseFileLine (line 127) | func (p *CpioParser) parseFileLine(line string) (string, fsparser.File... method GetDirInfo (line 171) | func (p *CpioParser) GetDirInfo(dirpath string) ([]fsparser.FileInfo, ... method GetFileInfo (line 180) | func (p *CpioParser) GetFileInfo(filepath string) (fsparser.FileInfo, ... method loadFileList (line 200) | func (p *CpioParser) loadFileList() error { method loadFileListFromString (line 215) | func (p *CpioParser) loadFileListFromString(rawFileList string) error { method fixDir (line 245) | func (p *CpioParser) fixDir(dir string, name string) { method CopyFile (line 271) | func (p *CpioParser) CopyFile(filepath string, dstdir string) bool { method Supported (line 282) | func (p *CpioParser) Supported() bool { function New (line 47) | func New(imagepath string, fixDirs bool) *CpioParser { constant FILE_MODE_STR_LEN (line 98) | FILE_MODE_STR_LEN = 10 function parseMode (line 101) | func parseMode(mode string) (uint64, error) { function normalizePath (line 116) | func normalizePath(filepath string) (dir string, name string) { constant NAME_IDX_NORMAL_FILE (line 123) | NAME_IDX_NORMAL_FILE = 7 constant NAME_IDX_DEVICE_FILE (line 124) | NAME_IDX_DEVICE_FILE = 8 FILE: pkg/cpioparser/cpioparser_test.go type testData (line 24) | type testData struct function TestParseLine (line 33) | func TestParseLine(t *testing.T) { function TestFixDir (line 65) | func TestFixDir(t *testing.T) { function TestFull (line 99) | func TestFull(t *testing.T) { FILE: pkg/dirparser/dirparser.go constant cpCli (line 32) | cpCli string = "cp" type DirParser (line 35) | type DirParser struct method GetDirInfo (line 45) | func (dir *DirParser) GetDirInfo(dirpath string) ([]fsparser.FileInfo,... method GetFileInfo (line 68) | func (dir *DirParser) GetFileInfo(dirpath string) (fsparser.FileInfo, ... method CopyFile (line 103) | func (dir *DirParser) CopyFile(filepath string, dstdir string) bool { method ImageName (line 116) | func (dir *DirParser) ImageName() string { method Supported (line 120) | func (f *DirParser) Supported() bool { function New (line 39) | func New(imagepath string) *DirParser { FILE: pkg/dirparser/dirparser_test.go function TestMain (line 28) | func TestMain(t *testing.T) { function TestGetDirInfo (line 37) | func TestGetDirInfo(t *testing.T) { function TestGetFileInfo (line 59) | func TestGetFileInfo(t *testing.T) { function TestCapability (line 101) | func TestCapability(t *testing.T) { FILE: pkg/extparser/extparser.go type Ext2Parser (line 32) | type Ext2Parser struct method ImageName (line 64) | func (e *Ext2Parser) ImageName() string { method enableSeLinux (line 68) | func (e *Ext2Parser) enableSeLinux() { method enableCapabilities (line 78) | func (e *Ext2Parser) enableCapabilities() { method parseFileLine (line 92) | func (e *Ext2Parser) parseFileLine(line string) fsparser.FileInfo { method getDirList (line 127) | func (e *Ext2Parser) getDirList(dirpath string, ignoreDot bool) ([]fsp... method GetDirInfo (line 158) | func (e *Ext2Parser) GetDirInfo(dirpath string) ([]fsparser.FileInfo, ... method GetFileInfo (line 163) | func (e *Ext2Parser) GetFileInfo(dirpath string) (fsparser.FileInfo, e... method CopyFile (line 179) | func (e *Ext2Parser) CopyFile(filepath string, dstdir string) bool { method Supported (line 189) | func (f *Ext2Parser) Supported() bool { constant e2ToolsCp (line 41) | e2ToolsCp = "e2cp" constant e2ToolsLs (line 42) | e2ToolsLs = "e2ls" function New (line 45) | func New(imagepath string, selinux, capabilities bool) *Ext2Parser { function seLinuxSupported (line 198) | func seLinuxSupported() bool { function capabilitiesSupported (line 208) | func capabilitiesSupported() bool { FILE: pkg/extparser/extparser_test.go function TestMain (line 27) | func TestMain(t *testing.T) { function TestGetDirList (line 37) | func TestGetDirList(t *testing.T) { function TestGetDirInfo (line 68) | func TestGetDirInfo(t *testing.T) { function TestGetFileInfo (line 92) | func TestGetFileInfo(t *testing.T) { function TestCap (line 129) | func TestCap(t *testing.T) { FILE: pkg/fsparser/fsparser.go type FsParser (line 19) | type FsParser interface type FileInfo (line 33) | type FileInfo struct method IsSUid (line 74) | func (fi *FileInfo) IsSUid() bool { method IsSGid (line 78) | func (fi *FileInfo) IsSGid() bool { method IsWorldWrite (line 82) | func (fi *FileInfo) IsWorldWrite() bool { method IsFile (line 86) | func (fi *FileInfo) IsFile() bool { method IsDir (line 90) | func (fi *FileInfo) IsDir() bool { method IsLink (line 94) | func (fi *FileInfo) IsLink() bool { constant SELinuxNoLabel (line 45) | SELinuxNoLabel string = "-" constant S_IFMT (line 49) | S_IFMT = 0170000 constant S_IFSOCK (line 50) | S_IFSOCK = 0140000 constant S_IFLNK (line 51) | S_IFLNK = 0120000 constant S_IFREG (line 52) | S_IFREG = 0100000 constant S_IFBLK (line 53) | S_IFBLK = 0060000 constant S_IFDIR (line 54) | S_IFDIR = 0040000 constant S_IFCHR (line 55) | S_IFCHR = 0020000 constant S_IFIFO (line 56) | S_IFIFO = 0010000 constant S_ISUID (line 57) | S_ISUID = 0004000 constant S_ISGID (line 58) | S_ISGID = 0002000 constant S_ISVTX (line 59) | S_ISVTX = 0001000 constant S_IRWXU (line 60) | S_IRWXU = 00700 constant S_IRUSR (line 61) | S_IRUSR = 00400 constant S_IWUSR (line 62) | S_IWUSR = 00200 constant S_IXUSR (line 63) | S_IXUSR = 00100 constant S_IRWXG (line 64) | S_IRWXG = 00070 constant S_IRGRP (line 65) | S_IRGRP = 00040 constant S_IWGRP (line 66) | S_IWGRP = 00020 constant S_IXGRP (line 67) | S_IXGRP = 00010 constant S_IRWXO (line 68) | S_IRWXO = 00007 constant S_IROTH (line 69) | S_IROTH = 00004 constant S_IWOTH (line 70) | S_IWOTH = 00002 constant S_IXOTH (line 71) | S_IXOTH = 00001 FILE: pkg/squashfsparser/squashfsparser.go constant unsquashfsCmd (line 35) | unsquashfsCmd = "unsquashfs" constant cpCmd (line 36) | cpCmd = "cp" type SquashFSParser (line 40) | type SquashFSParser struct method enableSecurityInfo (line 132) | func (s *SquashFSParser) enableSecurityInfo() { method parseFileLine (line 162) | func (s *SquashFSParser) parseFileLine(line string) (string, fsparser.... method loadFileList (line 209) | func (s *SquashFSParser) loadFileList() error { method GetDirInfo (line 240) | func (s *SquashFSParser) GetDirInfo(dirpath string) ([]fsparser.FileIn... method GetFileInfo (line 249) | func (s *SquashFSParser) GetFileInfo(filepath string) (fsparser.FileIn... method CopyFile (line 270) | func (s *SquashFSParser) CopyFile(filepath string, dstdir string) bool { method ImageName (line 306) | func (s *SquashFSParser) ImageName() string { method Supported (line 310) | func (f *SquashFSParser) Supported() bool { function uidForUsername (line 47) | func uidForUsername(username string) (int, error) { function gidForGroup (line 60) | func gidForGroup(group string) (int, error) { function parseMode (line 103) | func parseMode(mode string) (uint64, error) { function getExtractFile (line 116) | func getExtractFile(dirpath string) (string, error) { function New (line 139) | func New(imagepath string, securityInfo bool) *SquashFSParser { function normalizePath (line 154) | func normalizePath(filepath string) (dir string, name string) { function securityInfoSupported (line 319) | func securityInfoSupported() bool { FILE: pkg/squashfsparser/squashfsparser_test.go function TestUidForUsername (line 31) | func TestUidForUsername(t *testing.T) { function TestGidForGroup (line 49) | func TestGidForGroup(t *testing.T) { function TestParseMode (line 65) | func TestParseMode(t *testing.T) { function TestParseFileLine (line 121) | func TestParseFileLine(t *testing.T) { function TestImageName (line 178) | func TestImageName(t *testing.T) { function TestDirInfoRoot (line 188) | func TestDirInfoRoot(t *testing.T) { function TestGetFileInfo (line 299) | func TestGetFileInfo(t *testing.T) { function TestCopyFile (line 339) | func TestCopyFile(t *testing.T) { function TestSecurityInfo (line 361) | func TestSecurityInfo(t *testing.T) { FILE: pkg/ubifsparser/ubifsparser.go type UbifsParser (line 31) | type UbifsParser struct method ImageName (line 54) | func (e *UbifsParser) ImageName() string { method parseFileLine (line 58) | func (e *UbifsParser) parseFileLine(line string) (fsparser.FileInfo, e... method getDirList (line 86) | func (e *UbifsParser) getDirList(dirpath string) ([]fsparser.FileInfo,... method GetDirInfo (line 107) | func (e *UbifsParser) GetDirInfo(dirpath string) ([]fsparser.FileInfo,... method GetFileInfo (line 112) | func (e *UbifsParser) GetFileInfo(dirpath string) (fsparser.FileInfo, ... method CopyFile (line 134) | func (e *UbifsParser) CopyFile(filepath string, dstdir string) bool { method Supported (line 143) | func (f *UbifsParser) Supported() bool { constant ubifsReaderCmd (line 38) | ubifsReaderCmd = "ubireader_list_files" function New (line 41) | func New(imagepath string) *UbifsParser { FILE: pkg/ubifsparser/ubifsparser_test.go function TestCleanup (line 24) | func TestCleanup(t *testing.T) { FILE: pkg/util/util.go function MkTmpDir (line 31) | func MkTmpDir(prefix string) (string, error) { function DigestFileSha256 (line 39) | func DigestFileSha256(filepath string) []byte { function loadJson (line 54) | func loadJson(data []byte, item string) (interface{}, error) { function XtractJsonField (line 60) | func XtractJsonField(data []byte, items []string) (string, error) { function CleanPathDir (line 104) | func CleanPathDir(pathName string) string { FILE: pkg/vfatparser/vfatparser.go type mDirReg (line 31) | type mDirReg struct type VFatParser (line 36) | type VFatParser struct method ImageName (line 68) | func (f *VFatParser) ImageName() string { method parseFileLine (line 72) | func (f *VFatParser) parseFileLine(line string) (fsparser.FileInfo, er... method getDirList (line 107) | func (f *VFatParser) getDirList(dirpath string, ignoreDot bool) ([]fsp... method GetDirInfo (line 129) | func (f *VFatParser) GetDirInfo(dirpath string) ([]fsparser.FileInfo, ... method GetFileInfo (line 136) | func (f *VFatParser) GetFileInfo(dirpath string) (fsparser.FileInfo, e... method CopyFile (line 163) | func (f *VFatParser) CopyFile(filepath string, dstdir string) bool { method Supported (line 173) | func (f *VFatParser) Supported() bool { constant vFatLsCmd (line 42) | vFatLsCmd string = "mdir" constant vFatCpCmd (line 43) | vFatCpCmd string = "mcopy" function New (line 46) | func New(imagepath string) *VFatParser { FILE: pkg/vfatparser/vfatparser_test.go function TestMain (line 27) | func TestMain(t *testing.T) { function TestGetDirInfo (line 36) | func TestGetDirInfo(t *testing.T) { function TestGetFileInfo (line 81) | func TestGetFileInfo(t *testing.T) { FILE: test/elf_main.go function main (line 5) | func main() { FILE: test/test.py function SetError (line 25) | def SetError(log): function test (line 30) | def test(cfgfile, e2toolspath=""):