Function report |
Source Code:security\tomoyo\util.c |
Create Date:2022-07-28 19:48:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_domain_quota_is_ok - Check for domain's quota.*@r: Pointer to "struct tomoyo_request_info".* Returns true if the domain is not exceeded quota, false otherwise.* Caller holds tomoyo_read_lock().
Proto:bool tomoyo_domain_quota_is_ok(struct tomoyo_request_info *r)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_request_info * | r |
1024 | count = 0 |
1028 | If One of tomoyo_mode_index . != TOMOYO_CONFIG_LEARNING Then Return false |
1030 | If Not domain Then Return true |
1037 | If true or false or TOMOYO_GC_IN_PROGRESS Then Continue |
1041 | perm = ({ |
1042 | })->perm |
1043 | Break |
1045 | perm = ({ |
1046 | })->perm |
1047 | Break |
1049 | perm = ({ |
1050 | })->perm |
1051 | Break |
1053 | perm = ({ |
1054 | })->perm |
1055 | Break |
1057 | perm = ({ |
1058 | })->perm |
1059 | Break |
1061 | perm = ({ |
1062 | })->perm |
1063 | Break |
1065 | perm = 0 |
1066 | Break |
1067 | Default |
1068 | perm = 1 |
1072 | count++ |
1074 | If count < pref[TOMOYO_PREF_MAX_LEARNING_ENTRY] Then Return true |
1077 | If Not flags[TOMOYO_DIF_QUOTA_WARNED] Then |
1078 | flags[TOMOYO_DIF_QUOTA_WARNED] = true |
1086 | Return false |
Name | Describe |
---|---|
tomoyo_supervisor | moyo_supervisor - Ask for the supervisor's decision |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |