diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-01-24 11:07:16 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-01-24 16:49:39 +0100 |
| commit | 5db97d84e9032fb37ed266873cea296ec6a6d6ce (patch) | |
| tree | 7d2016644d40de296b32f31fc5032c95e74737f9 /sys/linux/gen/amd64.go | |
| parent | 91c9476c39826cc0dd94701540a591f4deba8b16 (diff) | |
sys/linux: describe trusty storage service interface
Update #933
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 194 |
1 files changed, 192 insertions, 2 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 42ae57071..f3d7c0446 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -91,6 +91,7 @@ var resources_amd64 = []*ResourceDesc{ {Name: "fd_trusty_gatekeeper", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_gatekeeper"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_trusty_km", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_trusty_km_secure", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_km_secure"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, + {Name: "fd_trusty_storage", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_trusty", "fd_trusty_storage"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, {Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}}, @@ -22849,6 +22850,168 @@ var structDescs_amd64 = []*KeyedStruct{ &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "signature", TypeSize: 32}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hardware_backed", TypeSize: 1}}, Kind: 2, RangeEnd: 1}, }}}, + {Key: StructKey{Name: "trusty_storage"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage", IsVarlen: true}, Fields: []Type{ + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, FldName: "delete"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, FldName: "open"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, FldName: "close"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, FldName: "read"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, FldName: "write"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, FldName: "get_size"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, FldName: "set_size"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, FldName: "rpmb"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, FldName: "end_trans"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, FldName: "move"}, + &StructType{Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, FldName: "list"}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_close_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_close_req", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_delete_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_delete_req", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_get_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_get_size_req", TypeSize: 4}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_list_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_list_req", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "max_count", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "flags", TypeSize: 1}}, Kind: 2, RangeEnd: 7}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_move_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_move_req", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "old_name_len", TypeSize: 4}}, BitSize: 8, Buf: "old_new_name"}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "old_new_name", IsVarlen: true}, Kind: 2, NoZ: true}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "new_new_name", IsVarlen: true}, Kind: 2, NoZ: true}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_open_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_open_req", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &BufferType{TypeCommon: TypeCommon{TypeName: "stringnoz", FldName: "name", IsVarlen: true}, Kind: 2, NoZ: true}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_read_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_read_req", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_set_size_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_set_size_req", TypeSize: 16}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "size", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, + }}}, + {Key: StructKey{Name: "trusty_storage_file_write_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_file_write_req", IsVarlen: true}, Fields: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "offset", TypeSize: 8}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "handle", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "data", IsVarlen: true}}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_END_TRANSACTION, void]", TypeSize: 24}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 18}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &BufferType{TypeCommon: TypeCommon{TypeName: "void", FldName: "payload"}, Kind: 1}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_CLOSE, trusty_storage_file_close_req]", TypeSize: 28}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 6}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_close_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_DELETE, trusty_storage_file_delete_req]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_delete_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_GET_SIZE, trusty_storage_file_get_size_req]", TypeSize: 28}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 12}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_get_size_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_LIST, trusty_storage_file_list_req]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 22}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_list_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_MOVE, trusty_storage_file_move_req]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_move_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_OPEN, trusty_storage_file_open_req]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_open_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_READ, trusty_storage_file_read_req]", TypeSize: 40}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 8}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_read_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_SET_SIZE, trusty_storage_file_set_size_req]", TypeSize: 40}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 14}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_set_size_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_FILE_WRITE, trusty_storage_file_write_req]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 10}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_file_write_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_msg[TRUSTY_STORAGE_RPMB_SEND, trusty_storage_rpmb_send_req]", IsVarlen: true}, Fields: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 16}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "op_id", TypeSize: 4}}, Kind: 2, RangeEnd: 4}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 7}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 4}}, BitSize: 8, Buf: "parent"}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "result", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &StructType{Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, FldName: "payload"}, + }}}, + {Key: StructKey{Name: "trusty_storage_rpmb_send_req"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_send_req", IsVarlen: true}, Fields: []Type{ + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "reliable_write_size", TypeSize: 4}}, BitSize: 8, Buf: "reliable_write"}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "write_size", TypeSize: 4}}, BitSize: 8, Buf: "write"}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_storage_rpmb_read_size", FldName: "read_size", TypeSize: 4}}, Vals: []uint64{0, 512, 1024, 1536, 1536, 2048, 2560, 3072, 3584, 4096}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__reserved", TypeSize: 4}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reliable_write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "write", IsVarlen: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 512}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 512, RangeEnd: 512}}, + }}}, {Key: StructKey{Name: "tun_buffer"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "tun_buffer", IsVarlen: true}, Fields: []Type{ &UnionType{Key: StructKey{Name: "optional[tun_pi]"}, FldName: "pi"}, &UnionType{Key: StructKey{Name: "optional[virtio_net_hdr]"}, FldName: "hdr"}, @@ -32540,7 +32703,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_ports", Values: []string{"com.android.trusty.gatekeeper\x00", "com.android.trusty.keymaster\x00", "com.android.trusty.keymaster.secure\x00", "com.android.trusty.avb\x00", "com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00", "com.android.trusty.hwkey\x00", "com.android.trusty.hwrng\x00", "com.android.trusty.appmgmt.srv2.start\x00"}}}, }}, {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_avb", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_avb", FldName: "fd", TypeSize: 4}}, @@ -32562,6 +32725,11 @@ var syscalls_amd64 = []*Syscall{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 29}, Kind: 2, Values: []string{"com.android.trusty.keymaster\x00"}}}, }}, + {NR: 16, Name: "ioctl$TIPC_IOC_CONNECT_storage", CallName: "ioctl", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074295424}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2, SubKind: "trusty_storage_ports", Values: []string{"com.android.trusty.storage.proxy\x00", "com.android.trusty.storage.client.td\x00", "com.android.trusty.storage.client.tdea\x00", "com.android.trusty.storage.client.tp\x00"}}}, + }}, {NR: 16, Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074812117}, @@ -35113,6 +35281,12 @@ var syscalls_amd64 = []*Syscall{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_km_secure", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {NR: 257, Name: "openat$trusty_storage", CallName: "openat", Args: []Type{ + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 21}, Kind: 2, Values: []string{"/dev/trusty-ipc-dev0\x00"}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "trusty_open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{2, 2050}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}}, + }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, {NR: 257, Name: "openat$tun", CallName: "openat", Args: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/net/tun\x00"}}}, @@ -40357,6 +40531,11 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "trusty_km_secure_msg"}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, }}, + {NR: 1, Name: "write$trusty_storage", CallName: "write", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty_storage", FldName: "fd", TypeSize: 4}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &UnionType{Key: StructKey{Name: "trusty_storage"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "msg"}, + }}, {NR: 1, Name: "write$tun", CallName: "write", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", TypeSize: 4}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "tun_buffer"}}}, @@ -45823,6 +46002,17 @@ var consts_amd64 = []ConstValue{ {Name: "TRUSTY_KM_UPDATE_OPERATION", Value: 8}, {Name: "TRUSTY_KM_UPGRADE_KEY", Value: 68}, {Name: "TRUSTY_KM_VERIFY_AUTHORIZATION", Value: 84}, + {Name: "TRUSTY_STORAGE_END_TRANSACTION", Value: 18}, + {Name: "TRUSTY_STORAGE_FILE_CLOSE", Value: 6}, + {Name: "TRUSTY_STORAGE_FILE_DELETE", Value: 2}, + {Name: "TRUSTY_STORAGE_FILE_GET_SIZE", Value: 12}, + {Name: "TRUSTY_STORAGE_FILE_LIST", Value: 22}, + {Name: "TRUSTY_STORAGE_FILE_MOVE", Value: 20}, + {Name: "TRUSTY_STORAGE_FILE_OPEN", Value: 4}, + {Name: "TRUSTY_STORAGE_FILE_READ", Value: 8}, + {Name: "TRUSTY_STORAGE_FILE_SET_SIZE", Value: 14}, + {Name: "TRUSTY_STORAGE_FILE_WRITE", Value: 10}, + {Name: "TRUSTY_STORAGE_RPMB_SEND", Value: 16}, {Name: "TUNATTACHFILTER", Value: 1074812117}, {Name: "TUNDETACHFILTER", Value: 1074812118}, {Name: "TUNGETFEATURES", Value: 2147767503}, @@ -47619,4 +47809,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "500c7bc6de19838af5ea3773877b28e9c9c3ea06" +const revision_amd64 = "967577a619d816cf7f54ea5962c337b5247f34e6" |
