You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/control/controlclient
Denton Gentry 224e60cef2 hostifo: update LXC, add Cloud Run.
Recent LXC support no longer has "lxc" in /proc/1/cgroup:
    # cat /proc/1/cgroup
    12:freezer:/
    11:rdma:/
    10:cpuset:/
    9:pids:/
    8:blkio:/
    7:devices:/
    6:perf_event:/
    5:net_cls,net_prio:/
    4:memory:/
    3:hugetlb:/
    2:cpu,cpuacct:/
    1:name=systemd:/init.scope
    0::/init.scope

Look for fuse.lxcfs in /proc.mounts in addition:
    # grep lxc /proc/mounts
    lxcfs /proc/cpuinfo fuse.lxcfs ...
    lxcfs /proc/diskstats fuse.lxcfs ...
    lxcfs /proc/loadavg fuse.lxcfs ...
    lxcfs /proc/meminfo fuse.lxcfs ...
    lxcfs /proc/stat fuse.lxcfs ...
    lxcfs /proc/swaps fuse.lxcfs ...
    lxcfs /proc/uptime fuse.lxcfs ...
    lxcfs /sys/devices/system/cpu/online fuse.lxcfs ...

Add Knative detection by looking for the environment variables
which are part of its container contract.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
4 years ago
..
auto.go control/controlclient: document a few things 4 years ago
controlclient_test.go cover one more case in TestStatusEqual. 4 years ago
debug.go tailcfg, control/controlclient: add goroutine dump debug feature 4 years ago
debug_test.go tailcfg, control/controlclient: add goroutine dump debug feature 4 years ago
direct.go cmd/tailscale, ipn/localapi: move IP forwarding check to tailscaled, API 4 years ago
direct_test.go control/controlclient: support lazy machine key generation 4 years ago
filter.go wgengine/filter: remove the Matches type. 4 years ago
hostinfo_linux.go hostifo: update LXC, add Cloud Run. 4 years ago
hostinfo_windows.go control/controlclient: cache Windows version 4 years ago
sign.go control/controlclient: sign RegisterRequest (#1549) 4 years ago
sign_supported.go control/controlclient: sign RegisterRequest (#1549) 4 years ago
sign_unsupported.go control/controlclient: sign RegisterRequest (#1549) 4 years ago