Skip to content

Support CVMFS #37

@vpenso

Description

@vpenso

Problem

Currently simple mounts within the container are not possible?

[root@submitter ~]# mount -t tmpfs tmpfs /mnt
mount: /mnt: permission denied.

[root@submitter ~]# capsh --print | grep cap_sys_admin
Current IAB: !cap_dac_read_search,!cap_linux_immutable,!cap_net_broadcast,!cap_net_admin,!cap_ipc_lock,!cap_ipc_owner,!cap_sys_module,!cap_sys_rawio,!cap_sys_ptrace,!cap_sys_pacct,!cap_sys_admin,!cap_sys_boot,!cap_sys_nice,!cap_sys_resource,!cap_sys_time,!cap_sys_tty_config,!cap_lease,!cap_audit_control,!cap_mac_override,!cap_mac_admin,!cap_syslog,!cap_wake_alarm,!cap_block_suspend,!cap_audit_read,!cap_perfmon,!cap_bpf,!cap_checkpoint_restore

Question

Is there a way to configure --cap-add=SYS_ADMIN for the Docker containers to enable mount privileges?

My particular use-case is to mount CernVM-FS1 in submitter & worker containers, to enable some more elaborate test-cases.

Footnotes

  1. CernVM-FS Documentation
    https://cvmfs.readthedocs.io

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions