<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-15921431</id><updated>2008-01-17T13:20:04.113+01:00</updated><title type='text'>Frankie's World</title><link rel='alternate' type='text/html' href='http://www.lovergine.com/'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-15921431.post-5935168898730529159</id><published>2008-01-17T12:52:00.000+01:00</published><updated>2008-01-17T13:20:04.144+01:00</updated><title type='text'>Vlogger with a named pipe</title><content type='html'>In an old &lt;a href="http://www.lovergine.com/2007/03/playing-with-modchroot.html"&gt;post&lt;/a&gt; I dealt with the nice &lt;span style="font-family: courier new; font-style: italic;"&gt;mod_chroot&lt;/span&gt; module to secure your multisite server.  I also adopted recently &lt;span style="font-family: courier new; font-style: italic;"&gt;vlogger&lt;/span&gt; in order to manage better apache logs for virtual hosts, when you have dozens or hundreds of them. Unfortunately the suggested way to use it (a simple piped command) does not work nicely with mod_chroot, because the piped command has to run in the chroot jail.&lt;br /&gt;&lt;br /&gt;Of course, it is not a good idea installing the whole perl intepreter and all required modules in a minimized jail, so I adopted an oldish classic trick (the old things are always the best) to solve the issue: using a named pipe. You basically need to do something like the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;mkfifo -m 600 /var/run/apache2/logger &amp;amp;&amp;amp; chown www-logs /var/run/apache2/logger&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;cat /var/run/apache2/logger |  /usr/sbin/vlogger -u www-logs -g nogroup -s access.log /var/log/vlogger &gt;/dev/null 2&gt;&amp;amp;1  &amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;/etc/init.d/apache2 start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Of course your log directives will be something like:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" vcombined&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CustomLog "/var/run/apache2/logger" vcombined&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You absolutely need to run the reader before the writer, else the init script would hang for ever. It is easy adding a simple init script to run vlogger before apache and it has also the big advantage of not requiring re-fork a perl intepreter at every damn log action. Piping rocks.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2008/01/vlogger-with-named-pipe.html' title='Vlogger with a named pipe'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/5935168898730529159'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/5935168898730529159'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-6728376516315489358</id><published>2007-12-12T20:23:00.000+01:00</published><updated>2007-12-12T20:39:48.985+01:00</updated><title type='text'>Beamers</title><content type='html'>I ask myself again and again: why it is always a challenge using a laptop with a beamer? It is not rocket science, but I always find problems due to lack of sync with certain beamers and certain laptops combinations.  If you are lucky, you can see an image, but probably some parts of the screen (and of your slides) are invisible. It happens also under Windows, but it happens too many times under Linux.&lt;br /&gt;Lately, I'm finding difficult to use my Thinkpad X31 under that respect, even if I always managed to use it without great issues until some months ago. Does it need a &lt;a href="http://en.wikipedia.org/wiki/Macumba"&gt;&lt;span style="font-style: italic;"&gt;macumba&lt;/span&gt;&lt;/a&gt; before use?</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2007/12/beamers.html' title='Beamers'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/6728376516315489358'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/6728376516315489358'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-3536727508015253516</id><published>2007-03-20T19:50:00.000+01:00</published><updated>2007-03-20T19:59:56.235+01:00</updated><title type='text'>Lessons of the life...</title><content type='html'>Waiting hours to complete &lt;a href="http://grass.itc.it/"&gt;GRASS&lt;/a&gt; importing for an &lt;a href="http://www.pfc.cfs.nrcan.gc.ca/aft/eveosd/EVEOSD-eo1/hyp_e.html"&gt;Hyperion&lt;/a&gt; 242 bands data set, just to discover that all bands are zeroed as result. At least, I also find that the latest &lt;a href="http://www.ittvis.com/envi/"&gt;Envi&lt;/a&gt; 4.3 is not able to read those HDF files correctly. Free software is any way better...</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2007/03/lessons-of-life.html' title='Lessons of the life...'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/3536727508015253516'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/3536727508015253516'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-3061420982480478595</id><published>2007-03-14T10:25:00.000+01:00</published><updated>2007-03-14T17:11:11.416+01:00</updated><title type='text'>To package or not to package...</title><content type='html'>... this is the problem&lt;br /&gt;&lt;br /&gt;I just casually saw &lt;a href="http://www.inittab.de/blog/debian/20070305_giving-away-ion-packages.html"&gt;Norbert post &lt;/a&gt;about the &lt;a href="http://modeemi.cs.tut.fi/%7Etuomov/ion/"&gt;ion3&lt;/a&gt; querelle. This a very unfortunate example of  collapsing interactions among upstreams and maintainers. My general advice (but for suggesting to use &lt;a href="http://www.suckless.org/wiki/wmii"&gt;wmii&lt;/a&gt; or &lt;a href="http://www.suckless.org/wiki/dwm"&gt;dwm&lt;/a&gt; instead of ion3 :-)) is avoiding packaging of development branches, but this is a decision which sometimes is difficult to take: some programs seems in development for years and stable releases could result largerly unusable or limited. Surely our - and generally speaking any distribution - release cycle and maintainance are not adequate for many on-the-edge software out there.&lt;br /&gt;&lt;br /&gt;When upstreams releases [a]periodical milestones, those could be packaged, but upstream will not support them: we have already our problems in supporting regular releases for security independently by upstream for mainstream programs, without adding pieces of casual crap around.&lt;br /&gt;&lt;br /&gt;Packaging a casual snapshots is out of question IMHO, but for using it in sid/experimental, so I can understand the upstream opinion, because many users report problem to upstream instead of maintainers. I see definitively no silver bullet anyway, but for maintainers' capability of understanding what should be packaged or not and opening an unbreakable communication channel with upstreams to be up-to-date in respect with upstream roadmap.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2007/03/to-package-or-not-to-package.html' title='To package or not to package...'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/3061420982480478595'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/3061420982480478595'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-2311144786625781772</id><published>2007-03-13T23:04:00.000+01:00</published><updated>2007-03-14T12:24:11.877+01:00</updated><title type='text'>Playing with mod_chroot...</title><content type='html'>&lt;span style="font-size:130%;"&gt;... or why PHP &lt;a href="http://www.bitstorm.org/edwin/en/php/"&gt;&lt;span style="text-decoration: underline;"&gt;sucks&lt;/span&gt;&lt;/a&gt; so much?  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is quite common (at least for me) finding abused web applications on shared hosts around. The most typical case is finding some kind of IRC bot running as www-data and a few unauthorized files around used for phishing, cross-site scripting or what else. That motivated me to try playing with &lt;span style="font-weight: bold;"&gt;mod_chroot&lt;/span&gt; in order to minimize the possibility of webapps abuse from our friendly kiddies^Wcrackers.  &lt;a href="http://core.segfault.pl/%7Ehobbit/mod_chroot/"&gt;Mod_chroot&lt;/a&gt; is a nice tiny Apache module whose purpose is the confinment of webapps within a limited tree, where nothing but a few files and dirs are available to try exploits and abuse badly written code.&lt;br /&gt;&lt;br /&gt;Unfortunately, I found that mod_chroot poses one major problem (among others, see its CAVEATS doc): the sucking mail() function is &lt;span style="font-style: italic;"&gt;not&lt;/span&gt; working out of the box, because PHP folks  - God knows why - decided to implement that stuff by calling a local /usr/sbin/sendmail program within a shell call. The most sane option is simply ignoring the issue and living happy with a disabled local mail() function. A nice solution in that case is using a PEAR Mail module, which is able to send mails via SMTP in much more elegant way. Unfortunately, there are quite a good number of morons out there, and that could be not a viable option if you are the system administrator of a bounce of shared hosts which are exposed to those morons, who absolutely need a working mail() function.&lt;br /&gt;&lt;br /&gt;After a few googling around, I did find that many people had the same problem, but none found (or explained) a working and neat solution for a working mail() implementation, so I'm writing some notes about that. My implementation is based on a nice tiny program (&lt;a href="http://www.acme.com/software/mini_sendmail/"&gt;mini_sendmail&lt;/a&gt;) which has the great advantage of not requiring a configuration file or a spool directory to work. It also works without suid bit on, which is a good thing as well. It is statically compiled by default, so it simplifies things a lot. In order to have mail() working you need also to install a (statically compiled) shell, e.g. bash-static as &lt;span style="font-style: italic;"&gt;sh&lt;/span&gt; under the /bin directory of your chroot tree (a more tiny shell would be appropriate).  I commented out the silly username autodetection code in the mini_sendmail.c source, because it creates some problem within an empty chroot tree  (it failed with a "can't determine username" message with or without the /etc/passwd file available).&lt;br /&gt;&lt;br /&gt;Now, the next step is using an entry like&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;sendmail_path = /usr/sbin/sendmail -t -fwww-data@your.domain -s127.0.0.1 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;in your &lt;span style="font-style: italic;"&gt;php.ini&lt;/span&gt; file. You can also use another IP address if your SMTP server is not your localhost or you used some more exotic routing setup. Having a suitable &lt;span style="font-style: italic;"&gt;/etc/hosts &lt;/span&gt;is also useful. A final trick is adding a &lt;span style="font-style: italic;"&gt;var/lib/php4&lt;/span&gt; or what ever directory is required to store PHP session files. No other files should be required in order to have all working. Of course, you have also to use inet sockets for any required connection (e.g. mysql) but this is typically the default in etch. I would also suggest to add only ad hoc statically-compiled binaries within the chroot tree  when required, else you will need to store all required shared libs: in that case you will need to find binaries requirement by using ldd and chroot to find loading/running errors by means of an usual trial-and-error cycle.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2007/03/playing-with-modchroot.html' title='Playing with mod_chroot...'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/2311144786625781772'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/2311144786625781772'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-114311761692974740</id><published>2006-03-23T13:16:00.000+01:00</published><updated>2006-03-23T13:40:19.846+01:00</updated><title type='text'>Proftpd 1.3 out in experimental</title><content type='html'>After being busy with DebianGis related things and a few other packages recently, finally I found the time (and will :-)) to complete and uploaded an experimental deeply re-packaged version of proftpd. &lt;br /&gt;&lt;br /&gt;Now proftpd is quite near to the release of 1.3 and current 1.3.0rc5 is considered the final release candidate before that (due in a couple of weeks). So it is also time to test the new package and give feedbacks to me and upstream team. I removed the ancient multi-binary approach to promote the new dynamic shared objects to prime time. As always, there are quite a few feature and configuration changes in the new version, so people are warned about that.&lt;br /&gt;&lt;br /&gt;I happily reduced the number of patches applied to the sources and refined scripts all around, but more work is required to manage better upgrades and also adding more contributed modules, as well. And some silly things surely have been overlooked. So, stay tuned...</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2006/03/proftpd-13-out-in-experimental.html' title='Proftpd 1.3 out in experimental'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/114311761692974740'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/114311761692974740'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-113726370481764746</id><published>2006-01-14T19:07:00.001+01:00</published><updated>2006-01-14T19:35:04.833+01:00</updated><title type='text'>Italian, really!</title><content type='html'>Ok, ok, I like pizza, mandolino and do it better... I'm definitively condamned to live in the same country of Berlusconi, sigh!&lt;br /&gt;&lt;br /&gt;&lt;table  align="center" border="1" cellpadding="2" cellspacing="0" width="400" style="color:black;"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td bg="" style="color: rgb(102, 204, 255);" align="center"&gt;&lt;br /&gt;&lt;span style=";font-family:Georgia,Times New Roman,Times,serif;font-size:14;color:black;"   &gt;&lt;br /&gt;&lt;b&gt;Your Inner European is Italian!&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td bgcolor="#ffffff"&gt;&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;br /&gt;&lt;img src="http://www.quizdiva.net/bt/european/italian.jpg" /&gt;&lt;br /&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Passionate and colorful.&lt;br /&gt;&lt;br /&gt;You show the world what culture really is.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="center"&gt;&lt;br /&gt;&lt;a href="http://www.blogthings.com/whosyourinnereuropeanquiz/"&gt;Who's Your Inner European?&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2006/01/italian-really.html' title='Italian, really!'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/113726370481764746'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/113726370481764746'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-113424482360078957</id><published>2005-12-10T20:45:00.000+01:00</published><updated>2005-12-10T21:00:23.610+01:00</updated><title type='text'>My new toy landed</title><content type='html'>After the sudden death of my beloved Compaq Presario 2715 (friends said that it finally did commit suicide after almost 5 years of tortures),  I finally got a new Thinkpad T43P for my Debian and not-so-Debian activities at home. Transferring the full contents of the Compaq hard disk and changing a bit its configuration on fly for the new hardware (SATA controller and a few other things) went well. I really hate installing my own boxes from scratch and managed to use Ubuntu-Live to startup the box and fill in the disk with my sid tree and home.&lt;br /&gt;So now my second Thinkpad is on the road...</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/12/my-new-toy-landed.html' title='My new toy landed'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/113424482360078957'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/113424482360078957'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-113334240384655147</id><published>2005-11-30T10:05:00.000+01:00</published><updated>2005-11-30T10:46:58.796+01:00</updated><title type='text'>Playing with a d-link modem</title><content type='html'>I finally managed to hack a D-Link DSL300T series modem, which works using a Montavista embedded Linux distribution for AR7 (with a few proprietary modules and tools unfortunately). I have now a TTL-2-RS232 adapter to better control the box with a serial console, thanks to a friend of my LUG. I'd like to add at least openvpn to the box, to get a great low-cost vpn gateway.&lt;br /&gt;&lt;br /&gt;On the embedded side, I just discovered that my recent handheld i-mate PDA2k is a Blue Angel compatible with GPE and Familiar. Just another toy to play with whenever I'll have time and another spare unit, which can be in a few (at least for the spare unit part).&lt;br /&gt;&lt;br /&gt;BTW, I'm seriuosly starting to think 24 hours in a day are too few to do whatever I would.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/11/playing-with-d-link-modem.html' title='Playing with a d-link modem'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/113334240384655147'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/113334240384655147'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112634303434096736</id><published>2005-09-10T09:19:00.000+02:00</published><updated>2005-09-12T20:12:36.860+02:00</updated><title type='text'>We are secure. Or not?</title><content type='html'>Recent &lt;a href="http://azure.humbug.org.au/%7Eaj/blog/2005/09/09#2005-09-09-insecurity"&gt;post by aj&lt;/a&gt; points the no-end saga of (old-)stable security updates. Indeed, I think the situation is quite worst of what seems in LWN statistics. There are less known bugs not fixed for months. My own reports about proftpd remained parked for a couple of months on both stable and testing secteam lists, for instance. That's the bad news. The good news is that this is true for all distributions (and I will not talk about proprietary software, which could retain security bugs even for years after disclosure). That's not a Debian issue only, folks.&lt;br /&gt;&lt;br /&gt;A few personal ideas about security updates:&lt;br /&gt;&lt;ul&gt;   &lt;li&gt;There are of course priorities in security issues management, not all bugs are first class ones.&lt;/li&gt;   &lt;li&gt;Security auditing is a slow process and not always upstreams are able to provide fast and decent fixes. A partial fix is not so better than a full one.&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;I don't know if our secteams use a tracking system off list, with task lists and assignments. It's definitively a good thing to do that, just in case, and maintainers should be able to submit patches and reports to it. One could think we should use BTS for that. I don't think BTS is the most useful tracking system for security, and in some cases things cannot be published before fixes (yes I know, non full disclosures are evil, don't hide problems, etc. but I think responsible reports are better).&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;A good number of issues are not tracked on BTS. I personally use rarely BTS for security, even for full disclosed issues, when they are not so known (no CANs, no official reports by upstreams, etc.). There are also issues known only by upstreams and me, sometimes. In those cases I only send e-mail to secteams.&lt;/li&gt; &lt;/ul&gt;UPDATE: indeed, I rembered wrong about proftpd, I found an ack by a testing secteam member about my report on 30th of June. So, they have been responsive, sorry joeyh.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/09/we-are-secure-or-not.html' title='We are secure. Or not?'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112634303434096736'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112634303434096736'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112573134521461454</id><published>2005-09-03T08:54:00.000+02:00</published><updated>2005-09-03T09:12:39.583+02:00</updated><title type='text'>Open comments are annoying due to spam/trolling</title><content type='html'>Sorry, but I cannot agree with &lt;a href="http://blog.philkern.de/archives/39-Rant-Comment-feature-on-weblogs.html"&gt;Kern's observation&lt;/a&gt; about blog comments... Unfortunately open blogs and wikis are subject to almost continuous and annoying spamming. I have a few wikis around and I had to close them to proper registered users, in order to avoid that problem. One cannot spend his lifetime to despam manually wikis, by revisioning or what else. Some programs do not allow easily despamming changelogs too.&lt;br /&gt;I would add that a few of them allow easily bot registration also, so they do not protect the blog at all against smart spammers, when comments are activated.&lt;br /&gt;That said, I'm yet quite annoyed by MLs flamewars, I would avoid to see blogs flamewars too and Planet flooding, even if we would live in a perfect world.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/09/open-comments-are-annoying-due-to.html' title='Open comments are annoying due to spam/trolling'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112573134521461454'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112573134521461454'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112568845134480608</id><published>2005-09-02T21:04:00.000+02:00</published><updated>2005-09-02T21:14:11.346+02:00</updated><title type='text'>Silly bugs in proftpd yet around...</title><content type='html'>A couple of users pointed me to a few silly and old bugs in proftpd package, never discovered before. Wow, I can really confirm now: more pairs of eyes look at a software, more bugs are found and fixed. Thanks Christoph and Ryo. This is the very special advantage of free software...</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/09/silly-bugs-in-proftpd-yet-around.html' title='Silly bugs in proftpd yet around...'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112568845134480608'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112568845134480608'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112543944427405386</id><published>2005-08-30T23:56:00.000+02:00</published><updated>2005-09-03T09:17:50.770+02:00</updated><title type='text'>Race conditions accessing files</title><content type='html'>After a brief thread with &lt;span style="font-weight: bold;"&gt;smb4k&lt;/span&gt; upstream, I noticed that it is not evident for many developers that accessing files (temporary or not) could expose to &lt;span style="font-style: italic;"&gt;race conditions&lt;/span&gt; exploits in some situations, if the program runs in privileged mode or not. That's quite worrying, because Debian GNU/Linux has tons of little tools which are not so often inspected for security auditing. So folks, be so nice to read the following recommendations and consider that accessing files could be potentially a risky business:&lt;br /&gt;&lt;ul&gt;   &lt;li&gt;do not use fixed or easily guessable pathnames for files in  /tmp  or any other world -accessible directory.&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;do not use nothing different from mkstemp() or tmpfile() to open temporary files and consider that mkstemp() does not work properly on NFS (due to O_EXCL use)&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;double check if you are using correct ownership and permission&lt;/li&gt;   &lt;li&gt;unlink temporary files just after opening and use the open handle after&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;check if you are accessing a symlink or a pipe and do not accept anything different from a plain file&lt;/li&gt;   &lt;li&gt;do not accept any path which has a symlink in a subpath&lt;/li&gt;   &lt;li&gt;do not overwrite an existent file and if your temporary files need explicit deletion do not forget to do it on exit&lt;/li&gt;   &lt;li&gt;checks and opening must be done atomically&lt;/li&gt;   &lt;li&gt;tempnam() and its sister calls are evil&lt;/li&gt;&lt;li&gt;creating a temporary directory and files there is better for atomicity against race conditions&lt;br /&gt; &lt;/li&gt;    &lt;li&gt;doing IPC without a named file is surely safer&lt;/li&gt; &lt;/ul&gt;</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/08/race-conditions-accessing-files.html' title='Race conditions accessing files'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112543944427405386'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112543944427405386'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112540262849034034</id><published>2005-08-30T13:47:00.000+02:00</published><updated>2005-08-30T13:50:28.490+02:00</updated><title type='text'>Proftpd 1.3.0 is going ready</title><content type='html'>&lt;a name="proftpd"&gt;&lt;/a&gt;New version of proftpd will use DSO, that caused a complete rewriting of the packages in sid.&lt;br /&gt;That's a good news, because it will allow a simplified approach, without the need of using many different flavors of binaries for every authentication layer. Also, I'm moving to &lt;span style="font-style: italic;"&gt;dpatch&lt;/span&gt;  and removing all dbs patching rests. The bad news is of course that the new package will delay and stay in experimental too for a while eventually. Anyway I have not intention to release until 1.3.0 will become official for TJ and the Proftpd team. In the meantime I'm cleaning the 1.2.10 release by removing a whole series of imperfections and little bugs.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/08/proftpd-130-is-going-ready.html' title='Proftpd 1.3.0 is going ready'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112540262849034034'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112540262849034034'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112539596492514727</id><published>2005-08-30T11:51:00.000+02:00</published><updated>2006-01-13T17:07:56.606+01:00</updated><title type='text'>The proftpd saga</title><content type='html'>I'm receiving almost no-end off-BTS reports about sarge proftpd package (1.2.10-15). It is amazing to see how few people care to consult the &lt;a href="http://bugs.debian.org/proftpd"&gt;Debian Bugs Tracking  System&lt;/a&gt; to know possible issues and problems with Debian packages. The old package in stable has a few gotchas (segfaults and cpu hogging) due to &lt;span style="font-style: italic;"&gt;mod_delay&lt;/span&gt; module, which stabilized only recently, about one month or so after sarge release.&lt;br /&gt;&lt;br /&gt;My suggestion is using 1.2.10-20 release on any production server, if you would not experiment DoSes and CPU consumption under heavy load. I packaged a stable backport with needed patches and uploaded to &lt;a href="http://people.debian.org/%7Efrankie/debian/sarge/"&gt;my own repo sitory &lt;/a&gt;on people. You can also add an apt resource like:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;deb http://people.debian.org/~frankie/debian/sarge/ ./&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I hope a proposed update with those changes enter a next point release of sarge. Incidentally, -20 solves also a couple of security issues pointed recently by Secunia and full disclosed since then. They will be object of a secure team update (thanks Michael Stone), due in a few.</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/08/proftpd-saga.html' title='The proftpd saga'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112539596492514727'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112539596492514727'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-15921431.post-112539324745573868</id><published>2005-08-30T11:11:00.000+02:00</published><updated>2005-08-30T11:15:48.756+02:00</updated><title type='text'>Frankie's World blog started</title><content type='html'>Ok, time to start blogging Debian activities, just to inform a few people about flaws and status of my packages and whatever...&lt;br /&gt;Blogging is also the stardard way to complain about Debian issues too, as we recently discovered :-)</content><link rel='alternate' type='text/html' href='http://www.lovergine.com/2005/08/frankies-world-blog-started.html' title='Frankie&apos;s World blog started'/><link rel='self' type='application/atom+xml' href='http://www.lovergine.com/feeds/posts/default/112539324745573868'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/15921431/posts/default/112539324745573868'/><author><name>Francesco P. Lovergine</name><uri>http://www.blogger.com/profile/04823596723164153699</uri><email>noreply@blogger.com</email></author></entry></feed>