Messages in this thread | | | Date | Sat, 10 Aug 2013 13:08:42 -0700 | From | Bob Smith <> | Subject | Re: [PATCH 001/001] CHAR DRIVERS: a simple device to give daemons a /sys-like interface |
| |
Greg Kroah-Hartman wrote: > Otherwise, to accept this code, I need to see a way that normal users > can use it (i.e. no root or mknod), and that it can handle namespaces > and the security interface that the kernel has to support. To do so > otherwise would be unfair to users who expect such a thing.
Greg, I don't know the etiquette of the lkml but I think the above means "no, go away".
OK. On my way out the door I'll give a recap and say thanks
GOAL The goal of this patch was to make it possible to configure daemons using simple file IO. The litmus test for this is that commands like these should be possible cat < /var/daemons/wpa_supplicant/use_channel echo 5 >/var/daemons/wpa_supplicant/use_channel
Yes, there are many other ways to configure a daemon but none with the simplicity and grace of file IO. For proof of this I point to procfs and sysfs.
APPROACHES Modifying name pipes was rejected as being too complex. Modifying FUSE was rejected for the amount of effort needed. The method chosen was to create a small character device to pass the data between the client and the daemon. The resulting code was small and simple but requires a device node.
CONCLUSION Pseudo-ttys not withstanding, the kernel does not want IPC mechanisms that require root privileges or mknod. For this and other reasons this patch is rejected.
Greg, once again thanks for your patience in helping a non-kernel guy through all of this. Thanks.
bye Bob Smith
| |