Files
kernel_arpi/fs
Maciej Żenczykowski fa535cfd78 FROMLIST: configfs: make directories inherit uid/gid from creator
Currently a non-root user may have the rights to create directories
in configfs, but they default to being owned by root, so you can't
create anything inside of the directories you yourself created.

phone:/config/usb_gadget/g1/configs $ id; mkdir b.2; ls -lZ; chown system:system b.2
uid=1000(system) gid=1000(system) groups=1000(system),1004(input),1007(log),1011(adb),...
drwxr-xr-x 3 system  system u:object_r:configfs:s0  0 2020-12-28 06:03 b.1
drwxr-xr-x 3 root    root   u:object_r:configfs:s0  0 2020-12-28 06:51 b.2
chown: 'b.2' to 'system:system': Operation not permitted

phone:/config/usb_gadget/g1/configs $ ln -s ../../../../usb_gadget/g1/functions/ffs.adb b.2/function0
ln: cannot create symbolic link from '../../../../usb_gadget/g1/functions/ffs.adb' to 'b.2/function0': Permission denied

Test: With this change b.2 is owned by system:system and the ln succeeds.
Link: https://lore.kernel.org/lkml/20210123205516.2738060-1-zenczykowski@gmail.com/
Bug: 172793258
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ia907b2def940197b44aa87b337d37c5dde9c5b91
2021-03-24 21:32:54 +00:00
..
2020-12-09 08:09:26 +01:00
2021-02-10 09:53:50 +01:00
2020-10-16 11:11:22 -07:00
2021-03-07 12:53:30 +01:00
2021-03-07 12:33:33 +01:00
2021-02-26 10:21:27 +01:00
2021-03-07 12:53:30 +01:00
2021-03-07 12:33:33 +01:00
2021-03-07 12:33:33 +01:00
2020-11-19 22:38:29 -05:00
2021-03-07 12:33:33 +01:00
2021-03-07 12:53:30 +01:00
2021-03-07 12:33:33 +01:00
2021-01-19 09:33:21 +01:00
2021-03-07 12:33:33 +01:00
2021-01-10 12:19:03 +01:00
2021-03-07 12:33:33 +01:00
2021-03-07 12:53:30 +01:00
2020-08-04 21:02:38 -04:00
2020-09-22 23:45:57 -04:00
2020-07-31 08:16:01 +02:00
2021-02-18 11:21:01 +01:00
2021-03-07 12:53:30 +01:00
2021-02-03 18:27:38 +00:00
2021-01-27 11:55:29 +01:00
2020-07-31 08:16:00 +02:00
2019-12-08 14:37:36 +01:00
2020-09-26 22:55:05 -04:00
2020-08-27 16:06:47 -04:00
2020-07-31 08:16:01 +02:00