157 s.cleanupIptables()
158}
159
160func (s *IntegrationSuite) cleanupIptables() { 161 //Flush all rules
162 exec.Command("iptables", "-F").Run()
163 //Delete all user-defined chains
18 return &userNamespace{}
19}
20
21func (s *userNamespace) MaxValidIds() (uint32, uint32, error) { 22 maxValidUid, err := maxValidFromFile(uidMap)
23 if err != nil {
24 return 0, 0, err
89 }
90}
91
92func (s *SpecSuite) TestIDMappings() { 93 // TODO
94 //
95 // ensure that we mutate the right thing
101// If username is a numeric user id or group id, it won't be evaluated but the metadata will be filled.
102// e.g. username = "1001" will produce user with UID 1007.
103// This is useful when an image doesn't have an /etc/passwd such as distroless images.
104func (r rootfsManager) LookupUser(rootfsPath string, username string) (specs.User, bool, error) {105 passwdPath := filepath.Join(rootfsPath, "etc", "passwd")
106 groupPath := filepath.Join(rootfsPath, "etc", "group")
107
44//
45// [1]: https://github.com/concourse/concourse/issues/4477
46//
47func (p processKiller) Kill(48 ctx context.Context,
49 proc containerd.Process,
50 signal syscall.Signal,
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
func (*Unix) Name() string {
return "unix"
}