config.pb.go 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: config.proto
  3. /*
  4. Package domainsocket is a generated protocol buffer package.
  5. It is generated from these files:
  6. config.proto
  7. It has these top-level messages:
  8. DomainSocketSecurity
  9. DomainSocketSettings
  10. */
  11. package domainsocket
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // Flag Array
  25. type DomainSocketSecurityMode int32
  26. const (
  27. DomainSocketSecurityMode_Danger DomainSocketSecurityMode = 0
  28. // Verfify is Dialer have a pid or ppid match pid file
  29. DomainSocketSecurityMode_VerifyPid DomainSocketSecurityMode = 1
  30. // Do not tolerance ppid match
  31. DomainSocketSecurityMode_DisqualifyPPIDMatch DomainSocketSecurityMode = 2
  32. // Enforce Uid Verify On euid
  33. DomainSocketSecurityMode_VerifyEUID DomainSocketSecurityMode = 4
  34. // Enforce Uid Verify On ruid
  35. DomainSocketSecurityMode_VerifyRUID DomainSocketSecurityMode = 8
  36. // Does not allow same user exception
  37. DomainSocketSecurityMode_DisqualifySameUser DomainSocketSecurityMode = 16
  38. // Does not allow root user exception
  39. DomainSocketSecurityMode_DisqualifyRootUser DomainSocketSecurityMode = 32
  40. )
  41. var DomainSocketSecurityMode_name = map[int32]string{
  42. 0: "Danger",
  43. 1: "VerifyPid",
  44. 2: "DisqualifyPPIDMatch",
  45. 4: "VerifyEUID",
  46. 8: "VerifyRUID",
  47. 16: "DisqualifySameUser",
  48. 32: "DisqualifyRootUser",
  49. }
  50. var DomainSocketSecurityMode_value = map[string]int32{
  51. "Danger": 0,
  52. "VerifyPid": 1,
  53. "DisqualifyPPIDMatch": 2,
  54. "VerifyEUID": 4,
  55. "VerifyRUID": 8,
  56. "DisqualifySameUser": 16,
  57. "DisqualifyRootUser": 32,
  58. }
  59. func (x DomainSocketSecurityMode) String() string {
  60. return proto.EnumName(DomainSocketSecurityMode_name, int32(x))
  61. }
  62. func (DomainSocketSecurityMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  63. type DomainSocketSecurity struct {
  64. // Flag Array Type, User can set an integer to define various configure
  65. Mode DomainSocketSecurityMode `protobuf:"varint,1,opt,name=Mode,enum=v2ray.core.internet.domainsocket.DomainSocketSecurityMode" json:"Mode,omitempty"`
  66. // Set pid files to be allowed
  67. AllowedPid []string `protobuf:"bytes,2,rep,name=AllowedPid" json:"AllowedPid,omitempty"`
  68. // Set uids to be allowed, either euid or ruid should match one of following
  69. // uids AllowedUid, or user that v2ray is running or root.
  70. AllowedUid []uint64 `protobuf:"varint,3,rep,packed,name=AllowedUid" json:"AllowedUid,omitempty"`
  71. }
  72. func (m *DomainSocketSecurity) Reset() { *m = DomainSocketSecurity{} }
  73. func (m *DomainSocketSecurity) String() string { return proto.CompactTextString(m) }
  74. func (*DomainSocketSecurity) ProtoMessage() {}
  75. func (*DomainSocketSecurity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  76. func (m *DomainSocketSecurity) GetMode() DomainSocketSecurityMode {
  77. if m != nil {
  78. return m.Mode
  79. }
  80. return DomainSocketSecurityMode_Danger
  81. }
  82. func (m *DomainSocketSecurity) GetAllowedPid() []string {
  83. if m != nil {
  84. return m.AllowedPid
  85. }
  86. return nil
  87. }
  88. func (m *DomainSocketSecurity) GetAllowedUid() []uint64 {
  89. if m != nil {
  90. return m.AllowedUid
  91. }
  92. return nil
  93. }
  94. type DomainSocketSettings struct {
  95. // Path we should listen/dial
  96. Path string `protobuf:"bytes,1,opt,name=Path" json:"Path,omitempty"`
  97. Security *DomainSocketSecurity `protobuf:"bytes,2,opt,name=Security" json:"Security,omitempty"`
  98. }
  99. func (m *DomainSocketSettings) Reset() { *m = DomainSocketSettings{} }
  100. func (m *DomainSocketSettings) String() string { return proto.CompactTextString(m) }
  101. func (*DomainSocketSettings) ProtoMessage() {}
  102. func (*DomainSocketSettings) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  103. func (m *DomainSocketSettings) GetPath() string {
  104. if m != nil {
  105. return m.Path
  106. }
  107. return ""
  108. }
  109. func (m *DomainSocketSettings) GetSecurity() *DomainSocketSecurity {
  110. if m != nil {
  111. return m.Security
  112. }
  113. return nil
  114. }
  115. func init() {
  116. proto.RegisterType((*DomainSocketSecurity)(nil), "v2ray.core.internet.domainsocket.DomainSocketSecurity")
  117. proto.RegisterType((*DomainSocketSettings)(nil), "v2ray.core.internet.domainsocket.DomainSocketSettings")
  118. proto.RegisterEnum("v2ray.core.internet.domainsocket.DomainSocketSecurityMode", DomainSocketSecurityMode_name, DomainSocketSecurityMode_value)
  119. }
  120. func init() { proto.RegisterFile("config.proto", fileDescriptor0) }
  121. var fileDescriptor0 = []byte{
  122. // 302 bytes of a gzipped FileDescriptorProto
  123. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xb1, 0x4b, 0x3b, 0x31,
  124. 0x14, 0xc7, 0x7f, 0x69, 0x8f, 0xd2, 0xbe, 0x5f, 0x2d, 0xe1, 0x29, 0x7a, 0x93, 0x84, 0x4e, 0x87,
  125. 0x43, 0x86, 0x0a, 0x0e, 0x6e, 0xca, 0x39, 0x74, 0xa8, 0x1c, 0x29, 0x75, 0x70, 0x8b, 0x97, 0xb4,
  126. 0x0d, 0xb6, 0x89, 0xe6, 0x52, 0xa5, 0x8b, 0x7f, 0x8a, 0xa3, 0x7f, 0xa7, 0x34, 0xa2, 0x3d, 0x45,
  127. 0x11, 0xdc, 0xf2, 0x3e, 0x49, 0x3e, 0x7c, 0xbf, 0xf0, 0xa0, 0x5b, 0x3a, 0x3b, 0x35, 0x33, 0x7e,
  128. 0xe7, 0x5d, 0x70, 0xc8, 0x1e, 0x06, 0x5e, 0xae, 0x79, 0xe9, 0xbc, 0xe6, 0xc6, 0x06, 0xed, 0xad,
  129. 0x0e, 0x5c, 0xb9, 0xa5, 0x34, 0xb6, 0x72, 0xe5, 0xad, 0x0e, 0xfd, 0x17, 0x02, 0x7b, 0x79, 0x04,
  130. 0xe3, 0x08, 0xc6, 0xba, 0x5c, 0x79, 0x13, 0xd6, 0x78, 0x09, 0xc9, 0xc8, 0x29, 0x9d, 0x12, 0x46,
  131. 0xb2, 0xde, 0xe0, 0x94, 0xff, 0x66, 0xe2, 0xdf, 0x59, 0x36, 0x06, 0x11, 0x3d, 0x78, 0x08, 0x70,
  132. 0xb6, 0x58, 0xb8, 0x47, 0xad, 0x0a, 0xa3, 0xd2, 0x06, 0x6b, 0x66, 0x1d, 0x51, 0x23, 0xb5, 0xfb,
  133. 0x89, 0x51, 0x69, 0x93, 0x35, 0xb3, 0x44, 0xd4, 0x48, 0xff, 0xe9, 0x6b, 0xce, 0x10, 0x8c, 0x9d,
  134. 0x55, 0x88, 0x90, 0x14, 0x32, 0xcc, 0x63, 0xce, 0x8e, 0x88, 0x67, 0x14, 0xd0, 0x7e, 0x4f, 0x90,
  135. 0x36, 0x18, 0xc9, 0xfe, 0x0f, 0x4e, 0xfe, 0x96, 0x5f, 0x7c, 0x78, 0x8e, 0x9e, 0x09, 0xa4, 0x3f,
  136. 0x55, 0x44, 0x80, 0x56, 0x2e, 0xed, 0x4c, 0x7b, 0xfa, 0x0f, 0x77, 0xa0, 0x73, 0xa5, 0xbd, 0x99,
  137. 0xae, 0x0b, 0xa3, 0x28, 0xc1, 0x03, 0xd8, 0xcd, 0x4d, 0x75, 0xbf, 0x92, 0x8b, 0x0d, 0x2a, 0x86,
  138. 0xf9, 0x48, 0x86, 0x72, 0x4e, 0x1b, 0xd8, 0x03, 0x78, 0x7b, 0x77, 0x31, 0x19, 0xe6, 0x34, 0xd9,
  139. 0xce, 0x62, 0x33, 0xb7, 0x71, 0x1f, 0x70, 0xfb, 0x71, 0x2c, 0x97, 0x7a, 0x52, 0x69, 0x4f, 0xe9,
  140. 0x67, 0x2e, 0x9c, 0x0b, 0x91, 0xb3, 0xf3, 0xde, 0x75, 0xb7, 0xde, 0xe7, 0xa6, 0x15, 0x57, 0xe0,
  141. 0xf8, 0x35, 0x00, 0x00, 0xff, 0xff, 0x53, 0x18, 0xa4, 0xc9, 0x12, 0x02, 0x00, 0x00,
  142. }