Re: WARNING: no_suid: setuid(0): (1) Operation not permitted

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Wed, 22 May 2013 08:59:54 -0600

On 05/22/2013 07:00 AM, Amos Jeffries wrote:

> I had the idea that we could add a new Kid type of "Helper" and
> differentiate the spawned helper processes with it:
> http://master.squid-cache.org/~amosjeffries/patches/FreeBSD_silence_nosuid_mk1.patch

Identifying helper kids is a good idea in general, but I would very much
prefer that we at least understand what the true problem is here before
we mask it away. Your second January 31, 2013 email on squid-users is a
good summary of what needs to be investigated. Please do not suppress
the warning until we know why it happens and are certain that hiding it
is the best way forward.

> === modified file 'src/ipc/Kid.h'
> --- src/ipc/Kid.h 2012-09-01 14:38:36 +0000
> +++ src/ipc/Kid.h 2013-05-22 11:41:18 +0000
> @@ -90,6 +90,7 @@
> pkCoordinator = 1, ///< manages all other kids
> pkWorker = 2, ///< general-purpose worker bee
> pkDisker = 4, ///< cache_dir manager
> + pkHelper = 5, ///< general-purpose helper
> } ProcessKind;

The new process kind ID should be 8. Some of these IDs can be combined
(e.g., the same process can be Master and Worker) so we want to keep
them increasing using powers of two.

HTH,

Alex.
Received on Wed May 22 2013 - 15:00:07 MDT

This archive was generated by hypermail 2.2.0 : Wed May 22 2013 - 12:00:10 MDT