19 Commits
Author SHA1 Message Date
Andrei Vagin f010ae01ac Fix a few typos 2025-01-29 21:16:51 -08:00
Andrei VaginandgVisor bot eb6b3ac00b vfs: MountNamespace.Root() has to return a top mount of /
A few mounts can be mounted on top of `/`.

PiperOrigin-RevId: 558264274
2023-08-18 15:35:47 -07:00
Adin ScannellandgVisor bot 1ceb814544 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
Ayush RanjanandgVisor bot 0bb834f4e2 Delete fsbridge.
Updates #1624

PiperOrigin-RevId: 492286535
2022-12-01 13:36:10 -08:00
Ayush RanjanandgVisor bot 1fa3c06f1e Delete VFS1 completely.
- Delete pkg/sentry/fs/*.
- Move pkg/sentry/fs/fsutil out of VFS1 directory and remove VFS1 components.
- Remove remaining unused references to VFS1 from remaining codebase.
- Rename/refactor code to avoid even referencing VFS2, unless necessary.
- Rewrite VFS1-only tests to VFS2.

Updates #1624

PiperOrigin-RevId: 490064269
2022-11-21 13:57:52 -08:00
Shambhavi SrivastavaandgVisor bot 30182dc10f Add /proc/[pid]/maps to runsc trace procfs
Updates #7897

PiperOrigin-RevId: 478903608
2022-10-04 15:57:45 -07:00
Fabricio VoznikaandgVisor bot ed38782b23 Remove omitempty for fields than can be 0
Some fields can have a legitimate value of 0 and that was
causing the field to be omitted from the output, giving the
impression that it hasn't been set.

Updates #4805

PiperOrigin-RevId: 456335515
2022-06-21 13:23:17 -07:00
Fabricio VoznikaandgVisor bot 5deab709e7 Add mode to procfs dump
Updates #4805

PiperOrigin-RevId: 456284312
2022-06-21 09:57:58 -07:00
Ayush RanjanandgVisor bot cad9a8303f Add ppid to trace procfs output.
Updates #4805

PiperOrigin-RevId: 452169866
2022-05-31 16:46:21 -07:00
Ayush RanjanandgVisor bot f1c9664506 Add support for /proc/[pid]/stat to trace procfs.
Updates #4805

PiperOrigin-RevId: 451314545
2022-05-26 22:24:54 -07:00
Ayush RanjanandgVisor bot 565fbe2151 Add support for /proc/[pid]/status to trace procfs.
Updates #4805

PiperOrigin-RevId: 451301995
2022-05-26 20:34:16 -07:00
Ayush RanjanandgVisor bot 37076bc16f Add support for /proc/[pid]/cgroup to trace procfs.
Updates #4805

PiperOrigin-RevId: 451297968
2022-05-26 20:02:32 -07:00
Ayush RanjanandgVisor bot a3892a07b5 Add support for prlimit(RLIMIT_NOFILE) to trace procfs.
Updates #4805

PiperOrigin-RevId: 451029238
2022-05-25 15:30:14 -07:00
Ayush RanjanandgVisor bot f7d57e9746 Add support for /proc/[pid]/root to trace procfs.
Updates #4805

PiperOrigin-RevId: 450846922
2022-05-24 22:48:07 -07:00
Ayush RanjanandgVisor bot 0ad98ee0e8 Add support for process start time to trace procfs.
Added test for this.

Updates #4805

PiperOrigin-RevId: 450797692
2022-05-24 16:42:29 -07:00
Ayush RanjanandgVisor bot b274736ac7 Add support for /prod/[pid]/fd to trace procfs.
On Linux, /proc/[pid]/fd/ entries are symlinks with name
as FD number and target as the file path.

runsc trace procfs will return the FD numbers and their
corresponding file paths for each process.

Updates #4805

PiperOrigin-RevId: 450788929
2022-05-24 15:59:52 -07:00
Ayush RanjanandgVisor bot ec422a6609 Add support for /proc/[pid]/cwd to trace procfs.
Added test for this field.

Updates #4805

PiperOrigin-RevId: 449805258
2022-05-19 12:17:50 -07:00
Ayush RanjanandgVisor bot 6fdeba8d78 Add support for /prod/[pid]/cmdline and /proc/[pid]/environ to trace procfs.
This change exports some logic in fsimpl/proc so that runsc/boot can use it.

Added tests for these fields.

Updates #4805

PiperOrigin-RevId: 449794552
2022-05-19 11:30:22 -07:00
Ayush RanjanandgVisor bot cf039a68d8 Add trace procfs command.
`runsc trace procfs` should dump a lot of relevant procfs information about
all the processes in the container. Falco will consume this.

For now the only procfs entry that the procfs dump returns is /proc/[pid]/exe.
Will incrementally add support for the remaining in separate changes.

Updates #4805

PiperOrigin-RevId: 449783478
2022-05-19 10:49:49 -07:00