7 Commits
Author SHA1 Message Date
Etienne PerotandgVisor bot b4ca91450f Standardize timestamps in runsc log filenames.
Prior to this change, the log files each have their own timestamp computed
independently. For example, this means that the coverage log file, the panic
log file, the debug log file, the first Gofer's log file, and the profile
files for the same Sentry may all have different timestamps in their
filenames. Now they are the same.

This change introduces a central `runsc/starttime` package for which the sole
purpose is to hold the start time of the `runsc` process, for easy plumbing
in all places that need it.

PiperOrigin-RevId: 646667986
2024-06-25 17:48:13 -07:00
B. Blechschmidt a1f2c94e20 Add lost changes to --pass-fd merge
GitHub pull request #8634 concluded that commit d1f3b45 should be
merged. However, the changes since commit feb40ac got lost in merge
36793c0. This commit is the lost diff.
2023-03-29 17:17:38 +02:00
gVisor bot 36793c077c Merge pull request #8634 from blechschmidt:passfd
PiperOrigin-RevId: 516362077
2023-03-13 17:02:22 -07:00
B. Blechschmidt d1f3b45b38 Add --pass-fd flag to runsc run and exec
This commit implements file descriptor passing from the host to the
guest. It implements a --pass-fd flag that can be specified multiple
times with FD numbers from the host that will be inserted into the file
descriptor table of the guest.
2023-03-10 00:30:44 +01:00
Adin ScannellandgVisor bot 1ceb814544 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
Fabricio VoznikaandgVisor bot a4cb72d1d8 Plumb seccheck configuration in runsc
Added new flag `--pod-init-config` that allows custom configuration
steps to be specified when a pod is being created. For now, the only
step supported is to configure a seccheck session, but more can be
added in the future, e.g. startup hook.

In seccheck, metadata was added for all Points and sinks (aka Checkers)
so that an external configuration files can reference them. In addition,
infrastructure to read and configure sessions from a file has been
added. Only a single session ("Default") is supported for now.

Updates #4805

PiperOrigin-RevId: 444705708
2022-04-26 17:08:08 -07:00
Fabricio VoznikaandgVisor bot 8174aec84e Add helper library to handle file donation to child process
PiperOrigin-RevId: 432260948
2022-03-03 12:51:28 -08:00