• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

drakenclimber / libseccomp / 12716868856
90%
main: 89%

Build:
Build:
LAST BUILD BRANCH: test
DEFAULT BRANCH: main
Ran 10 Jan 2025 08:40PM UTC
Jobs 1
Files 27
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jan 2025 08:37PM UTC coverage: 87.592% (-0.08%) from 87.676%
12716868856

push

github

drakenclimber
bpf: pfc: Add maximum supported kernel version logic

Add support for an application to specify the maximum kernel version it
currently supports.  Any syscalls that have been added to a kernel
version newer than this specified version will return the unknown
action.  The unknown action defaults to returning ENOSYS, but it can be
overridden via the filter attribute SCMP_FLTATR_ACT_UNKNOWN.

When the maximum supported kernel version is enabled, libseccomp will
create a filter as follows:
	* Users explicitly declare rules for syscalls.  No changes here
	  from previous behavior
	* The default action provided via seccomp_init() will still be
	  used for all syscalls that existed as of the user-specified
	  supported kernel
	* Any syscalls that did not exist at the time of the
	  user-specified supported kernel will return the unknown
	  action.  By default libseccomp sets this to return ENOSYS, but
	  it can be overridden via the filter attribute
	  SCMP_FLTATR_ACT_UNKNOWN.

Below is a rough pseudo-code outline of a typical usage of this feature:
	seccomp_init()
	seccomp_add_rules()

	(optional but recommended) seccomp_attr_set( binary tree )
	seccomp_attr_set( max supported kernel version, e.g. SCMP_KV_6_5 )
	(optional) seccomp_attr_set( default unknown action )

	seccomp_load()
	seccomp_release()

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>

8 of 65 new or added lines in 5 files covered. (12.31%)

96 existing lines in 4 files now uncovered.

2739 of 3127 relevant lines covered (87.59%)

288204.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.08
0.0% src/gen_bpf.c
1
94.79
0.0% src/gen_pfc.c
19
87.04
0.0% src/arch.c
36
86.39
-0.24% src/db.c

Uncovered Existing Lines

Lines Coverage ∆ File
2
94.79
0.0% src/gen_pfc.c
2
99.21
0.0% src/api.c
27
83.08
0.0% src/gen_bpf.c
65
86.39
-0.24% src/db.c
Jobs
ID Job ID Ran Files Coverage
1 amd64 - 12716868856.1 10 Jan 2025 08:40PM UTC 27
87.59
GitHub Action Run
Source Files on build 12716868856
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5bc7658f on github
  • Prev Build on wip/issue11-3 (#12716656859)
  • Next Build on wip/issue11-3 (#12718651070)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc