config.proto 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. syntax = "proto3";
  2. package v2ray.core.internet.domainsocket;
  3. option go_package = "domainsocket";
  4. //Flag Array
  5. enum DomainSocketSecurityMode {
  6. Danger = 0;
  7. //Verfify is Dialer have a pid or ppid match pid file
  8. VerifyPid = 1;
  9. //Do not tolerance ppid match
  10. DisqualifyPPIDMatch = 2;
  11. //Enforce Uid Verify On euid
  12. VerifyEUID = 4;
  13. //Enforce Uid Verify On ruid
  14. VerifyRUID = 8;
  15. //Does not allow same user exception
  16. DisqualifySameUser = 16;
  17. //Does not allow root user exception
  18. DisqualifyRootUser = 32;
  19. }
  20. message DomainSocketSecurity{
  21. //Flag Array Type, User can set an integer to define various configure
  22. DomainSocketSecurityMode Mode = 1;
  23. //Set pid files to be allowed
  24. repeated string AllowedPid = 2;
  25. //Set uids to be allowed, either euid or ruid should match one of following
  26. //uids AllowedUid, or user that v2ray is running or root.
  27. repeated uint64 AllowedUid = 3;
  28. }
  29. message DomainSocketSettings{
  30. //Path we should listen/dial
  31. string Path = 1;
  32. DomainSocketSecurity Security = 2;
  33. }