On Wed, Aug 26, 2015 at 2:13 PM, Ben Pfaff <b...@nicira.com> wrote: > On Fri, Aug 21, 2015 at 11:10:32PM -0700, Alex Wang wrote: > > This commit adds a new key-value pair, 'punix_file_group=<user group>', > > to the 'other_config' column in the 'Controller' table. This new config > > allows user to change the punix socket file's group ownership, so that > > non-root process can also connect to ovs bridge. > > > > Signed-off-by: Alex Wang <al...@nicira.com> > > POSIX says sysconf(_SC_GETGR_R_SIZE_MAX) can return -1. It's probably > best to pick some reasonable default in that case. > > I don't think POSIX requires getgrnam_r() to set errno; it's pretty > unclear on that account. It definitely requires the return value to be > a nonzero errno value to indicate an error, so I'd recommend using the > return value instead of errno. > > I am not sure that all systems have a group named "root". I imagine > that using a GID of 0 instead of a group "root" is more portable. > >
All make sense, will adopt the suggestions~~~ The text in the log messages use " : " as separators but the common > style in OVS log messages is ": ", that is, no space before the colon. > Could you point me to the place? only used ':' in the subject. > The chmod is to 0770 but the log message says 0700. > Sure will fix that, > I would consider adding support for setting the owner and the mode also. > Could you explain more? I think since ovs-vswitchd (running as root) creates the socket file, we should keep the ownership~ Thanks, Alex Wang, _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev