You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Anton Gorlov <st...@locum.ru> on 2019/09/09 15:57:45 UTC
[users@httpd] protect apache to stop work if logdir is missing
Hi!
I need the web server to continue working if the user has deleted the
log directory.
I wrote a small patch. Are there any obvious errors in it that disrupt
the operation of the web server or lead to a memory / pointer leak?
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by "@lbutlr" <kr...@kreme.com>.
On Sep 10, 2019, at 3:39 AM, Anton Gorlov <st...@locum.ru> wrote:
> 10.09.2019 5:09, @lbutlr пишет:
>> On Sep 9, 2019, at 11:21 AM, Anton Gorlov <st...@locum.ru> wrote:
>>> I need to provide users with the ability to archive logs on their own
>> Yes? And? You’ve been told two ways to do this that do not require modifying the source code.
>
> pipe logs to some script/program and???
Nope. That was not one of the suggestions at all.
--
There are 10 types of people in the world: Those who understand binary
and those who don’t.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by Anton Gorlov <st...@locum.ru>.
10.09.2019 5:09, @lbutlr пишет:
> On Sep 9, 2019, at 11:21 AM, Anton Gorlov <st...@locum.ru> wrote:
>> I need to provide users with the ability to archive logs on their own
>
> Yes? And? You’ve been told two ways to do this that do not require modifying the source code.
pipe logs to some script/program and???
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by "@lbutlr" <kr...@kreme.com>.
On Sep 9, 2019, at 11:21 AM, Anton Gorlov <st...@locum.ru> wrote:
> I need to provide users with the ability to archive logs on their own
Yes? And? You’ve been told two ways to do this that do not require modifying the source code.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by Anton Gorlov <st...@locum.ru>.
09.09.2019 19:22, D'Arcy Cain пишет:
> On 9/9/19 12:13 PM, Anton Gorlov wrote:
>> 09.09.2019 19:07, @lbutlr пишет:
>>> On 9 Sep 2019, at 09:57, Anton Gorlov <st...@locum.ru> wrote:
>>>> I need the web server to continue working if the user has deleted the log directory.
>>> I would solve this by preventing the user from deleting the directory or recreating it on deletion, not by patching the source code.
>>>
>>>
>> unfortunately I can’t prevent users from deleting directories
>
> Wait. You can't protect directories from your users but you can
> manually modify core programs that run on the server? What information
> is missing here?
>
> Hint: The log directories don't need to be in the user's home folder.
> You can put them in a protected area and just symlink to them. That way
> the user can blow away his own access to his logs but not the logs
> themselves.
>
I need to provide users with the ability to archive logs on their own
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by D'Arcy Cain <da...@vex.net>.
On 9/9/19 12:13 PM, Anton Gorlov wrote:
> 09.09.2019 19:07, @lbutlr пишет:
>> On 9 Sep 2019, at 09:57, Anton Gorlov <st...@locum.ru> wrote:
>>> I need the web server to continue working if the user has deleted the log directory.
>> I would solve this by preventing the user from deleting the directory or recreating it on deletion, not by patching the source code.
>>
>>
> unfortunately I can’t prevent users from deleting directories
Wait. You can't protect directories from your users but you can
manually modify core programs that run on the server? What information
is missing here?
Hint: The log directories don't need to be in the user's home folder.
You can put them in a protected area and just symlink to them. That way
the user can blow away his own access to his logs but not the logs
themselves.
--
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy@Vex.Net
VoIP: sip:darcy@Vex.Net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by "@lbutlr" <kr...@kreme.com>.
On 9 Sep 2019, at 10:13, Anton Gorlov <st...@locum.ru> wrote:
> 09.09.2019 19:07, @lbutlr пишет:
>> On 9 Sep 2019, at 09:57, Anton Gorlov <st...@locum.ru>
>> wrote:
>>
>>> I need the web server to continue working if the user has deleted the log directory.
>>>
>> I would solve this by preventing the user from deleting the directory or recreating it on deletion, not by patching the source code.
>
> unfortunately I can’t prevent users from deleting directories
Why not? If that is the case, do not put the log folders in the user’s space and instead replicate logs for the users who do want them.
Either way, patching the source code doesn’t seem like the solution.
--
"He has no enemies, but is intensely disliked by his friends.." Oscar
Wilde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by Anton Gorlov <st...@locum.ru>.
09.09.2019 19:07, @lbutlr пишет:
> On 9 Sep 2019, at 09:57, Anton Gorlov <st...@locum.ru> wrote:
>> I need the web server to continue working if the user has deleted the log directory.
> I would solve this by preventing the user from deleting the directory or recreating it on deletion, not by patching the source code.
>
>
unfortunately I can’t prevent users from deleting directories
Re: [users@httpd] protect apache to stop work if logdir is missing
Posted by "@lbutlr" <kr...@kreme.com>.
On 9 Sep 2019, at 09:57, Anton Gorlov <st...@locum.ru> wrote:
> I need the web server to continue working if the user has deleted the log directory.
I would solve this by preventing the user from deleting the directory or recreating it on deletion, not by patching the source code.
--
'There's a kind of magic in masks. Masks conceal one face, but reveal
another. The one that only comes out in darkness. I bet you could do
just what you liked, behind a mask...?' —Maskerade
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org