| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package creds |
| 10 |
|
| 11 |
import ( |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
|
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type CredsEntry struct { |
| 26 |
state protoimpl.MessageState |
| 27 |
sizeCache protoimpl.SizeCache |
| 28 |
unknownFields protoimpl.UnknownFields |
| 29 |
|
| 30 |
Uid *uint32 `protobuf:"varint,1,req,name=uid" json:"uid,omitempty"` |
| 31 |
Gid *uint32 `protobuf:"varint,2,req,name=gid" json:"gid,omitempty"` |
| 32 |
Euid *uint32 `protobuf:"varint,3,req,name=euid" json:"euid,omitempty"` |
| 33 |
Egid *uint32 `protobuf:"varint,4,req,name=egid" json:"egid,omitempty"` |
| 34 |
Suid *uint32 `protobuf:"varint,5,req,name=suid" json:"suid,omitempty"` |
| 35 |
Sgid *uint32 `protobuf:"varint,6,req,name=sgid" json:"sgid,omitempty"` |
| 36 |
Fsuid *uint32 `protobuf:"varint,7,req,name=fsuid" json:"fsuid,omitempty"` |
| 37 |
Fsgid *uint32 `protobuf:"varint,8,req,name=fsgid" json:"fsgid,omitempty"` |
| 38 |
CapInh []uint32 `protobuf:"varint,9,rep,name=cap_inh,json=capInh" json:"cap_inh,omitempty"` |
| 39 |
CapPrm []uint32 `protobuf:"varint,10,rep,name=cap_prm,json=capPrm" json:"cap_prm,omitempty"` |
| 40 |
CapEff []uint32 `protobuf:"varint,11,rep,name=cap_eff,json=capEff" json:"cap_eff,omitempty"` |
| 41 |
CapBnd []uint32 `protobuf:"varint,12,rep,name=cap_bnd,json=capBnd" json:"cap_bnd,omitempty"` |
| 42 |
Secbits *uint32 `protobuf:"varint,13,req,name=secbits" json:"secbits,omitempty"` |
| 43 |
Groups []uint32 `protobuf:"varint,14,rep,name=groups" json:"groups,omitempty"` |
| 44 |
LsmProfile *string `protobuf:"bytes,15,opt,name=lsm_profile,json=lsmProfile" json:"lsm_profile,omitempty"` |
| 45 |
LsmSockcreate *string `protobuf:"bytes,16,opt,name=lsm_sockcreate,json=lsmSockcreate" json:"lsm_sockcreate,omitempty"` |
| 46 |
ApparmorData []byte `protobuf:"bytes,17,opt,name=apparmor_data,json=apparmorData" json:"apparmor_data,omitempty"` |
| 47 |
} |
| 48 |
|
| 49 |
func (x *CredsEntry) Reset() { |
| 50 |
*x = CredsEntry{} |
| 51 |
if protoimpl.UnsafeEnabled { |
| 52 |
mi := &file_creds_proto_msgTypes[0] |
| 53 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 54 |
ms.StoreMessageInfo(mi) |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
func (x *CredsEntry) String() string { |
| 59 |
return protoimpl.X.MessageStringOf(x) |
| 60 |
} |
| 61 |
|
| 62 |
func (*CredsEntry) ProtoMessage() {} |
| 63 |
|
| 64 |
func (x *CredsEntry) ProtoReflect() protoreflect.Message { |
| 65 |
mi := &file_creds_proto_msgTypes[0] |
| 66 |
if protoimpl.UnsafeEnabled && x != nil { |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
if ms.LoadMessageInfo() == nil { |
| 69 |
ms.StoreMessageInfo(mi) |
| 70 |
} |
| 71 |
return ms |
| 72 |
} |
| 73 |
return mi.MessageOf(x) |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
func (*CredsEntry) Descriptor() ([]byte, []int) { |
| 78 |
return file_creds_proto_rawDescGZIP(), []int{0} |
| 79 |
} |
| 80 |
|
| 81 |
func (x *CredsEntry) GetUid() uint32 { |
| 82 |
if x != nil && x.Uid != nil { |
| 83 |
return *x.Uid |
| 84 |
} |
| 85 |
return 0 |
| 86 |
} |
| 87 |
|
| 88 |
func (x *CredsEntry) GetGid() uint32 { |
| 89 |
if x != nil && x.Gid != nil { |
| 90 |
return *x.Gid |
| 91 |
} |
| 92 |
return 0 |
| 93 |
} |
| 94 |
|
| 95 |
func (x *CredsEntry) GetEuid() uint32 { |
| 96 |
if x != nil && x.Euid != nil { |
| 97 |
return *x.Euid |
| 98 |
} |
| 99 |
return 0 |
| 100 |
} |
| 101 |
|
| 102 |
func (x *CredsEntry) GetEgid() uint32 { |
| 103 |
if x != nil && x.Egid != nil { |
| 104 |
return *x.Egid |
| 105 |
} |
| 106 |
return 0 |
| 107 |
} |
| 108 |
|
| 109 |
func (x *CredsEntry) GetSuid() uint32 { |
| 110 |
if x != nil && x.Suid != nil { |
| 111 |
return *x.Suid |
| 112 |
} |
| 113 |
return 0 |
| 114 |
} |
| 115 |
|
| 116 |
func (x *CredsEntry) GetSgid() uint32 { |
| 117 |
if x != nil && x.Sgid != nil { |
| 118 |
return *x.Sgid |
| 119 |
} |
| 120 |
return 0 |
| 121 |
} |
| 122 |
|
| 123 |
func (x *CredsEntry) GetFsuid() uint32 { |
| 124 |
if x != nil && x.Fsuid != nil { |
| 125 |
return *x.Fsuid |
| 126 |
} |
| 127 |
return 0 |
| 128 |
} |
| 129 |
|
| 130 |
func (x *CredsEntry) GetFsgid() uint32 { |
| 131 |
if x != nil && x.Fsgid != nil { |
| 132 |
return *x.Fsgid |
| 133 |
} |
| 134 |
return 0 |
| 135 |
} |
| 136 |
|
| 137 |
func (x *CredsEntry) GetCapInh() []uint32 { |
| 138 |
if x != nil { |
| 139 |
return x.CapInh |
| 140 |
} |
| 141 |
return nil |
| 142 |
} |
| 143 |
|
| 144 |
func (x *CredsEntry) GetCapPrm() []uint32 { |
| 145 |
if x != nil { |
| 146 |
return x.CapPrm |
| 147 |
} |
| 148 |
return nil |
| 149 |
} |
| 150 |
|
| 151 |
func (x *CredsEntry) GetCapEff() []uint32 { |
| 152 |
if x != nil { |
| 153 |
return x.CapEff |
| 154 |
} |
| 155 |
return nil |
| 156 |
} |
| 157 |
|
| 158 |
func (x *CredsEntry) GetCapBnd() []uint32 { |
| 159 |
if x != nil { |
| 160 |
return x.CapBnd |
| 161 |
} |
| 162 |
return nil |
| 163 |
} |
| 164 |
|
| 165 |
func (x *CredsEntry) GetSecbits() uint32 { |
| 166 |
if x != nil && x.Secbits != nil { |
| 167 |
return *x.Secbits |
| 168 |
} |
| 169 |
return 0 |
| 170 |
} |
| 171 |
|
| 172 |
func (x *CredsEntry) GetGroups() []uint32 { |
| 173 |
if x != nil { |
| 174 |
return x.Groups |
| 175 |
} |
| 176 |
return nil |
| 177 |
} |
| 178 |
|
| 179 |
func (x *CredsEntry) GetLsmProfile() string { |
| 180 |
if x != nil && x.LsmProfile != nil { |
| 181 |
return *x.LsmProfile |
| 182 |
} |
| 183 |
return "" |
| 184 |
} |
| 185 |
|
| 186 |
func (x *CredsEntry) GetLsmSockcreate() string { |
| 187 |
if x != nil && x.LsmSockcreate != nil { |
| 188 |
return *x.LsmSockcreate |
| 189 |
} |
| 190 |
return "" |
| 191 |
} |
| 192 |
|
| 193 |
func (x *CredsEntry) GetApparmorData() []byte { |
| 194 |
if x != nil { |
| 195 |
return x.ApparmorData |
| 196 |
} |
| 197 |
return nil |
| 198 |
} |
| 199 |
|
| 200 |
var File_creds_proto protoreflect.FileDescriptor |
| 201 |
|
| 202 |
var file_creds_proto_rawDesc = []byte{ |
| 203 |
0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x03, |
| 204 |
0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, |
| 205 |
0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, |
| 206 |
0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, |
| 207 |
0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x52, |
| 208 |
0x04, 0x65, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x67, 0x69, 0x64, 0x18, 0x04, 0x20, |
| 209 |
0x02, 0x28, 0x0d, 0x52, 0x04, 0x65, 0x67, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x75, 0x69, |
| 210 |
0x64, 0x18, 0x05, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, |
| 211 |
0x04, 0x73, 0x67, 0x69, 0x64, 0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x67, 0x69, |
| 212 |
0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x73, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x02, 0x28, 0x0d, |
| 213 |
0x52, 0x05, 0x66, 0x73, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x73, 0x67, 0x69, 0x64, |
| 214 |
0x18, 0x08, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x73, 0x67, 0x69, 0x64, 0x12, 0x17, 0x0a, |
| 215 |
0x07, 0x63, 0x61, 0x70, 0x5f, 0x69, 0x6e, 0x68, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, |
| 216 |
0x63, 0x61, 0x70, 0x49, 0x6e, 0x68, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61, 0x70, 0x5f, 0x70, 0x72, |
| 217 |
0x6d, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x61, 0x70, 0x50, 0x72, 0x6d, 0x12, |
| 218 |
0x17, 0x0a, 0x07, 0x63, 0x61, 0x70, 0x5f, 0x65, 0x66, 0x66, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, |
| 219 |
0x52, 0x06, 0x63, 0x61, 0x70, 0x45, 0x66, 0x66, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61, 0x70, 0x5f, |
| 220 |
0x62, 0x6e, 0x64, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x61, 0x70, 0x42, 0x6e, |
| 221 |
0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x62, 0x69, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x02, |
| 222 |
0x28, 0x0d, 0x52, 0x07, 0x73, 0x65, 0x63, 0x62, 0x69, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x67, |
| 223 |
0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x67, 0x72, 0x6f, |
| 224 |
0x75, 0x70, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x73, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, |
| 225 |
0x6c, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x73, 0x6d, 0x50, 0x72, 0x6f, |
| 226 |
0x66, 0x69, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x73, 0x6d, 0x5f, 0x73, 0x6f, 0x63, 0x6b, |
| 227 |
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x73, |
| 228 |
0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, |
| 229 |
0x70, 0x70, 0x61, 0x72, 0x6d, 0x6f, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x11, 0x20, 0x01, |
| 230 |
0x28, 0x0c, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x61, 0x72, 0x6d, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, |
| 231 |
} |
| 232 |
|
| 233 |
var ( |
| 234 |
file_creds_proto_rawDescOnce sync.Once |
| 235 |
file_creds_proto_rawDescData = file_creds_proto_rawDesc |
| 236 |
) |
| 237 |
|
| 238 |
func file_creds_proto_rawDescGZIP() []byte { |
| 239 |
file_creds_proto_rawDescOnce.Do(func() { |
| 240 |
file_creds_proto_rawDescData = protoimpl.X.CompressGZIP(file_creds_proto_rawDescData) |
| 241 |
}) |
| 242 |
return file_creds_proto_rawDescData |
| 243 |
} |
| 244 |
|
| 245 |
var file_creds_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 246 |
var file_creds_proto_goTypes = []interface{}{ |
| 247 |
(*CredsEntry)(nil), |
| 248 |
} |
| 249 |
var file_creds_proto_depIdxs = []int32{ |
| 250 |
0, |
| 251 |
0, |
| 252 |
0, |
| 253 |
0, |
| 254 |
0, |
| 255 |
} |
| 256 |
|
| 257 |
func init() { file_creds_proto_init() } |
| 258 |
func file_creds_proto_init() { |
| 259 |
if File_creds_proto != nil { |
| 260 |
return |
| 261 |
} |
| 262 |
if !protoimpl.UnsafeEnabled { |
| 263 |
file_creds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 264 |
switch v := v.(*CredsEntry); i { |
| 265 |
case 0: |
| 266 |
return &v.state |
| 267 |
case 1: |
| 268 |
return &v.sizeCache |
| 269 |
case 2: |
| 270 |
return &v.unknownFields |
| 271 |
default: |
| 272 |
return nil |
| 273 |
} |
| 274 |
} |
| 275 |
} |
| 276 |
type x struct{} |
| 277 |
out := protoimpl.TypeBuilder{ |
| 278 |
File: protoimpl.DescBuilder{ |
| 279 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 280 |
RawDescriptor: file_creds_proto_rawDesc, |
| 281 |
NumEnums: 0, |
| 282 |
NumMessages: 1, |
| 283 |
NumExtensions: 0, |
| 284 |
NumServices: 0, |
| 285 |
}, |
| 286 |
GoTypes: file_creds_proto_goTypes, |
| 287 |
DependencyIndexes: file_creds_proto_depIdxs, |
| 288 |
MessageInfos: file_creds_proto_msgTypes, |
| 289 |
}.Build() |
| 290 |
File_creds_proto = out.File |
| 291 |
file_creds_proto_rawDesc = nil |
| 292 |
file_creds_proto_goTypes = nil |
| 293 |
file_creds_proto_depIdxs = nil |
| 294 |
} |