RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1908281 - libseccomp: Add support for newer system calls (up to Linux 5.10)
Summary: libseccomp: Add support for newer system calls (up to Linux 5.10)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libseccomp
Version: 7.9
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zoltan Fridrich
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-16 10:07 UTC by Florian Weimer
Modified: 2021-08-10 12:36 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-10 12:34:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1762578 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 2042582

Description Florian Weimer 2020-12-16 10:07:53 UTC
Description of problem:

Due to the way various container runtimes set up seccomp filters, libseccomp needs to be updated for new system calls even though the host kernel does not support them. Otherwise, it is not possible to produce an ENOSYS error for them.

Version-Release number of selected component (if applicable):

libseccomp-2.3.1-4.el7.x86_64

How reproducible:

Always.

Steps to Reproduce:

Install Docker CE, in these package versions:

  containerd.io-1.4.3-3.1.el7.x86_64
  libseccomp-2.3.1-4.el7.x86_64
  docker-ce-rootless-extras-20.10.1-3.el7.x86_64
  docker-ce-20.10.1-3.el7.x86_64
  docker-ce-cli-20.10.1-3.el7.x86_64
  container-selinux-2.119.2-1.911c772.el7_8.noarch

This version has faccessat2 support on the Docker CE side.

Then run:

docker run fedora:rawhide /bin/bash -c "yum update -y glibc; bash -c 'test -r /tmp; echo \$?'"

Quoting is a bit tricky here. The inner bash is needed to pick up the new glibc.

Actual results:

1

(faccessat2 return EPERM.)

Expected results:

0

(faccessat2 return ENOSYS, and faccessat fallback is used.)


Additional info:

I rebuild libseccomp 2.5.1 from the upstream sources and verified that it fixes the seccomp filters. But knowledge of the new system calls can likely be backported separately.

Comment 1 Honza Horak 2021-01-11 17:10:20 UTC
Hitting that with mariadb 10.5 in F34 container: bz #1914984

Comment 2 Florian Weimer 2021-01-29 13:14:52 UTC
This runc pull request may make a libseccomp unnecessary (if incorporated into Docker): https://github.com/opencontainers/runc/pull/2750

Comment 4 Zoltan Fridrich 2021-03-18 10:24:05 UTC
As it seems that there is no more need to add new syscalls to libseccomp on rhel-7.9, I will close this bz. However, it can be reopened if needed in the future.

Comment 5 Vratislav Podzimek 2021-05-04 21:00:22 UTC
Please note that this also happens with buildah:

$ c=$(buildah from fedora:34)
$ buildah run $c /bin/bash
# test -x /
# echo $?
1
# exit

Comment 11 Florian Weimer 2021-08-10 12:36:00 UTC
Fedora has encountered this issue as well (or perhaps a closely related one): https://pagure.io/fedora-infrastructure/issue/10145


Note You need to log in before you can comment on or make changes to this bug.