Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Dec 16, 2025

Cleanup creds-related funcs and change CapError behavior

  • Introduce Credentials.HasRootCapability().
  • Rename Credentials.HasCapability() to Credentials.HasSelfCapability().
  • Rename Task.HasCapability() to Task.HasSelfCapability().
  • Introduce inet.Namespace.HasCapability(ctx).
  • CapError(), invoked by unimplemented syscalls' stubs, now checks
    against the root userns.

All towards making it less easy to evaluate creds relative to self userns
instead of root userns in the future.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Dec 16, 2025
@copybara-service copybara-service bot force-pushed the test/cl845372374 branch 3 times, most recently from 91532e3 to ab81f5b Compare December 18, 2025 22:24
@copybara-service copybara-service bot changed the title Check netns cap with more brevity Cleanup creds-related funcs and change CapError behavior Jan 9, 2026
 - Introduce Credentials.HasRootCapability().
 - Rename Credentials.HasCapability() to Credentials.HasSelfCapability().
 - Rename Task.HasCapability() to Task.HasSelfCapability().
 - Introduce inet.Namespace.HasCapability(ctx).
 - CapError(), invoked by unimplemented syscalls' stubs, now checks
   against the root userns.

All towards making it less easy to evaluate creds relative to self userns
instead of root userns in the future.

PiperOrigin-RevId: 853942212
@copybara-service copybara-service bot merged commit c37fd05 into master Jan 9, 2026
@copybara-service copybara-service bot deleted the test/cl845372374 branch January 9, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant