> On Wed, May 21, 2014 at 11:53 AM, Roberto De Ioris <[email protected]> > wrote: >> >> The (current) best solution would be using hooks (in the vassal): >> >> hook-asap = chmod:<file> <mode> >> hook-asap = chown:<file> <uid> <gid> >> > > Is this even possible? By the time this runs, afaik, the vassal is already > running as non zero uid.
hook-asap runs before privileges drop, unless you are running in tyrant mode, but in this case chown-socket and chmod would not work too > > >> >> what we could add (to bring back the unexpected old feature) is a way >> for >> telling the emperor to close the socket and disable graceful reloading >> (but i find hooks a more versatile way) >> > > What about instead, if chown-socket/chmod-socket is specified and no > socket > is specified, the emperor chowns/chmods using the socket it knows about? right, i suppose adding a check for them during the "fd 0" phase will be easy, i will give it a look -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
