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
2020-10-24 12:26:05 -07:00
2021-03-04 11:38:37 +01:00
2021-02-10 09:53:50 +01:00
2020-10-16 11:11:22 -07:00
2020-09-18 16:45:50 -04:00
2021-01-06 14:56:52 +01:00
2021-03-07 12:53:30 +01:00
2021-01-27 11:55:22 +01:00
2021-03-07 12:33:33 +01:00
2021-02-26 10:21:27 +01:00
2021-03-24 21:32:54 +00:00
2020-09-18 16:45:50 -04:00
2021-02-26 05:46:32 +00:00
2021-03-04 11:37:17 +01:00
2020-10-15 18:42:13 -07:00
2020-08-08 13:07:20 +02:00
2020-11-25 16:55:02 +01:00
2020-09-18 16:45:50 -04:00
2021-03-07 12:53:30 +01:00
2021-03-04 11:38:41 +01:00
2020-10-28 21:20:34 +01:00
2021-03-07 12:33:33 +01:00
2021-03-19 09:05:58 +00:00
2020-09-18 16:45:50 -04:00
2021-02-05 14:15:09 +00:00
2021-03-07 12:33:33 +01:00
2020-11-02 11:59:56 +01:00
2020-11-02 11:59:56 +01:00
2020-09-18 16:45:50 -04:00
2021-02-10 09:29:20 +01:00
2021-03-01 16:16:08 +00:00
2021-02-26 05:46:47 +00:00
2021-03-04 11:38:00 +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-01-27 11:55:29 +01:00
2020-12-30 11:53:30 +01:00
2020-09-18 16:45:50 -04:00
2021-03-07 12:33:33 +01:00
2020-12-30 11:53:45 +01:00
2021-03-04 11:38:07 +01:00
2021-02-13 13:55:16 +01:00
2021-01-19 09:33:21 +01:00
2021-02-26 10:13:00 +01:00
2021-03-07 12:33:33 +01:00
2020-09-22 23:39:45 -04:00
2020-08-12 12:01:09 +02:00
2021-02-18 11:21:01 +01:00
2021-03-19 04:54:07 +00:00
2021-03-04 11:38:33 +01:00
2020-09-18 16:45:50 -04:00
2020-09-18 16:45:50 -04:00
2021-03-04 11:37:53 +01:00
2020-10-16 11:11:22 -07:00
2021-01-10 12:19:03 +01:00
2020-10-24 12:26:05 -07:00
2021-02-13 14:19:38 +01:00
2020-10-02 12:02:30 +02:00
2020-09-18 16:45:50 -04:00
2021-03-07 12:33:33 +01:00
2021-02-07 15:37:15 +01:00
2020-10-24 12:26:05 -07:00
2020-09-27 21:56:06 +00:00
2020-10-15 15:11:56 -07:00
2021-03-01 19:06:56 -08:00
2021-03-07 12:53:30 +01:00
2021-03-04 11:38:41 +01:00
2020-11-10 16:53:07 -08:00
2021-03-03 16:18:33 +00:00
2020-10-16 11:11:21 -07:00
2020-10-29 17:22:59 -05:00
2020-08-24 08:49:13 +10:00
2020-06-04 19:18:29 -07:00
2021-03-01 19:06:56 -08:00
2021-03-24 17:40:49 +00:00
2020-05-14 16:44:23 +02:00
2020-12-06 10:19:07 -08:00
2020-10-14 14:54:45 -07:00
2021-02-26 10:13:01 +01:00
2020-07-29 16:14:27 +02:00
2021-02-26 05:46:40 +00:00
2021-03-24 17:57:22 +00:00
2021-01-09 13:46:24 +01:00
2021-01-06 14:56:53 +01:00
2020-10-17 15:05:30 -06:00
2021-01-30 13:55:18 +01:00
2020-08-23 17:36:59 -05:00
2020-10-13 18:38:27 -07:00
2020-07-29 16:14:27 +02:00
2021-01-27 11:54:53 +01:00
2020-08-23 17:36:59 -05:00
2020-08-04 21:02:38 -04:00
2020-12-30 11:53:49 +01:00
2020-09-22 23:45:57 -04:00
2021-03-04 11:37:49 +01:00
2021-02-13 13:54:56 +01:00
2021-02-13 13:54:56 +01:00
2020-07-31 08:16:01 +02:00
2021-02-18 11:21:01 +01:00
2020-10-05 13:37:04 +02:00
2021-03-01 19:06:56 -08:00
2020-08-23 17:36:59 -05:00
2020-10-27 11:47:16 +01:00
2019-05-21 10:50:45 +02:00
2021-03-07 12:53:30 +01:00
2021-01-19 18:27:32 +01:00
2021-02-03 18:27:38 +00:00
2021-01-27 11:55:29 +01:00
2020-08-08 13:04:28 +02:00
2021-01-06 14:56:54 +01:00
2020-12-30 11:54:02 +01:00
2020-11-02 09:27:39 +01:00
2020-07-31 08:16:00 +02:00
2020-10-15 09:48:49 -07:00
2021-01-19 18:27:27 +01:00
2020-11-15 22:12:53 -05:00
2020-08-23 17:36:59 -05:00
2020-11-02 09:27:41 +01: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-11-10 16:53:11 -08:00
2021-03-24 17:57:22 +00:00
2021-02-05 13:14:08 +00:00
2020-07-31 08:16:01 +02:00
2020-10-25 11:57:29 +01:00