Skip to content

vendor: bump seccomp/libseccomp-golang to f33da4d#3465

Merged
thaJeztah merged 3 commits intoopencontainers:mainfrom
crazy-max:update-libseccomp
May 4, 2022
Merged

vendor: bump seccomp/libseccomp-golang to f33da4d#3465
thaJeztah merged 3 commits intoopencontainers:mainfrom
crazy-max:update-libseccomp

Conversation

@crazy-max
Copy link
Copy Markdown
Contributor

fixes clang issue seccomp/libseccomp-golang#90.

@thaJeztah there are other changes while vendoring it seccomp/libseccomp-golang@3879420...f33da4d. not sure about the impact of them on runc.

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

@thaJeztah
Copy link
Copy Markdown
Member

Looks like there's some uses of libseccomp.ActKill that need to be updated locally;

Error: SA1019: libseccomp.ActKill is deprecated: use ActKillThread  (staticcheck)
  Error: SA1019: libseccomp.ActKill is deprecated: use ActKillThread  (staticcheck)
  
  Error: issues found

@crazy-max crazy-max force-pushed the update-libseccomp branch from 4022d05 to d7f482d Compare May 3, 2022 11:01
switch act {
case configs.Kill:
return libseccomp.ActKill, nil
case configs.Kill, configs.KillThread:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if one of configs.Kill also should be deprecated on this side 🤔 (not for this PR, just thinking out loud?)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the same problem in libcontainer/config -- Kill and KillThread are two distinct constants. Guess it makes sense to deprecate the former.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup; that was my thought as well

I'm ok doing that separately, but something we should probably do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh well, it's a bit bigger than I thought; see #3466

@crazy-max feel free to cherry-pick that commit to here.

I also think we should really deprecate ACT_KILL, but it should be done in the runtime-spec repo first.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kolyshkin

feel free to cherry-pick that commit to here.

done

@thaJeztah
Copy link
Copy Markdown
Member

@crazy-max can you swap the order of the commits (assuming both ActKillThread and ActKill were present before updating; if not, then it's best to squash the commits to preserve git bisect. 😅

crazy-max added 2 commits May 3, 2022 13:15
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the update-libseccomp branch from d7f482d to df2bc13 Compare May 3, 2022 11:15
@crazy-max crazy-max marked this pull request as ready for review May 3, 2022 12:04
@crazy-max crazy-max requested a review from thaJeztah May 3, 2022 14:16
thaJeztah
thaJeztah previously approved these changes May 3, 2022
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolyshkin PTAL

OCI spec added SCMP_ACT_KILL_THREAD and SCMP_ACT_KILL_PROCESS almost two
years ago ([1], [2]), but runc support was half-finished [3].

Add these actions, and modify the test case to check them.

In addition, "runc features" now lists the new actions.

[1] opencontainers/runtime-spec#1044
[2] opencontainers/runtime-spec#1064
[3] https://github.com/opencontainers/runc/pulls/3204

Fixes: 4a4d4f1
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit e74fdeb)
Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kolyshkin
Copy link
Copy Markdown
Contributor

@thaJeztah I see your LGTM, but you probably forgot to actually "Accept" the PR

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops! probably picked "comment" instead of "approve" 😂

LGTM (for real this time)

@thaJeztah thaJeztah merged commit da6f3b0 into opencontainers:main May 4, 2022
@crazy-max crazy-max deleted the update-libseccomp branch May 10, 2022 16:18
@crazy-max
Copy link
Copy Markdown
Contributor Author

@thaJeztah @kolyshkin is there a milestone that includes this PR to fix the clang issue? cc @tonistiigi

@kolyshkin kolyshkin added kind/dependency backport/1.1-todo A PR in main branch which needs to be backported to release-1.1 labels May 20, 2022
@kolyshkin kolyshkin added backport/1.1-done A PR in main branch which has been backported to release-1.1 and removed backport/1.1-todo A PR in main branch which needs to be backported to release-1.1 labels Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.1-done A PR in main branch which has been backported to release-1.1 kind/dependency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants