Class that represents mount ownership and whether to apply recursively.
More...
#include <MountOwnerDetails.h>
|
bool | getOwnerIds (uid_t &userId, gid_t &groupId) const |
| Get user and group IDs based on their configured. More...
|
|
bool | processOwners () const |
| Process individual mount owner and change ownership either singularly or recursively. More...
|
|
bool | changeOwnerRecursive (const std::string &path, uid_t userId, gid_t groupId) const |
| Change ownership recursively from the given path. More...
|
|
bool | changeOwner (const std::string &path, uid_t userId, gid_t groupId) const |
| Change ownership of mount according to properties structure. More...
|
|
Class that represents mount ownership and whether to apply recursively.
This class is only intended to be used internally by Storage plugin do not use from external code.
This class is only intended to be used internally by Storage plugin do not use from external code.
- Parameters
-
[in] | rootfsPath | Root FS path to apply ownership |
[in] | mountProperties | Structure holding mount ownership configuration |
[in] | utils | Useful Dobby utilities |
- See also
- Storage
-
Storage
◆ changeOwner()
bool MountOwnerDetails::changeOwner |
( |
const std::string & |
path, |
|
|
uid_t |
userId, |
|
|
gid_t |
groupId |
|
) |
| const |
|
private |
Change ownership of mount according to properties structure.
- Parameters
-
[in] | path | Path to change ownership of |
[in] | userId | User ID to set |
[in] | groupId | Group ID to set |
- Returns
- true on success, false on failure
◆ changeOwnerRecursive()
bool MountOwnerDetails::changeOwnerRecursive |
( |
const std::string & |
path, |
|
|
uid_t |
userId, |
|
|
gid_t |
groupId |
|
) |
| const |
|
private |
Change ownership recursively from the given path.
- Parameters
-
[out] | path | Path to recurse from |
[out] | userId | ID corresponding to the configured user name |
[out] | groupId | ID corresponding to the configured group name |
- Returns
- true on success, false on failure
◆ getOwnerIds()
bool MountOwnerDetails::getOwnerIds |
( |
uid_t & |
userId, |
|
|
gid_t & |
groupId |
|
) |
| const |
|
private |
Get user and group IDs based on their configured.
- Parameters
-
[out] | userId | ID corresponding to the configured user name |
[out] | groupId | ID corresponding to the configured group name |
- Returns
- true on success, false on failure
◆ onCreateRuntime()
bool MountOwnerDetails::onCreateRuntime |
( |
| ) |
const |
Changes ownership of mount source according to MountOwnerProperties during the createRuntime hook.
- Returns
- true on success, false on failure
◆ processOwners()
bool MountOwnerDetails::processOwners |
( |
| ) |
const |
|
private |
Process individual mount owner and change ownership either singularly or recursively.
- Returns
- true on success, false on failure
The documentation for this class was generated from the following files: