{"name": "selinux_check_access", "code": "__int64 __fastcall selinux_check_access ( __int64 @@a1@@ , __int64 @@a2@@ , const char * @@a3@@ , const char * @@a4@@ , __int64 @@a5@@ ) { __int64 @@v9@@ ; __int64 @@v10@@ ; unsigned int @@v11@@ ; unsigned __int16 @@v12@@ ; unsigned int @@v13@@ ; if ( & pthread_once ) { pthread_once ( & once , avc_init_once ) ; } else if ( ! once ) { avc_init_once ( ) ; once = Number ; } if ( selinux_enabled != Number ) return Number L ; @@v13@@ = avc_context_to_sid ( @@a1@@ , & @@v10@@ ) ; if ( ( @@v13@@ & Number ) != Number ) return @@v13@@ ; @@v13@@ = avc_context_to_sid ( @@a2@@ , & @@v9@@ ) ; if ( ( @@v13@@ & Number ) != Number ) return @@v13@@ ; avc_netlink_check_nb ( ) ; @@v12@@ = string_to_security_class ( @@a3@@ ) ; if ( ! @@v12@@ ) { @@v13@@ = * _errno_location ( ) ; if ( avc_func_log ) avc_func_log ( String , @@a3@@ ) ; else selinux_log ( Number L , String , @@a3@@ ) ; if ( ! ( unsigned int ) security_deny_unknown_internal ( ) ) return Number L ; goto LABEL_17 ; } @@v11@@ = string_to_av_perm ( @@v12@@ , @@a4@@ ) ; if ( @@v11@@ ) return avc_has_perm ( @@v10@@ , @@v9@@ , @@v12@@ , @@v11@@ , Number L , @@a5@@ ) ; @@v13@@ = * _errno_location ( ) ; if ( avc_func_log ) avc_func_log ( String , @@a4@@ , @@a3@@ ) ; else selinux_log ( Number L , String , @@a4@@ , @@a3@@ ) ; if ( ( unsigned int ) security_deny_unknown_internal ( ) ) { LABEL_17 : * _errno_location ( ) = @@v13@@ ; return Number ; } return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v11", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v12", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "s6"}]}