We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9231ea commit f62c056Copy full SHA for f62c056
internal/pkg/agent/cmd/container_init_linux.go
@@ -34,7 +34,10 @@ var (
34
// If new binary capabilities are set then the returned cmd will be not nil. Note that it is up to caller to invoke
35
// the returned cmd and spawn an agent instance with all the capabilities.
36
func initContainer(streams *cli.IOStreams) (shouldExit bool, err error) {
37
- isRoot, _ := utils.HasRoot()
+ isRoot, err := utils.HasRoot()
38
+ if err != nil {
39
+ return true, err
40
+ }
41
if !skipFileCapabilities && !isRoot {
42
executable, err := os.Executable()
43
if err != nil {
0 commit comments