MCPcopy Create free account

hub / github.com/LineageOS/android_system_sepolicy / functions

Functions278 in github.com/LineageOS/android_system_sepolicy

↓ 20 callersMethodQueryTypeAttribute
(self, Type, IsAttr)
tests/policy.py:192
↓ 13 callersMethodassertMatches
(self, path, prefix)
tests/policy_test.py:21
↓ 13 callersMethodassert_ok
(self, line: str)
tests/apex_sepolicy_tests_test.py:45
↓ 10 callersMethodassert_error
(self, line: str, expected_error: str)
tests/apex_sepolicy_tests_test.py:49
↓ 9 callersMethodAssertPathTypesHaveAttr
(self, MatchPrefix, DoNotMatchPrefix, Attr, ExcludedTypes = [])
tests/policy.py:149
↓ 8 callersMethodGetAllTypes
(self, isAttr)
tests/policy.py:296
↓ 8 callersFunctionMatchPathPrefix
(pathregex, prefix)
tests/policy.py:40
↓ 7 callersFunctionAllowRead
(tclass, scontext)
tests/apex_sepolicy_tests.py:106
↓ 7 callersMethodassertDoesNotMatch
(self, path, prefix)
tests/policy_test.py:24
↓ 6 callersFunctiondisplay_allow
tools/sepolicy-analyze/utils.c:12
↓ 5 callersMethodAssertGenfsFilesystemTypesHaveAttr
(self, Filesystem, Attr)
tests/policy.py:132
↓ 5 callersMethodcreate
(cls, line)
tests/fc_sort.py:67
↓ 5 callersFunctionlist_append
* Appends to the end of the list. * @list The list to append to * @e the element to append */
tools/check_seapp.c:245
↓ 5 callersFunctionusage
tools/version_policy.c:13
↓ 4 callersMethod__GetTERules
(self, policydbP, avtabIterP, Rules)
tests/policy.py:360
↓ 4 callersFunctionfind_type
* Look up a type in the policy. * @param db * The policy db to search * @param type * The type to search for * @param flavor * The expected f
tools/check_seapp.c:337
↓ 4 callersFunctionfree_type_rules
tools/sepolicy-analyze/typecmp.c:109
↓ 4 callersFunctionlist_free
* Free's all the elements in the specified list. * @list The list to free */
tools/check_seapp.c:263
↓ 4 callersFunctionparse_ops
tools/sepolicy-check.c:31
↓ 3 callersMethodAssertPathTypesDoNotHaveAttr
(self, MatchPrefix, DoNotMatchPrefix, Attr, ExcludedTypes = [])
tests/policy.py:108
↓ 3 callersMethodQueryExpandedTERule
(self, **kwargs)
tests/policy.py:289
↓ 3 callersFunctioncheck
tools/sepolicy-check.c:43
↓ 3 callersFunctionpackage_name_match
Checks if a package name matches a given pattern. The pattern can end with an asterisk (*) for prefix matching (case-insensitive). Otherwise,
tests/treble_labeling_tests.py:269
↓ 3 callersFunctionrule_map_free
* Frees a rule map * @param rm * rule map to be freed. * @is_in_htable * True if the rule map has been added to the hash table, false * otherw
tools/check_seapp.c:699
↓ 3 callersFunctionrule_map_print
* Prints a rule map back to a file * @param fp * The file handle to print too * @param r * The rule map to print */
tools/check_seapp.c:605
↓ 3 callersFunctionusage
tools/checkfc.c:205
↓ 3 callersFunctionusage
tools/seamendc.c:14
↓ 3 callersFunctionusage
tools/sepolicy-analyze/sepolicy-analyze.c:30
↓ 2 callersMethodQueryTERule
(self, **kwargs)
tests/policy.py:264
↓ 2 callersMethodResolveTypeAttribute
(self, Type)
tests/policy.py:240
↓ 2 callersFunctionTestViolatorAttribute
(test_policy, attribute)
tests/sepolicy_tests.py:164
↓ 2 callersMethod__GenfsDictAdd
(self, Dict, buf)
tests/policy.py:448
↓ 2 callersMethod__GetTypesAndFilesByFilePathPrefix
(self, MatchPrefixes, DoNotMatchPrefixes)
tests/policy.py:345
↓ 2 callersMethod__TERuleMatch
(self, Rule, **kwargs)
tests/policy.py:212
↓ 2 callersMethod_getNextStmt
(self, infile)
tests/mini_parser.py:69
↓ 2 callersFunctioncheck_file_exists
(file_name)
tools/fuzzer_bindings_check.py:23
↓ 2 callersFunctioncheck_neverallows
tools/sepolicy-analyze/neverallow.c:377
↓ 2 callersFunctioncreate_type_rules_helper
tools/sepolicy-analyze/typecmp.c:54
↓ 2 callersFunctionexpand_and_check
tools/sepolicy-check.c:63
↓ 2 callersFunctionextract_data
(name, temp_dir)
tests/apex_sepolicy_tests.py:227
↓ 2 callersFunctionfind_match
tools/sepolicy-analyze/typecmp.c:120
↓ 2 callersFunctionfree_kvp
tools/check_seapp.c:737
↓ 2 callersMethodgetBase16Keys
(self)
tools/insertkeys.py:104
↓ 2 callersFunctioninit_avtab_common
tests/sepol_wrap.cpp:308
↓ 2 callersFunctioninit_expanded_avtab_common
tests/sepol_wrap.cpp:346
↓ 2 callersFunctioninsert_type_rule
tools/sepolicy-analyze/typecmp.c:10
↓ 2 callersFunctionparse_package_names
(apk_list_file, aapt2_path)
tests/treble_labeling_tests.py:189
↓ 2 callersFunctionparse_seapp_contexts
(seapp_contexts_path)
tests/treble_labeling_tests.py:252
↓ 2 callersFunctionread_cil_file
* read_cil_file - Initialize db and parse CIL input file. */
tools/version_policy.c:29
↓ 2 callersFunctionread_typeset
tools/sepolicy-analyze/neverallow.c:20
↓ 2 callersFunctiontype_has_attribute
tools/check_seapp.c:351
↓ 2 callersMethodunparse
(self)
tests/mini_parser.py:43
↓ 2 callersFunctionusage
tools/sepolicy-check.c:17
↓ 1 callersMethodAssertPropertyOwnersAreExclusive
(self)
tests/policy.py:172
↓ 1 callersFunctionCombine
(top, bottom)
tests/combine_maps.py:35
↓ 1 callersMethodGetAllDomains
(self)
tests/policy.py:553
↓ 1 callersMethodGetAllTypes
(self, basepol, oldpol)
tests/policy.py:641
↓ 1 callersMethodGetAppDomains
(self)
tests/policy.py:557
↓ 1 callersMethodGetAttributes
(self)
tests/policy.py:628
↓ 1 callersMethodGetCoreDomains
(self)
tests/policy.py:567
↓ 1 callersMethodGetDomainEntrypoints
(self)
tests/policy.py:609
↓ 1 callersFunctionMatchPathPrefixes
(pathregex, Prefixes)
tests/policy.py:82
↓ 1 callersMethodQueryFc
(self, Type)
tests/policy.py:184
↓ 1 callersFunctionTestAppDataTypeViolations
(pol)
tests/sepolicy_tests.py:100
↓ 1 callersFunctionTestBpffsTypeViolations
(pol)
tests/sepolicy_tests.py:55
↓ 1 callersFunctionTestCoreDataTypeViolations
(pol)
tests/sepolicy_tests.py:90
↓ 1 callersFunctionTestCoredomainForAllPlatformApps
Tests if platform SEPolicy labels any of preinstalled platform apps with a non-coredomain label. All preinstalled platform apps are expected to be
tests/treble_labeling_tests.py:353
↓ 1 callersFunctionTestCoredomainViolations
(test_policy)
tests/sepolicy_tests.py:125
↓ 1 callersFunctionTestDataTypeViolations
(pol)
tests/sepolicy_tests.py:30
↓ 1 callersFunctionTestDebugfsTypeViolations
(pol)
tests/sepolicy_tests.py:67
↓ 1 callersFunctionTestDevTypeViolations
(pol)
tests/sepolicy_tests.py:278
↓ 1 callersFunctionTestDmaHeapDevTypeViolations
(pol)
tests/sepolicy_tests.py:121
↓ 1 callersFunctionTestIsolatedAttributeConsistency
(test_policy)
tests/sepolicy_tests.py:184
↓ 1 callersFunctionTestNoCoredomainForAllVendorApps
Tests if any of preinstalled vendor apps are labeled with coredomain labels. All preinstalled vendor apps are expected to be non-coredomain.
tests/treble_labeling_tests.py:399
↓ 1 callersFunctionTestNoCoredomainInVendorSepolicy
Tests if vendor SEPolicy adds more coredomain types. coredomain is only for platform types, so vendor SEPolicy must not add one.
tests/treble_labeling_tests.py:132
↓ 1 callersFunctionTestNoPlatformAppsInVendorSeappContexts
Tests if vendor SEPolicy labels any of preinstalled platform apps. Platform apps can't be labeled with vendor SEPolicy. Also vendor's seapp_co
tests/treble_labeling_tests.py:286
↓ 1 callersFunctionTestNoPlatformFilesInVendorFileContexts
Tests if vendor SEPolicy labels any of platform files.
tests/treble_labeling_tests.py:157
↓ 1 callersFunctionTestNoUnmappedNewTypes
(base_pub_policy, old_pub_policy, mapping)
tests/treble_sepolicy_tests.py:36
↓ 1 callersFunctionTestNoUnmappedRmTypes
(base_pub_policy, old_pub_policy, mapping)
tests/treble_sepolicy_tests.py:59
↓ 1 callersFunctionTestProcTypeViolations
(pol)
tests/sepolicy_tests.py:58
↓ 1 callersFunctionTestPropertyTypeViolations
(pol)
tests/sepolicy_tests.py:97
↓ 1 callersFunctionTestSysfsTypeViolations
(pol)
tests/sepolicy_tests.py:61
↓ 1 callersFunctionTestSystemTypeViolations
(pol)
tests/sepolicy_tests.py:33
↓ 1 callersFunctionTestTracefsTypeViolations
(pol)
tests/sepolicy_tests.py:73
↓ 1 callersFunctionTestTrebleCompatMapping
(base_pub_policy, old_pub_policy, mapping)
tests/treble_sepolicy_tests.py:78
↓ 1 callersFunctionTestVendorTypeViolations
(pol)
tests/sepolicy_tests.py:81
↓ 1 callersFunctionTestViolatorAttributes
(test_policy)
tests/sepolicy_tests.py:178
↓ 1 callersMethod__ExactMatchPathPrefix
(self, pathregex, prefix)
tests/policy.py:315
↓ 1 callersMethod__FcSortedIndex
(self, prefix)
tests/policy.py:326
↓ 1 callersMethod__InitExpandedTERules
(self)
tests/policy.py:389
↓ 1 callersMethod__InitFC
(self, FcPaths)
tests/policy.py:477
↓ 1 callersMethod__InitGenfsCon
(self)
tests/policy.py:457
↓ 1 callersMethod__InitLibsepolwrap
(self, LibPath)
tests/policy.py:402
↓ 1 callersMethod__InitPolicy
(self, PolicyPath)
tests/policy.py:501
↓ 1 callersMethod__InitTERules
(self)
tests/policy.py:377
↓ 1 callersMethod__MatchPathPrefixTypes
(self, prefix, index)
tests/policy.py:336
↓ 1 callersMethod_parseExpandtypeattribute
(self, stmt)
tests/mini_parser.py:103
↓ 1 callersMethod_parseStmt
(self, stmt)
tests/mini_parser.py:134
↓ 1 callersMethod_parseType
(self, stmt)
tests/mini_parser.py:98
↓ 1 callersMethod_parseTypeattribute
(self, stmt)
tests/mini_parser.py:108
next →1–100 of 278, ranked by callers