Feature #15264
closedlibcephfs: enable non-"ll" users to set their uid/gid
0%
Description
Currently libcephfs mostly doesn't pass through a uid/gid to Client, and Client defaults to reading the uid/gid of the process where it's running.
For some cases, like Manila, we would like to be able to declare ourselves as uid 0 in order to be able to e.g. delete share directories even when some other client mounted and wrote things as root. Folks like nfs-ganesha handle this by using the ll functions throughout, but this shouldn't be necessary.
Plan is to add uid/gid args to ceph_create and remember them on the CephMount structure.
Updated by John Spray about 8 years ago
- Status changed from New to Rejected
Oh, never mind, I was looking in the libcephfs API (where you can't set it), but not in the config opts (where you can).
So for the e.g. Manila use case we can set "client mount uid" and "client mount gid" config opts.
Updated by Greg Farnum about 8 years ago
Hmm, is setting config options really the interface we want for it? It's easy enough for the moment but I'm not sure it's a sane long-term interface, especially since some applications may want to act as a different user for different calls.