Strace produces below:
The app is run inside the container with setuid = 0 and the container is able to mount all required filesystems … could this still be a capability problem ? Also I do not see any call to capset() in the strafe log …
--
Om
From: Kyle Bader <kyle.bader@xxxxxxxxx>
Date: Thursday, October 17, 2013 5:08 PM To: Kevin Weiler <Kevin.Weiler@xxxxxxxxxxxxxxx> Cc: "ceph-users@xxxxxxxxxxxxxx" <ceph-users@xxxxxxxxxxxxxx>, Omar Marquez <omar.marquez@xxxxxxxxxxxxxxx>, Khalid Goudeaux <Khalid.Goudeaux@xxxxxxxxxxxxxxx> Subject: Re: mounting RBD in linux containers My first guess would be that it's due to LXC dropping capabilities, I'd investigate whether CAP_SYS_ADMIN is being dropped. You need CAP_SYS_ADMIN for mount and block ioctls, if the container doesn't have those privs a map will likely
fail. Maybe try tracing the command with strace?
On Thu, Oct 17, 2013 at 2:45 PM, Kevin Weiler
<Kevin.Weiler@xxxxxxxxxxxxxxx> wrote:
Kyle The information in this e-mail is intended only for the person or entity to which it is addressed. It may contain confidential and /or privileged material. If someone other than the intended recipient should receive this e-mail, he / she shall not be entitled to read, disseminate, disclose or duplicate it. If you receive this e-mail unintentionally, please inform us immediately by "reply" and then delete it from your system. Although this information has been compiled with great care, neither IMC Financial Markets & Asset Management nor any of its related entities shall accept any responsibility for any errors, omissions or other inaccuracies in this information or for the consequences thereof, nor shall it be bound in any way by the contents of this e-mail or its attachments. In the event of incomplete or incorrect transmission, please return the e-mail to the sender and permanently delete this message and any attachments. Messages and attachments are scanned for all known viruses. Always scan attachments before opening them. |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com