File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,9 @@ func (l *linuxSetnsInit) Init() error {
39
39
defer selinux .SetKeyLabel ("" ) //nolint: errcheck
40
40
// Do not inherit the parent's session keyring.
41
41
if _ , err := keys .JoinSessionKeyring (l .getSessionRingName ()); err != nil {
42
- // Same justification as in standart_init_linux.go as to why we
42
+ logrus .Warnf ("KeyctlJoinSessionKeyring: %v" , err )
43
+ // Same justification as in standard_init_linux.go as to why we
43
44
// don't bail on ENOSYS.
44
- //
45
- // TODO(cyphar): And we should have logging here too.
46
45
if ! errors .Is (err , unix .ENOSYS ) {
47
46
return fmt .Errorf ("unable to join session keyring: %w" , err )
48
47
}
Original file line number Diff line number Diff line change @@ -55,14 +55,12 @@ func (l *linuxStandardInit) Init() error {
55
55
56
56
// Do not inherit the parent's session keyring.
57
57
if sessKeyId , err := keys .JoinSessionKeyring (ringname ); err != nil {
58
+ logrus .Warnf ("KeyctlJoinSessionKeyring: %v" , err )
58
59
// If keyrings aren't supported then it is likely we are on an
59
60
// older kernel (or inside an LXC container). While we could bail,
60
61
// the security feature we are using here is best-effort (it only
61
62
// really provides marginal protection since VFS credentials are
62
63
// the only significant protection of keyrings).
63
- //
64
- // TODO(cyphar): Log this so people know what's going on, once we
65
- // have proper logging in 'runc init'.
66
64
if ! errors .Is (err , unix .ENOSYS ) {
67
65
return fmt .Errorf ("unable to join session keyring: %w" , err )
68
66
}
You can’t perform that action at this time.
0 commit comments