Re: [PATCH] configfs: make directories inherit uid/gid from creator

2021-01-27 Thread Maciej Żenczykowski
> > Currently a non-root process can create directories, but cannot > > create stuff in the directories it creates. > > Isn't that on purpose? Is it? What's the use case of being able to create empty directories you can't use? Why allow their creation in the first place then? > > + (

Re: [PATCH] configfs: make directories inherit uid/gid from creator

2021-01-27 Thread Greg Kroah-Hartman
On Sat, Jan 23, 2021 at 12:55:16PM -0800, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > Currently a non-root process can create directories, but cannot > create stuff in the directories it creates. Isn't that on purpose? > > Example (before this patch): > phone:/ $ id > uid=10

[PATCH] configfs: make directories inherit uid/gid from creator

2021-01-23 Thread Maciej Żenczykowski
From: Maciej Żenczykowski Currently a non-root process can create directories, but cannot create stuff in the directories it creates. Example (before this patch): phone:/ $ id uid=1000(system) gid=1000(system) groups=1000(system),... context=u:r:su:s0 phone:/ $ cd /config/usb_gadget/g1/co