Project

General

Profile

Actions

Feature #15264

closed

libcephfs: enable non-"ll" users to set their uid/gid

Added by John Spray about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

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.

Actions #1

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.

Actions #2

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.

Actions

Also available in: Atom PDF