Re: [9fans] J9P/StyxLib

2009-04-01 Thread Alex Efros
Hi!

On Wed, Apr 01, 2009 at 10:02:04PM +0200, Bernd R. Fix wrote:
 2.) You have an OS project with a different, incompatible license
 and want to include a GPL project or base some work on it.
 
 I am sure that this problem occurred many times in the past; maybe
 there even exists a 'best practice' approach how to deal with this.
 
 To be honest: I don't think that the first case is an argument against
 the GPL - not for me. I am more worried about the second case.
 
 So my question to you licensing experts: is there a better license that
 follows my basic statement (see above) and allows better integration
 into other OS licenses? If I have a better license model, I am certainly
 willing to change to it.

For libraries it usually solved using LGPL instead of GPL.


P.S. As for me, I'd like to try to make world a little better, and don't
bother much about reusing my code in commercial projects or even removing
my name from sources - so I use Public Domain for all my applications and
libraries.

GPL is a virus, designed to war against commercial software. That's not my war.

-- 
WBR, Alex.



Re: [9fans] log oversight

2009-03-15 Thread Alex Efros
Hi!

On Sun, Mar 15, 2009 at 11:55:39PM -0400, J.R. Mauro wrote:
  logs on unix are writeable by everyone:
  [rminn...@panzer ~]$ logger -p kern.err JUNK
  [rminn...@panzer ~]$ sudo tail -f /var/log/messages
 This didn't work on my linux box. I actually have:
 % ls -l /var/log/messages
 -rw--- 1 root root 960355 2009-03-15 23:51 /var/log/messages

[OT]
Actually, logger works using /dev/log:

  # ls -l /dev/log 
  srwxrwxrwx 1 root root 0 Мар 13 18:55 /dev/log

After chmod 0700 /dev/log users will not be able to use logger anymore.

I usually have all services output logs to stdout (or fifo) and pipe them to
special logging tools like multilog or svlogd, which in turn run as user 'log'
and all these logs have permissions like:

  # ls -ld /var/log/apache2/access{,/current}
  drwxr-s--- 2 log root   4096 Mar 15 03:55 /var/log/apache2/access
  -rw-r--r-- 1 log root 688994 Mar 16 06:11 /var/log/apache2/access/current

So, 'logs on unix' are very configurable and it's not correct to say they
are 'writeable by everyone'. There even no such thing as 'out of box'
setup in unix because it not designed to work 'out of box' and expect some
manual configuration first, :) also, for example, in linux there too many
distributions with different 'out of box' configurations - apache logs
configuration shown above is my 'out of box' configuration installed
automatically while installing Gentoo on new server using my portage overlay.
[/OT]


Back to original question - I think append only is 'good, but not enough'
for logs: adding fake records may hurt no less than mangling existing records.
Reading logs by unauthorized user also may be dangerous.
To solve these two issues you have to set log permissions similar to my
example above: nobody read and only root and log service able to write.
After that it become much less important is these logs are append-only or not
(if one really want to make logs append-only - use chattr +a).

-- 
WBR, Alex.