acl.proto 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. syntax="proto2";
  19. option java_package = "org.apache.hadoop.hdfs.protocol.proto";
  20. option java_outer_classname = "AclProtos";
  21. option java_generate_equals_and_hash = true;
  22. package hadoop.hdfs;
  23. import "hdfs.proto";
  24. message AclEntryProto {
  25. enum AclEntryScopeProto {
  26. ACCESS = 0x0;
  27. DEFAULT = 0x1;
  28. }
  29. enum AclEntryTypeProto {
  30. USER = 0x0;
  31. GROUP = 0x1;
  32. MASK = 0x2;
  33. OTHER = 0x3;
  34. }
  35. enum FsActionProto {
  36. NONE = 0x0;
  37. EXECUTE = 0x1;
  38. WRITE = 0x2;
  39. WRITE_EXECUTE = 0x3;
  40. READ = 0x4;
  41. READ_EXECUTE = 0x5;
  42. READ_WRITE = 0x6;
  43. PERM_ALL = 0x7;
  44. }
  45. required AclEntryTypeProto type = 1;
  46. required AclEntryScopeProto scope = 2;
  47. required FsActionProto permissions = 3;
  48. optional string name = 4;
  49. }
  50. message AclStatusProto {
  51. required string owner = 1;
  52. required string group = 2;
  53. required bool sticky = 3;
  54. repeated AclEntryProto entries = 4;
  55. optional FsPermissionProto permission = 5;
  56. }
  57. message ModifyAclEntriesRequestProto {
  58. required string src = 1;
  59. repeated AclEntryProto aclSpec = 2;
  60. }
  61. message ModifyAclEntriesResponseProto {
  62. }
  63. message RemoveAclRequestProto {
  64. required string src = 1;
  65. }
  66. message RemoveAclResponseProto {
  67. }
  68. message RemoveAclEntriesRequestProto {
  69. required string src = 1;
  70. repeated AclEntryProto aclSpec = 2;
  71. }
  72. message RemoveAclEntriesResponseProto {
  73. }
  74. message RemoveDefaultAclRequestProto {
  75. required string src = 1;
  76. }
  77. message RemoveDefaultAclResponseProto {
  78. }
  79. message SetAclRequestProto {
  80. required string src = 1;
  81. repeated AclEntryProto aclSpec = 2;
  82. }
  83. message SetAclResponseProto {
  84. }
  85. message GetAclStatusRequestProto {
  86. required string src = 1;
  87. }
  88. message GetAclStatusResponseProto {
  89. required AclStatusProto result = 1;
  90. }