Skip to content

Some SCCs don't drop any caps #16371

Closed
Closed

Description

@php-coder

I'm a bit surprised that some SCCs (for example, nonroot) have empty requiredDropCapabilities.

Version

oc v3.7.0-alpha.1+3fddedc-367-dirty
kubernetes v1.7.0+80709908fd
features: Basic-Auth

Server https://10.34.129.200:8443
openshift v3.7.0-alpha.1+3fddedc-367-dirty
kubernetes v1.7.0+80709908fd

Steps To Reproduce
  1. oc cluster up
  2. oc login -u system:admin
  3. oc get scc -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.requiredDropCapabilities}{"\n"}{end}' | column -t
Current Result
anyuid            [MKNOD  SYS_CHROOT]
hostaccess        []
hostmount-anyuid  []
hostnetwork       [KILL   MKNOD        SYS_CHROOT  SETUID  SETGID]
nonroot           []
privileged        []
restricted        [KILL   MKNOD        SYS_CHROOT  SETUID  SETGID]
Expected Result

nonroot should drop KILL, MKNOD, SETUID, and SETGID capabilities
hostaccess should drop KILL, MKNOD, SETUID, and SETGID capabilities
hostmount-anyuid should drop MKNOD capabilities

Activity

  1. added
    help wanted
    on Sep 15, 2017
  2. self-assigned this
    on Sep 15, 2017
  3. php-coder commented on Sep 16, 2017

    @php-coder
    Author

    The fix is trivial, the main concern is to get agreement on expected behavior.

  4. php-coder commented on Sep 18, 2017

    @php-coder
    Author

    @openshift/sig-security please, confirm that the following behavior will be OK:

    • nonroot must drop KILL, MKNOD, SETUID, and SETGID capabilities
    • hostaccess must drop KILL, MKNOD, SETUID, and SETGID capabilities
    • hostmount-anyuid must drop MKNOD capabilities
  5. self-assigned this
    on Sep 18, 2017
  6. removed
    help wanted
    on Sep 19, 2017
  7. added a commit that references this issue on Sep 28, 2017
    092c32e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions