Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LineageOS/android_system_sepolicy
/ functions
Functions
278 in github.com/LineageOS/android_system_sepolicy
⨍
Functions
278
◇
Types & classes
75
↓ 20 callers
Method
QueryTypeAttribute
(self, Type, IsAttr)
tests/policy.py:192
↓ 13 callers
Method
assertMatches
(self, path, prefix)
tests/policy_test.py:21
↓ 13 callers
Method
assert_ok
(self, line: str)
tests/apex_sepolicy_tests_test.py:45
↓ 10 callers
Method
assert_error
(self, line: str, expected_error: str)
tests/apex_sepolicy_tests_test.py:49
↓ 9 callers
Method
AssertPathTypesHaveAttr
(self, MatchPrefix, DoNotMatchPrefix, Attr, ExcludedTypes = [])
tests/policy.py:149
↓ 8 callers
Method
GetAllTypes
(self, isAttr)
tests/policy.py:296
↓ 8 callers
Function
MatchPathPrefix
(pathregex, prefix)
tests/policy.py:40
↓ 7 callers
Function
AllowRead
(tclass, scontext)
tests/apex_sepolicy_tests.py:106
↓ 7 callers
Method
assertDoesNotMatch
(self, path, prefix)
tests/policy_test.py:24
↓ 6 callers
Function
display_allow
tools/sepolicy-analyze/utils.c:12
↓ 5 callers
Method
AssertGenfsFilesystemTypesHaveAttr
(self, Filesystem, Attr)
tests/policy.py:132
↓ 5 callers
Method
create
(cls, line)
tests/fc_sort.py:67
↓ 5 callers
Function
list_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 callers
Function
usage
tools/version_policy.c:13
↓ 4 callers
Method
__GetTERules
(self, policydbP, avtabIterP, Rules)
tests/policy.py:360
↓ 4 callers
Function
find_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 callers
Function
free_type_rules
tools/sepolicy-analyze/typecmp.c:109
↓ 4 callers
Function
list_free
* Free's all the elements in the specified list. * @list The list to free */
tools/check_seapp.c:263
↓ 4 callers
Function
parse_ops
tools/sepolicy-check.c:31
↓ 3 callers
Method
AssertPathTypesDoNotHaveAttr
(self, MatchPrefix, DoNotMatchPrefix, Attr, ExcludedTypes = [])
tests/policy.py:108
↓ 3 callers
Method
QueryExpandedTERule
(self, **kwargs)
tests/policy.py:289
↓ 3 callers
Function
check
tools/sepolicy-check.c:43
↓ 3 callers
Function
package_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 callers
Function
rule_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 callers
Function
rule_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 callers
Function
usage
tools/checkfc.c:205
↓ 3 callers
Function
usage
tools/seamendc.c:14
↓ 3 callers
Function
usage
tools/sepolicy-analyze/sepolicy-analyze.c:30
↓ 2 callers
Method
QueryTERule
(self, **kwargs)
tests/policy.py:264
↓ 2 callers
Method
ResolveTypeAttribute
(self, Type)
tests/policy.py:240
↓ 2 callers
Function
TestViolatorAttribute
(test_policy, attribute)
tests/sepolicy_tests.py:164
↓ 2 callers
Method
__GenfsDictAdd
(self, Dict, buf)
tests/policy.py:448
↓ 2 callers
Method
__GetTypesAndFilesByFilePathPrefix
(self, MatchPrefixes, DoNotMatchPrefixes)
tests/policy.py:345
↓ 2 callers
Method
__TERuleMatch
(self, Rule, **kwargs)
tests/policy.py:212
↓ 2 callers
Method
_getNextStmt
(self, infile)
tests/mini_parser.py:69
↓ 2 callers
Function
check_file_exists
(file_name)
tools/fuzzer_bindings_check.py:23
↓ 2 callers
Function
check_neverallows
tools/sepolicy-analyze/neverallow.c:377
↓ 2 callers
Function
create_type_rules_helper
tools/sepolicy-analyze/typecmp.c:54
↓ 2 callers
Function
expand_and_check
tools/sepolicy-check.c:63
↓ 2 callers
Function
extract_data
(name, temp_dir)
tests/apex_sepolicy_tests.py:227
↓ 2 callers
Function
find_match
tools/sepolicy-analyze/typecmp.c:120
↓ 2 callers
Function
free_kvp
tools/check_seapp.c:737
↓ 2 callers
Method
getBase16Keys
(self)
tools/insertkeys.py:104
↓ 2 callers
Function
init_avtab_common
tests/sepol_wrap.cpp:308
↓ 2 callers
Function
init_expanded_avtab_common
tests/sepol_wrap.cpp:346
↓ 2 callers
Function
insert_type_rule
tools/sepolicy-analyze/typecmp.c:10
↓ 2 callers
Function
parse_package_names
(apk_list_file, aapt2_path)
tests/treble_labeling_tests.py:189
↓ 2 callers
Function
parse_seapp_contexts
(seapp_contexts_path)
tests/treble_labeling_tests.py:252
↓ 2 callers
Function
read_cil_file
* read_cil_file - Initialize db and parse CIL input file. */
tools/version_policy.c:29
↓ 2 callers
Function
read_typeset
tools/sepolicy-analyze/neverallow.c:20
↓ 2 callers
Function
type_has_attribute
tools/check_seapp.c:351
↓ 2 callers
Method
unparse
(self)
tests/mini_parser.py:43
↓ 2 callers
Function
usage
tools/sepolicy-check.c:17
↓ 1 callers
Method
AssertPropertyOwnersAreExclusive
(self)
tests/policy.py:172
↓ 1 callers
Function
Combine
(top, bottom)
tests/combine_maps.py:35
↓ 1 callers
Method
GetAllDomains
(self)
tests/policy.py:553
↓ 1 callers
Method
GetAllTypes
(self, basepol, oldpol)
tests/policy.py:641
↓ 1 callers
Method
GetAppDomains
(self)
tests/policy.py:557
↓ 1 callers
Method
GetAttributes
(self)
tests/policy.py:628
↓ 1 callers
Method
GetCoreDomains
(self)
tests/policy.py:567
↓ 1 callers
Method
GetDomainEntrypoints
(self)
tests/policy.py:609
↓ 1 callers
Function
MatchPathPrefixes
(pathregex, Prefixes)
tests/policy.py:82
↓ 1 callers
Method
QueryFc
(self, Type)
tests/policy.py:184
↓ 1 callers
Function
TestAppDataTypeViolations
(pol)
tests/sepolicy_tests.py:100
↓ 1 callers
Function
TestBpffsTypeViolations
(pol)
tests/sepolicy_tests.py:55
↓ 1 callers
Function
TestCoreDataTypeViolations
(pol)
tests/sepolicy_tests.py:90
↓ 1 callers
Function
TestCoredomainForAllPlatformApps
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 callers
Function
TestCoredomainViolations
(test_policy)
tests/sepolicy_tests.py:125
↓ 1 callers
Function
TestDataTypeViolations
(pol)
tests/sepolicy_tests.py:30
↓ 1 callers
Function
TestDebugfsTypeViolations
(pol)
tests/sepolicy_tests.py:67
↓ 1 callers
Function
TestDevTypeViolations
(pol)
tests/sepolicy_tests.py:278
↓ 1 callers
Function
TestDmaHeapDevTypeViolations
(pol)
tests/sepolicy_tests.py:121
↓ 1 callers
Function
TestIsolatedAttributeConsistency
(test_policy)
tests/sepolicy_tests.py:184
↓ 1 callers
Function
TestNoCoredomainForAllVendorApps
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 callers
Function
TestNoCoredomainInVendorSepolicy
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 callers
Function
TestNoPlatformAppsInVendorSeappContexts
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 callers
Function
TestNoPlatformFilesInVendorFileContexts
Tests if vendor SEPolicy labels any of platform files.
tests/treble_labeling_tests.py:157
↓ 1 callers
Function
TestNoUnmappedNewTypes
(base_pub_policy, old_pub_policy, mapping)
tests/treble_sepolicy_tests.py:36
↓ 1 callers
Function
TestNoUnmappedRmTypes
(base_pub_policy, old_pub_policy, mapping)
tests/treble_sepolicy_tests.py:59
↓ 1 callers
Function
TestProcTypeViolations
(pol)
tests/sepolicy_tests.py:58
↓ 1 callers
Function
TestPropertyTypeViolations
(pol)
tests/sepolicy_tests.py:97
↓ 1 callers
Function
TestSysfsTypeViolations
(pol)
tests/sepolicy_tests.py:61
↓ 1 callers
Function
TestSystemTypeViolations
(pol)
tests/sepolicy_tests.py:33
↓ 1 callers
Function
TestTracefsTypeViolations
(pol)
tests/sepolicy_tests.py:73
↓ 1 callers
Function
TestTrebleCompatMapping
(base_pub_policy, old_pub_policy, mapping)
tests/treble_sepolicy_tests.py:78
↓ 1 callers
Function
TestVendorTypeViolations
(pol)
tests/sepolicy_tests.py:81
↓ 1 callers
Function
TestViolatorAttributes
(test_policy)
tests/sepolicy_tests.py:178
↓ 1 callers
Method
__ExactMatchPathPrefix
(self, pathregex, prefix)
tests/policy.py:315
↓ 1 callers
Method
__FcSortedIndex
(self, prefix)
tests/policy.py:326
↓ 1 callers
Method
__InitExpandedTERules
(self)
tests/policy.py:389
↓ 1 callers
Method
__InitFC
(self, FcPaths)
tests/policy.py:477
↓ 1 callers
Method
__InitGenfsCon
(self)
tests/policy.py:457
↓ 1 callers
Method
__InitLibsepolwrap
(self, LibPath)
tests/policy.py:402
↓ 1 callers
Method
__InitPolicy
(self, PolicyPath)
tests/policy.py:501
↓ 1 callers
Method
__InitTERules
(self)
tests/policy.py:377
↓ 1 callers
Method
__MatchPathPrefixTypes
(self, prefix, index)
tests/policy.py:336
↓ 1 callers
Method
_parseExpandtypeattribute
(self, stmt)
tests/mini_parser.py:103
↓ 1 callers
Method
_parseStmt
(self, stmt)
tests/mini_parser.py:134
↓ 1 callers
Method
_parseType
(self, stmt)
tests/mini_parser.py:98
↓ 1 callers
Method
_parseTypeattribute
(self, stmt)
tests/mini_parser.py:108
next →
1–100 of 278, ranked by callers