Fix CI lint error
Signed-off-by: Jin Dong <djdongjin95@gmail.com> (cherry picked from commit c8effff1a823bed757194584a80a043c3a69da1a)
This commit is contained in:
parent
1a43cb6a10
commit
16f20abdff
@ -595,13 +595,13 @@ func WithUser(userstr string) SpecOpts {
|
|||||||
setProcess(s)
|
setProcess(s)
|
||||||
s.Process.User.AdditionalGids = nil
|
s.Process.User.AdditionalGids = nil
|
||||||
// While the Linux kernel allows the max UID to be MaxUint32 - 2,
|
// While the Linux kernel allows the max UID to be MaxUint32 - 2,
|
||||||
// and the OCI Runtime Spec has no definition about the max UID,
|
// and the OCI Runtime Spec has no definition about the max UID,
|
||||||
// the runc implementation is known to require the UID to be <= MaxInt32.
|
// the runc implementation is known to require the UID to be <= MaxInt32.
|
||||||
//
|
//
|
||||||
// containerd follows runc's limitation here.
|
// containerd follows runc's limitation here.
|
||||||
//
|
//
|
||||||
// In future we may relax this limitation to allow MaxUint32 - 2,
|
// In future we may relax this limitation to allow MaxUint32 - 2,
|
||||||
// or, amend the OCI Runtime Spec to codify the implementation limitation.
|
// or, amend the OCI Runtime Spec to codify the implementation limitation.
|
||||||
const (
|
const (
|
||||||
minUserID = 0
|
minUserID = 0
|
||||||
maxUserID = math.MaxInt32
|
maxUserID = math.MaxInt32
|
||||||
|
@ -105,7 +105,6 @@ guest:x:100:guest
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, testCase := range testCases {
|
for _, testCase := range testCases {
|
||||||
testCase := testCase
|
|
||||||
t.Run(testCase.user, func(t *testing.T) {
|
t.Run(testCase.user, func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
s := Spec{
|
s := Spec{
|
||||||
|
Loading…
Reference in New Issue
Block a user