Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hepto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hepto
Commits
21ee6c22
Commit
21ee6c22
authored
2 years ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Add missing capabilities for Cilium BPF
parent
25dd14bc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/hepto.go
+3
-3
3 additions, 3 deletions
cmd/hepto.go
cmd/hepto/defaults.go
+3
-1
3 additions, 1 deletion
cmd/hepto/defaults.go
with
6 additions
and
4 deletions
cmd/hepto.go
+
3
−
3
View file @
21ee6c22
...
@@ -29,9 +29,9 @@ func main() {
...
@@ -29,9 +29,9 @@ func main() {
// mount with very simple very formatted arguments in that order:
// mount with very simple very formatted arguments in that order:
// mount -t tmpfs -o size=1234 /src /dst
// mount -t tmpfs -o size=1234 /src /dst
err
=
unix
.
Mount
(
os
.
Args
[
5
],
os
.
Args
[
6
],
os
.
Args
[
2
],
0
,
os
.
Args
[
4
])
err
=
unix
.
Mount
(
os
.
Args
[
5
],
os
.
Args
[
6
],
os
.
Args
[
2
],
0
,
os
.
Args
[
4
])
}
else
if
bin
==
"umount"
{
}
else
if
bin
==
"umount"
{
// Same for umount
// Same for umount
err
=
unix
.
Unmount
(
os
.
Args
[
1
],
0
)
err
=
unix
.
Unmount
(
os
.
Args
[
1
],
0
)
}
else
if
bin
==
"containerd"
||
(
len
(
os
.
Args
)
>
1
&&
os
.
Args
[
1
]
==
"publish"
)
{
}
else
if
bin
==
"containerd"
||
(
len
(
os
.
Args
)
>
1
&&
os
.
Args
[
1
]
==
"publish"
)
{
// Containerd is also available under hepto name, guess based on
// Containerd is also available under hepto name, guess based on
// call arguments
// call arguments
...
...
This diff is collapsed.
Click to expand it.
cmd/hepto/defaults.go
+
3
−
1
View file @
21ee6c22
...
@@ -37,7 +37,9 @@ var additionalCapabilities = []string{
...
@@ -37,7 +37,9 @@ var additionalCapabilities = []string{
"CAP_MKNOD"
,
"CAP_MKNOD"
,
"CAP_AUDIT_WRITE"
,
"CAP_AUDIT_WRITE"
,
"CAP_SETFCAP"
,
"CAP_SETFCAP"
,
"CAP_FSETID"
,
// Required for some services including Cilium
"CAP_IPC_LOCK"
,
"CAP_SYS_MODULE"
,
}
}
// Required devices for kubernetes
// Required devices for kubernetes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment