mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
seccomp: add cachestat syscall (kernel v6.5, libseccomp v2.5.5)
Add this syscall to match the profile in containerd containerd:a6e52c74falibseccomp:53267af3fbkernel:cf264e1329NAME cachestat - query the page cache statistics of a file. SYNOPSIS #include <sys/mman.h> struct cachestat_range { __u64 off; __u64 len; }; struct cachestat { __u64 nr_cache; __u64 nr_dirty; __u64 nr_writeback; __u64 nr_evicted; __u64 nr_recently_evicted; }; int cachestat(unsigned int fd, struct cachestat_range *cstat_range, struct cachestat *cstat, unsigned int flags); DESCRIPTION cachestat() queries the number of cached pages, number of dirty pages, number of pages marked for writeback, number of evicted pages, number of recently evicted pages, in the bytes range given by `off` and `len`. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit4d0d5ee10d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
"alarm",
|
||||
"bind",
|
||||
"brk",
|
||||
"cachestat",
|
||||
"capget",
|
||||
"capset",
|
||||
"chdir",
|
||||
|
||||
@@ -56,6 +56,7 @@ func DefaultProfile() *Seccomp {
|
||||
"alarm",
|
||||
"bind",
|
||||
"brk",
|
||||
"cachestat", // kernel v6.5, libseccomp v2.5.5
|
||||
"capget",
|
||||
"capset",
|
||||
"chdir",
|
||||
|
||||
Reference in New Issue
Block a user