1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 14:26:11 -04:00
v2fly/transport/internet/domainsocket/config.proto

41 lines
981 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package v2ray.core.internet.domainsocket;
//Flag Array
enum DomainSocketSecurityMode {
Danger = 0;
//Verfify is Dialer have a pid or ppid match pid file
VerifyPid = 1;
//Do not tolerance ppid match
DisqualifyPPIDMatch = 2;
//Enforce Uid Verify On euid
VerifyEUID = 4;
//Enforce Uid Verify On ruid
VerifyRUID = 8;
//Does not allow same user exception
DisqualifySameUser = 16;
//Does not allow root user exception
DisqualifyRootUser = 32;
}
message DomainSocketSecurity{
//Flag Array Type, User can set an integer to define various configure
DomainSocketSecurityMode Mode = 1;
//Set pid files to be allowed
repeated string AllowedPid = 2;
//Set uids to be allowed, either euid or ruid should match one of following
//uids AllowedUid, or user that v2ray is running or root.
repeated uint64 AllowedUid = 3;
}
message DomainSocketSettings{
//Path we should listen/dial
2017-10-31 03:51:33 -04:00
string Path = 1;
DomainSocketSecurity Security = 2;
}