config.proto 981 B

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