Re: [RFC PATCH] net/memif: change socket listener owner uid/gid

2022-11-15 Thread Stephen Hemminger
On Tue, 15 Nov 2022 20:44:41 + Junxiao Shi wrote: > +static int > +memif_set_owner_uid(const char *key __rte_unused, const char *value, void > *extra_args) > +{ > + uid_t *uid = (uid_t *)extra_args; > + *uid = strtoul(value, NULL, 10); > + return 0; > +} > + > +static int > +memi

[RFC PATCH] net/memif: change socket listener owner uid/gid

2022-11-15 Thread Junxiao Shi
This allows a DPDK application running with root privilege to create a memif socket listener with non-root owner uid and gid, which can be connected from client applications running without root privilege. Signed-off-by: Junxiao Shi --- doc/guides/nics/memif.rst | 2 ++ drivers/net/memi