Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seccomp: filter more syscalls #10884

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Seccomp: filter more syscalls #10884

merged 1 commit into from
Jan 9, 2025

Conversation

caolanm
Copy link
Contributor

@caolanm caolanm commented Jan 9, 2025

Change-Id: Ia17360035035418ada519cf758e38be35c01a177

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

Copy link
Contributor

@mmeeks mmeeks left a comment

Choose a reason for hiding this comment

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

That's fine I expect we could also do:

    BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ERRNO | EPERM),

or somesuch for this which might make it safer; I expect that failing execve more gracefully may protect us against termination in a number of code-paths where 'helpers' are exec'd - no doubt there is some find-all-printers thing or xdg-open type spawning lurking there - and we don't want data-loss =)

We should also clobber 'execveat' I think =)

@caolanm caolanm force-pushed the private/caolan/add_to_seccomp branch from 7d85675 to c4d4506 Compare January 9, 2025 16:34
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ia17360035035418ada519cf758e38be35c01a177
@caolanm caolanm force-pushed the private/caolan/add_to_seccomp branch from c4d4506 to 29a4517 Compare January 9, 2025 17:15
Copy link
Contributor

@mmeeks mmeeks left a comment

Choose a reason for hiding this comment

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

Lovely - thanks ! =)

@mmeeks mmeeks enabled auto-merge (rebase) January 9, 2025 17:28
@mmeeks mmeeks merged commit 32f3043 into master Jan 9, 2025
14 checks passed
@mmeeks mmeeks deleted the private/caolan/add_to_seccomp branch January 9, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants