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/ipn
Maisem Ali 2ae670eb71 ssh/tailssh: work around lack of scontext in SELinux
Trying to SSH when SELinux is enforced results in errors like:

```
➜  ~ ssh ec2-user@<ip>
Last login: Thu Jun  1 22:51:44 from <ip2>
ec2-user: no shell: Permission denied
Connection to <ip> closed.
```

while the `/var/log/audit/audit.log` has
```
type=AVC msg=audit(1685661291.067:465): avc:  denied  { transition } for  pid=5296 comm="login" path="/usr/bin/bash" dev="nvme0n1p1" ino=2564 scontext=system_u:system_r:unconfined_service_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process permissive=0
```

The right fix here would be to somehow install the appropriate context when
tailscale is installed on host, but until we figure out a way to do that
stop using the `login` cmd in these situations.

Updates #4908

Signed-off-by: Maisem Ali <maisem@tailscale.com>
1 year ago
..
ipnauth all: update copyright and license headers 2 years ago
ipnlocal ssh/tailssh: work around lack of scontext in SELinux 1 year ago
ipnserver tsd: add package with System type to unify subsystem init, discovery 2 years ago
ipnstate version: detect tvOS by checking XPC_SERVICE_NAME (#8295) 1 year ago
localapi tka: provide verify-deeplink local API endpoint (#8303) 1 year ago
policy ipn: prefer allow/denylist terminology 2 years ago
store ipn/store/awsstore: persist state with intelligent tiering 2 years ago
backend.go all: update copyright and license headers 2 years ago
doc.go all: update copyright and license headers 2 years ago
fake_test.go all: update copyright and license headers 2 years ago
ipn_clone.go all: update copyright and license headers 2 years ago
ipn_view.go all: update copyright and license headers 2 years ago
prefs.go all: update copyright and license headers 2 years ago
prefs_test.go all: update copyright and license headers 2 years ago
serve.go cmd/tailscale/cli: do not allow turning Funnel on while shields-up (#7770) 2 years ago
serve_test.go ipn: add Funnel port check from nodeAttr 2 years ago
store.go ipn/store: add support for stores to hook into a custom dialer 2 years ago