Warning in Cache.log

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Warning in Cache.log

M K Raju
Dear Team,
I installed squid 3.5.25 on Ubuntu and in windows 10 with Diladele MSI.
In both cache.log files, I am getting below warning.
Few users got the same error but no solution for this.

2017/12/13 10:38:04 kid1| helperOpenServers: Starting 1/32 'ssl_crtd' processes
2017/12/13 10:38:04 kid1| WARNING: no_suid: setuid(0): (22) Invalid argument 

Above warning getting while starting helpers only.
I Installed the same squid ver 3..5.25 on  CentOS 7 but no Warnings with the same config.
But we need some solution for OS also like Ubuntu and widows.
--
Regards,
M K Raju.


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Warning in Cache.log

Yuri Voinov

This warning does not prevent it from working normally. Has not broken - do not fix.


13.12.2017 18:13, Raju M K пишет:
Dear Team,
I installed squid 3.5.25 on Ubuntu and in windows 10 with Diladele MSI.
In both cache.log files, I am getting below warning.
Few users got the same error but no solution for this.

2017/12/13 10:38:04 kid1| helperOpenServers: Starting 1/32 'ssl_crtd' processes
2017/12/13 10:38:04 kid1| WARNING: no_suid: setuid(0): (22) Invalid argument 

Above warning getting while starting helpers only.
I Installed the same squid ver 3..5.25 on  CentOS 7 but no Warnings with the same config.
But we need some solution for OS also like Ubuntu and widows.
--
Regards,
M K Raju.



_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users

-- 
"Some people, when confronted with a problem, think «I know, I'll use regular expressions.» Now they have two problems."
--Jamie Zawinsk

**************************
* C++: Bug to the future *
**************************

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users

signature.asc (523 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Warning in Cache.log

Alex Rousskov
In reply to this post by M K Raju
On 12/13/2017 05:13 AM, Raju M K wrote:

> I installed squid 3.5.25 on Ubuntu and in windows 10 with Diladele MSI.
> In both cache.log files, I am getting below warning.
> Few users got the same error but no solution for this.
>
> 2017/12/13 10:38:04 kid1| WARNING: no_suid: setuid(0): (22) Invalid argument
>
> Above warning getting while starting helpers only.
> I Installed the same squid ver 3..5.25 on  CentOS 7 but no Warnings with
> the same config.
> But we need some solution for OS also like Ubuntu and widows.

If this warning is pointless or wrong, then it would be good to fix
Squid to get rid of it. If the warning is correct (i.e., setuid(0)
failure may affect Squid operation in some cases), then it would be good
to add some wiki documentation explaining what is going on.

I do not know which of the above two conditions is true, but if you have
the resources to make Squid better, then do not ignore the warning even
if (or just because) Squid appears to work despite the warning.

N.B. It is not clear whether your "Few users got the same error" refers
to Squid administrators running your Squid (makes sense) or end users
proxying their traffic through Squid (does not make sense because end
users do not see cache.log messages). If you were talking about some end
user error, then please clarify.

Alex.
P.S. IIRC, there was a similar problem with setuid(0) failures on
FreeBSD. It had a known excuse/explanation (which I do not recall).
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: Warning in Cache.log

Amos Jeffries
Administrator
On 14/12/17 04:28, Alex Rousskov wrote:
> On 12/13/2017 05:13 AM, Raju M K wrote:
>> I installed squid 3.5.25 on Ubuntu and in windows 10 with Diladele MSI.
>> In both cache.log files, I am getting below warning.
>> Few users got the same error but no solution for this.
>>
>> 2017/12/13 10:38:04 kid1| WARNING: no_suid: setuid(0): (22) Invalid argument
>>
...
> Alex.
> P.S. IIRC, there was a similar problem with setuid(0) failures on
> FreeBSD. It had a known excuse/explanation (which I do not recall).


IIRC,  FreeBSD setuid() implementation produces their "error" if the
process attempting to drop privileges has already dropped down to
no-privileges before the setuid() call. Squid drops privileges both
before and after fork()'ing a helper - so FreeBSD helpers always see it
happen on helper startup.

Linux (CentOS and Ubuntu) handles that double-up silently - so when
messages do show up there is always a security privilege problem going
on. I'm not sure of Windows, but never heard of it happening there either.


Raju;

"Invalid Argument" apparently means either the privileges selected are
not known to the OS kernel or the user account does not exist.

The privileges are being set to 0, so that value should be known to the
kernel.

That leaves the user account name. The default name built into Squid is
not a valid account on Linux or Windows (it is a FreeBSD standard name),
so you do need to compile using --with-default-user=... and ensure the
account mentioned there is valid on the machine Squid runs on.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users