mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
Merge pull request #291 from yexinw-ctrl/statx-unotify-trace
unotify: trace statx
This commit is contained in:
@@ -138,6 +138,16 @@ static constexpr SyscallDef kTracedSyscalls[] = {
|
||||
{__NR_newfstatat, "newfstatat", "newfstatat", SyscallCategory::FS,
|
||||
{A::DIRFD, A::PATH, A::SKIP, A::SKIP, A::SKIP, A::SKIP}},
|
||||
#endif /* __NR_newfstatat */
|
||||
/*
|
||||
* statx(dirfd, path, flags, mask, statxbuf). Modern glibc/coreutils
|
||||
* (ls, stat) call statx before newfstatat/openat, so without this entry
|
||||
* a stat of a path that is not mounted in the jail is never observed.
|
||||
* arg1 is the path (arg0 is the dirfd), same shape as newfstatat.
|
||||
*/
|
||||
#ifdef __NR_statx
|
||||
{__NR_statx, "statx", "statx", SyscallCategory::FS,
|
||||
{A::DIRFD, A::PATH, A::SKIP, A::SKIP, A::SKIP, A::SKIP}},
|
||||
#endif /* __NR_statx */
|
||||
#ifdef __NR_faccessat
|
||||
{__NR_faccessat, "faccessat", "faccessat", SyscallCategory::FS,
|
||||
{A::DIRFD, A::PATH, A::ACCESS, A::SKIP, A::SKIP, A::SKIP}},
|
||||
|
||||
Reference in New Issue
Block a user