mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
configfs: Add permission and ownership to configfs objects.
configfs always made item and attribute ownership root.root and permissions based on a umask of 022. Add ->setattr() to allow chown(2)/chmod(2), and persist the changes for the lifetime of the items and attributes. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
parent
62ca3d2603
commit
3d0f89bb16
8 changed files with 181 additions and 39 deletions
|
@ -126,7 +126,7 @@ extern struct config_item *config_group_find_obj(struct config_group *, const ch
|
|||
|
||||
|
||||
struct configfs_attribute {
|
||||
char *ca_name;
|
||||
const char *ca_name;
|
||||
struct module *ca_owner;
|
||||
mode_t ca_mode;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue