| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: config.proto
- /*
- Package domainsocket is a generated protocol buffer package.
- It is generated from these files:
- config.proto
- It has these top-level messages:
- DomainSocketSecurity
- DomainSocketSettings
- */
- package domainsocket
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- // Flag Array
- type DomainSocketSecurityMode int32
- const (
- DomainSocketSecurityMode_Danger DomainSocketSecurityMode = 0
- // Verfify is Dialer have a pid or ppid match pid file
- DomainSocketSecurityMode_VerifyPid DomainSocketSecurityMode = 1
- // Do not tolerance ppid match
- DomainSocketSecurityMode_DisqualifyPPIDMatch DomainSocketSecurityMode = 2
- // Enforce Uid Verify On euid
- DomainSocketSecurityMode_VerifyEUID DomainSocketSecurityMode = 4
- // Enforce Uid Verify On ruid
- DomainSocketSecurityMode_VerifyRUID DomainSocketSecurityMode = 8
- // Does not allow same user exception
- DomainSocketSecurityMode_DisqualifySameUser DomainSocketSecurityMode = 16
- // Does not allow root user exception
- DomainSocketSecurityMode_DisqualifyRootUser DomainSocketSecurityMode = 32
- )
- var DomainSocketSecurityMode_name = map[int32]string{
- 0: "Danger",
- 1: "VerifyPid",
- 2: "DisqualifyPPIDMatch",
- 4: "VerifyEUID",
- 8: "VerifyRUID",
- 16: "DisqualifySameUser",
- 32: "DisqualifyRootUser",
- }
- var DomainSocketSecurityMode_value = map[string]int32{
- "Danger": 0,
- "VerifyPid": 1,
- "DisqualifyPPIDMatch": 2,
- "VerifyEUID": 4,
- "VerifyRUID": 8,
- "DisqualifySameUser": 16,
- "DisqualifyRootUser": 32,
- }
- func (x DomainSocketSecurityMode) String() string {
- return proto.EnumName(DomainSocketSecurityMode_name, int32(x))
- }
- func (DomainSocketSecurityMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- type DomainSocketSecurity struct {
- // Flag Array Type, User can set an integer to define various configure
- Mode DomainSocketSecurityMode `protobuf:"varint,1,opt,name=Mode,enum=v2ray.core.internet.domainsocket.DomainSocketSecurityMode" json:"Mode,omitempty"`
- // Set pid files to be allowed
- AllowedPid []string `protobuf:"bytes,2,rep,name=AllowedPid" json:"AllowedPid,omitempty"`
- // Set uids to be allowed, either euid or ruid should match one of following
- // uids AllowedUid, or user that v2ray is running or root.
- AllowedUid []uint64 `protobuf:"varint,3,rep,packed,name=AllowedUid" json:"AllowedUid,omitempty"`
- }
- func (m *DomainSocketSecurity) Reset() { *m = DomainSocketSecurity{} }
- func (m *DomainSocketSecurity) String() string { return proto.CompactTextString(m) }
- func (*DomainSocketSecurity) ProtoMessage() {}
- func (*DomainSocketSecurity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- func (m *DomainSocketSecurity) GetMode() DomainSocketSecurityMode {
- if m != nil {
- return m.Mode
- }
- return DomainSocketSecurityMode_Danger
- }
- func (m *DomainSocketSecurity) GetAllowedPid() []string {
- if m != nil {
- return m.AllowedPid
- }
- return nil
- }
- func (m *DomainSocketSecurity) GetAllowedUid() []uint64 {
- if m != nil {
- return m.AllowedUid
- }
- return nil
- }
- type DomainSocketSettings struct {
- // Path we should listen/dial
- Path string `protobuf:"bytes,1,opt,name=Path" json:"Path,omitempty"`
- Security *DomainSocketSecurity `protobuf:"bytes,2,opt,name=Security" json:"Security,omitempty"`
- }
- func (m *DomainSocketSettings) Reset() { *m = DomainSocketSettings{} }
- func (m *DomainSocketSettings) String() string { return proto.CompactTextString(m) }
- func (*DomainSocketSettings) ProtoMessage() {}
- func (*DomainSocketSettings) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
- func (m *DomainSocketSettings) GetPath() string {
- if m != nil {
- return m.Path
- }
- return ""
- }
- func (m *DomainSocketSettings) GetSecurity() *DomainSocketSecurity {
- if m != nil {
- return m.Security
- }
- return nil
- }
- func init() {
- proto.RegisterType((*DomainSocketSecurity)(nil), "v2ray.core.internet.domainsocket.DomainSocketSecurity")
- proto.RegisterType((*DomainSocketSettings)(nil), "v2ray.core.internet.domainsocket.DomainSocketSettings")
- proto.RegisterEnum("v2ray.core.internet.domainsocket.DomainSocketSecurityMode", DomainSocketSecurityMode_name, DomainSocketSecurityMode_value)
- }
- func init() { proto.RegisterFile("config.proto", fileDescriptor0) }
- var fileDescriptor0 = []byte{
- // 302 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xb1, 0x4b, 0x3b, 0x31,
- 0x14, 0xc7, 0x7f, 0x69, 0x8f, 0xd2, 0xbe, 0x5f, 0x2d, 0xe1, 0x29, 0x7a, 0x93, 0x84, 0x4e, 0x87,
- 0x43, 0x86, 0x0a, 0x0e, 0x6e, 0xca, 0x39, 0x74, 0xa8, 0x1c, 0x29, 0x75, 0x70, 0x8b, 0x97, 0xb4,
- 0x0d, 0xb6, 0x89, 0xe6, 0x52, 0xa5, 0x8b, 0x7f, 0x8a, 0xa3, 0x7f, 0xa7, 0x34, 0xa2, 0x3d, 0x45,
- 0x11, 0xdc, 0xf2, 0x3e, 0x49, 0x3e, 0x7c, 0xbf, 0xf0, 0xa0, 0x5b, 0x3a, 0x3b, 0x35, 0x33, 0x7e,
- 0xe7, 0x5d, 0x70, 0xc8, 0x1e, 0x06, 0x5e, 0xae, 0x79, 0xe9, 0xbc, 0xe6, 0xc6, 0x06, 0xed, 0xad,
- 0x0e, 0x5c, 0xb9, 0xa5, 0x34, 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