Search Results: "erich"

22 November 2005

Erich Schubert: What SSH scanners try to do

I've been recently investigating a poorly maintained box (granted, it was just a workstation used for surfing the web) which was behaving oddly. In fact you could not longer login via SSH. I quickly noticed that there was a non-working sshd on it, in /usr/local/bin. So I thought - why would a badly maintained box have a non-standard SSH on it? This made me very suspicious, so I immedeately ran chkrootkit. It didn't find anything except it told me that someone had tampered with the wtmp file. The "tampering dates" aligned with the creation times of the ssh. A quick "find" run came up with the tool to do so, too. A quick check in the logfiles - which were fine, since they were not standard syslog, probably - showed that a SSH scanner had managed to login into an unprivileged account with a weak password, then used a kernel exploit from january to gain root privileges. Apparently he was unsatisfied with the sshd on the box, so he tried to put a different version on it, which, well, didn't work and he could no longer logon to the box himself. A rootkit was apparently not yet installed (verified after a clean boot), he was just about to setup his own sshd... maybe he had noticed that the box was just a stupid surfing box and then didn't care enough to cover his tracks (or just shoot himself in the foot by breaking the sshd) So if you are running boxes on the internet: (PHP guys: yes, I know that there are some good PHP scripts. But there are tons of badly written ones, too... and PHP is a major intrusion vector, and the privilege escalation I've seen here would have worked just fine with a PHP installation not using safe mode and safe_mode_exec_dir) A firewall I maintain at our university has been tracking ssh connections using the recent match for quite some time, and a nice side effect is that it reduces all their "spam" in your logs, too (in case you bother to read them. Do at least read the logcheck results!)

21 November 2005

Erich Schubert: Are social network services worth a dime?

Social network services (Wikipedia) such as Friendster, Linkedin, OpenBC are one of the top "web 2.0" hypes. I'm very sceptical about them, because I don't see the real benefits for me. (I'm referring to the pure "keep contact with your schoolmates" thing, not stuff which does much more such as serious blogging - e.g. livejournal - or planets such as planet.debian) The typical use case I've heard is much like "Imagine you have made a cool product, and want to sell it to some company. Now you can search for people at that company you know (or a friend of yours knows) and call them, this will help you get a feet in the door", as well as "you can use it for finding a job". I think that's bullshit, and to a large extend because I'd neither be willing to update my information in these services all the time, nor would I be willing to help just everybody here - most likely I'd just delete and ignore the email, and be really annoyed by a call (I'm annoyed by calls anyway)... It's not that I despise social networking per se. But I despise quantity instead of quality. I care a lot for my friends, and I'm in several groups grown around some technical issues; when someone is looking for a job I pay attention for suiteable offers around me; if someone needs something else I do try to help. But I'll only do that for people I'd really call friends. If you just want a quantitative number, last I checked my ranking was #36 in the global PGP keyring, meaning I have the 36th shortest average distance worldwide to verify a cryptographical key. So what? Of course I also tried one of the social networing services given above, joined a group for a university I was at. Even before the adminstrator of that group added me, I got an "invitation" by one "linkaholic". I rejected it, and even considered to report it as "spam" to the operator. I did indeed know that person, but all we had was a flamewar on a mailinglist, and I found him highly unsympatic. So why should I add him to my network? Where are the benefits for me (except that I'll maybe get an annoying call sometime in the future, when I could have forgotten about him)? No, in my opinion this social networking hype is built entirely on a hype, basically saying "look how well-connected I am, everybody knows me, and I know everybody", even when these relationships are only present on the computer, without anything worth being called a "relationship" behind. The flame-war I mentioned earlier was btw. on the topic of Resume/CV books. Which are even worse than this social networking thing, IMHO.

20 November 2005

Erich Schubert: Paul Graham on Web 2.0

I have high respect for his writings, all I read were worth it. He just wrote about Web 2.0, and I find this a very interesting read. I agree with him here, especially with the line "Web 2.0 means using the web the way it's meant to be used." Ajax is not fundamentally new. It's just JavaScript. It's still slow, has sometimes usability problems, and often just doesn't work right... And Ajax certainly isn't worth to be called "Web 2.0"... What has been reappearing this year are "third party hacks" on the net. That was also the biggest thing about Google Maps: the API - others could use it (for free) to make other cool stuff with it. This is part of what Graham calls "Democracy" and of what he calls "Don't maltreat users" (especially not "lead users" and developers if you want them to adopt your stuff!) But basically I still don't think we're at anything fundamentally new here. The API stuff for example makes me think of OpenSource vs. Freeware... getting stuff for free is nice, but being able to modify it to exactly fit your needs is priceless. ;-)

Erich Schubert: Hunting the execmem issue on Debian sarge + SELinux

Ok, time to dive into the kernel and find out what "execmem" exactly means:
 /*
  * We are making executable an anonymous mapping or a
  * private file mapping that will also be writable.
  * This has an additional check.
  */
Basically, this appears to be a mmap with PROT_EXEC and PROT_WRITE. Now lets see if I can find where this is used in pthreads, and if I can just remove either PROT_EXEC or PROT_WRITE there... Okay, most likely, this is the offending line:
nptl/allocatestack.c
static int allocate_stack (...
	mem = mmap (NULL, size, PROT_READ   PROT_WRITE   PROT_EXEC,
		MAP_PRIVATE   MAP_ANONYMOUS   ARCH_MAP_FLAGS, -1, 0);
So pthreads stacks are executeable memory by default... but disabling that sounds risky to me... :-(

Erich Schubert: Scorched3D and ATI Radeon

Thanks to whoever fixed (read: enhanced) the radeon driver or Scorched 3D. With visible water the game is even more fun. ;-)

19 November 2005

Steve Langasek: 18 Nov 2005

Erich, Are you using bind9-host? If so, which version? If you're using the sarge version of bind9-host, with the sarge version of libssl0.9.7, and running all this on an i686-class system, then you're looking at bug #321721. The issue is that, if a binary includes hand-written assembly, gcc will assume by default that the code requires an executable stack unless you set a .note.GNU-stack section in the assembly file which says otherwise. And the i686 version of libcrypto includes (surprise!) hand-written assembly. This bug is already fixed for etch, both in libcrypto.so.0.9.7 and libcrypto.so.0.9.8.

Erich Schubert: Bug hunting on SELinux

I've been trying to track down an annoying bug with SELinux these days. The situation is as follows: when I'm running enforcing mode, binds' "host" command, "named" itself and "dig" won't work. They fail with an odd error message: mem.c:653: INSIST(ctx->stats[size].gets > 0U) failed. or with the latest bind backported to stable: host: isc_taskmgr_create: no available threads the SELinux audit error reported is denied execmem for pid=28566 comm="host" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process. As far as I know, "execmem" means the process can do runtime code generation (i.e. make its own memory executable) - that is a privilege you don't want to give out lightly. But everybody should be able to use the "host" command... so the situation sucks. Right now I guess that this is caused by pthreads, not bind itself. Anyone some hints for me? Does this mean I have to build a customized libc to run stable with SELinux (or make huge modifications to the policy, to add a domain for "host" and exec permissions to every other domain that needs to be able to run "host"...)?

Erich Schubert: Memory management issues

Dear Lazyweb,
,
Nothing is perfect, but on Linux you can at least improve it and tune it. I just ran into memory problems on my development box - I had tons of applications open, and since this is a laptop I prefer to have swap disabled. I then started to build bind9 for a sarge backport, which meant that a long sequence of C compiler processes were launched, each allocating some memory, working with it, terminating, next. Being really at the limit of the available memory, the system became unresponsive - and that behavious is really bad... I thought that sooner or later it will really run out of memory, and decided to watch some TV in the meantime. One hour later when I returned, it was still torturing my HD and still unresponsive. Apparently the compile process has been all the time just below the memory limit, causing the kernel to remove pages from memory and load them back from the disk later, which slowed everything down just horribly. So now I'm searching for a way to prevent such situations. The traditional ulimit approach won't help - no single process was responsible for using all the memory, but each one had its reasonable share. So dear lazyweb, is there a way to tell the kernel to reserve a share of the memory (lets say, 64 MB) for buffers and caches only? I can live with out-of-memory errors a bit early (and the just enable swap), but a massive slowdown as described above (where the kernel is apparently reading some data from the HD, then forgetting it again and replacing it with the next) must not happen that easily... Right now I fear that you could bring down any Linux system easily with a "slow" forkbomb where each forked process allocates 100 MB and starts writing some random data to its memory, forking a new child every 50 MB or so. Neither the OOM killer, ulimit nor traditional forkbomb detectors will be able to counter that, since already a couple of processes will cause the system to become completely IO-bound. Oh, and I have no idea how Windows would react on that either. So don't assume any OS is better, just because I say Linux isn't doing perfectly well here. If you have any tips for me, send me an email.

18 November 2005

Erich Schubert: SELinux backports for sarge

I've been preparing SELinux backports for Debian sarge today for a public release. I've been running them on a couple of servers for quite some time already, but I decided to fully document what I did as well as uploading them to a publicly accessible location: Debian sarge SELinux backports Note that you still need a policy (e.g. the selinux-policy-default package from unstable, a CVS checkout from the NSA repository on sourceforge or the new reference policy being heavily worked upon) as well as a SELinux capable kernel (e.g. the latest 2.6.14 packages from unstable) Note that alioth is a rather "public" box, so if you don't trust it (or me) - grab the sources from a location you trust, grab the Debian .diff and mine and do an interdiff. The interdiff should be really easy to verify at least. Also check out the Backporting HOWTO I wrote documenting my efforts. I hope I'll be able to bring you detailed installation instructions sometime soon. Until then I can point you to some SElinux setup notes in the Debian wiki. My cron and init packages do have the "bad" stuff disabled when SElinux is enabled.

16 November 2005

Erich Schubert: Effects of being on the first page in Google

A few days ago, I made it to place #10 on Google for a very generic term. With my "ancient" personal homepage. This made my page visitors skyrocket from around 800 to 1300 unique visitors a day (well, I only have a two day sample with the high value). Impressive. At the same time, the number of emails and comments in my guestbook has doubled, too. My google pagerank is still just 5 for that page; my front page has 6. But the pagerank seems to be quite off often anyway... Just today I received an offer of approx. $ 45 a month for a link banner on my page... At the same time, I havn't really updated the page for more than 2 years. I've been thinking about a redesign for four years, and I still havn't come up with a design I'm really happy with... :-(

13 November 2005

Erich Schubert: Meme me more!

Numenorean
Numenorean

To which race of Middle Earth do you belong?
brought to you by Quizilla ... also known as "nothing and everything" or "average" - this is by far the most common result in this quiz (which btw. doesn't include orcish)

12 November 2005

Erich Schubert: Mathematics and CS forums for LMU München

If you are a student of mathematics or computer science in München, visit Die-Informatiker.net or Die-Mathematiker.net, which are two pretty nice forums for our university. The latter is new, the first has been successful for several years now, and is officially "recognized". So you might even get answers from your TAs in there.

8 November 2005

Erich Schubert: On a binary driver interface for Linux

Some japanese companies have requested that the Linux kernel gets a "stable" (whatever) kernel interface for binary drivers. The obvious reason is, that they want to be able to add (illegal!) closed source drivers to the linux kernel. This is a bad idea for a couple of reasons, that have been discussed in a couple of places. Instead I want to show you a couple of examples to illustrate that. First of all, let me name the binary, closed-source drivers of ATI and Nvidia. They totally suck. They are unreliable, cause system crashes, don't work with power management and so on. Is this the type of driver you want? Commercial driver development is not capable of supporting the development speed and models of opensource. Other examples to show you the problems with all the closed source stuff include many wireless access points such as the isl3893 platform or broadcoms AR7. They duefully released the kernel code they used and maybe some drivers, but even the kernel code they touched is broken to large extends (that's why Intersil/Conexant doesn't support https on their isl3893 accesspoints, because they broke their libc in a way they can't get SSL to work on it any more). Now let me give you a good example: USB. There the interface to the hardware was openly and clearly specified, also for many many uses. The result is, that today basically any memory stick and digital camera adhers to this standard, and there is only one driver for it. Thats why they "just work". So instead of requesting a binary driver API in the kernel, these japanese manufacturers should instead start an industry initiative just like USB to standardize on a common stable hardware interface so we don't need a different driver for every hardware. Our real problem is that no hardware is like the other, and nothing is properly documented. And hardware manufacturers earn their money with hardware and haven't got much expertise on software...

2 November 2005

Erich Schubert: Apache2 + FastCGI + Suexec hell

It took me hours to get FastCGI and Suexec working properly. I'm so annoyed by the horrible docs available for it only. First I tried using fcgid (which at least is DFSG-free) but wasn't able to run moinmoin properly at all. So I gave up on that quickly. So I ended up trying "non-free" libapache2-mod-fastcgi. Oh what a mess. Getting the non-suexec fastcgi working was easy. Now I tried to make it a bit more secure... The "Documentation" claims that all you need to do is enable the SuExec Wrapper. So I configured a "FastCgiServer", set -user and -group appropriately, somehow found out that I need to chown the executeable and the dir containing the executeable accordingly, and that the user and group need to be higher than 100 - ok. (Although group www-data would have been okay, I guess). Reloaded apache. And the fastcgi process is started and running with the right userid. By now I was using a mini test-fastcgi, which prints getuid() - and so I could see that despite my process runing as a different user, it still returned 33 (=www-data). Damn! The reason I found out later after manually changing URIs to find the right docs etc. was that I need to enable mod_suexec, then add the SuexecUserGroup option to my vhost. For incoming requests, FastCGI will check for a running fcgi server with the same path and the same user and group ids as the one you defined in the fastcgi config. Otherwise it will start a new dynamic server. And there is no "FastCgiUserGroup" option or something obvious to configure the user and group name for the cgi path - but you need to do that for mod_suexec. Apache config is a PITA anyway. With its pseudo-XML syntax etc. - we really need to get rid of it sometime... So here is a short howto for using suexec and mod_fastcgi on apache2:

29 October 2005

Erich Schubert: Debian booth at the Systems

Debian again hat a booth at the "Systems" fair in Munich. This is mostly a B2B fair, and the focus is on "ready to use" products. So there are few new product announcements happening here, and not this big audience as of IFA or CeBIT. Still it is an important fair for the medium and small sized businesses. Noone expects a PSP to be introduced there... I staffed the booth on tuesday morning, and I intended to staff it on Friday morning, too (but was unable to do so). We were rather few people this year; also the organizational contribution of Jens (who died this summer) was missed a lot. Thanks to Michael Banck for organizing most things, and to all the other contributors such as Michael Ablassmeier and Simon Richter. See Michael Bancks blog posting for a complete list. Thanks also to e.g. the wikipedia staff, who managed to staff our booth for a few minutes while I went to the entrance to give Simon a free pass. Tuesday morning was rather quiet, few people coming by, most of which are either already happy Debian users or at least know of it. Few donations, albeit the few LinuxTag DVDs left were gone (for a donation of at least 2 Euro) by noon. While I remember people asking all the time about the pretty posters with Ayo's artwork last year, and we had a bigger stock of them this time, noone asked while I was there. So on overall, I don't think it paid off for the project. :-( A couple of people had technical questions which I was usually able to give the relevant pointers for solving them. The recurring question "when is sarge going to be released" was obviously not an issue any more; one guy asked when etch was going to be released and I was able to quickly pull out the announcement by the release team with the end-of-2006 schedule. I was rather disappointed with the few people coming by, but probably tuesday morning was a rather unrepresentative time. The only two "important" conversations I had there was with someone from a PHP magazine who are interested in including a Sarge+PHP5+MySQL5 CD with an upcoming issue (I can't do that, I hope they'll find someone else to prepare the CD for them!) and with the people from LiMux (the upcoming linux switch of the city of munich) which sounded (to me) much like the current delay of the project is mostly due to management issues than due to Debian/GNU/Linux lacking some features. They couldn't really tell me what the Debian project could do to support LiMux. Debian being used for LiMux is something I'm really looking forward to, and I would have loved to see a demo of it at the Systems, but apparently the project isn't that far yet. :-( I didn't see much of the Systems otherwise - I had to hurry back to the university when I left the booth, so I didn't visit any other booth. The last few times it wasn't too interesting for me anyway, since none of the products (except the OSS projects) is targeted at my audience obviously. And I'm not the type to walk around to collect as many free CDs and ball pens as possible. I remember that last year you could have your face "imprinted" in a block of transparent resin with small bubbles or so; no idea if that was free or at a low charge, though. You used to get popcorn and such stuff at a couple of booths etc. - and a lot more of such stuff back in DotCom times - but it never interested me too much. And last year I think a conference hotel had the booth opposite of us and gave away free beer... anyway, I didn't even check if the LiMux booth maybe had one of these nice munich-penguin pins... I had considered to walk around and ask for sponsorship at a coupld of places for some projects I'm invovled in, but I don't think I'm good at that anyway... So my feelings are rather mixed. I really hope we'll have more people for the booth next year, because I'll not be available then: I'll hopefully be in finishing my diploma thesis by then.

Michael Banck: 29 Oct 2005

Systems 2005 Another year, another Systems. This year, however, sadly the first time without Jens, so organization was harder than usual. C&L again provided an Open Source area where we had a booth along with GNOME, KDE, the several BSDs, PostgreSQL and some smaller Open Source projects. As we were not able to build up the booth on Sunday already, there was only a pretty bad location left on Monday, facing towards the wall. Roland Stigge provided a huge 1,5 by 1,5 metre Debian swirl banner, which we mounted in the vicinity of the (too small for that) booth. Michael Ablassmeier brought a Shuttle PC and a TFT display so we could show visitors around the Debian desktop and point them towards further information on the internet. Credativ again kindly shipped posters and flyers. We sold the former and distributed the latter to passing visitors. Unfortunately, Credativ did not receive any LinuxTag DVDs this year, and we were unable to obtain some from other people (apparently they are spared for LinuxWorldExpo in Frankfurt next month, though most visitors there should know Debian already I guess), so we only had about 30 DVDs, which were left from the pack I took back from LinuxTag myself. We sold those for 2 EUR, and later distributed some shiny new Breezy CDs the GNOME booth acquired on Thursday and had some Sarge CDs pressed at a nearby CD production booth which we sold for 2 EUR as well. After some initial doubts on whether we would be able to properly man the booth, it turned out that the local Debian community was enough to guarantee presence except for Friday morning. Michael Ablassmeier, Erich Schubert, Simon Richter, Roland Stigge and Rene Engelhard manned the booth besides me. So we were in the fortunate position that we had two people at the booth most of the time while shuffling around personnel, while most other booths were operated by the same one or two people throughout the week. This year, almost all people I asked (I usually offered a flyer and asked "Do you know Debian already?" to all passing visitors, unless they quickly tried to run through our territory) knew about Debian at least somewhat, and surprisingly many people said they had Debian installed and were happy with it. Thanks to the Sarge release and the almost-official amd64 archive (the respective lack of which were by far the most prominent questions last year), we had almost no recurring questions to answer; probably the most frequent question was about Ubuntu and our relationship with it, but those were pretty scarce and I expected much more of that. Likewise, only very few people were unhappy about Debian (far outweighed by the happy bunch), and most of that seemed to be due to specific technical issues rather than any general reservations about the Debian development or community processes. Most of the remaining questions were pretty specific, e.g. people having issues installing Debian on their hardware or trying to do some exotic stuff. To summarize, it was a nice having a booth again and getting in touch with visitors and users. I did not see much else of Systems this year due to being busy with university as well, but I do not think it would have been worth it anyway. Murray Cumming and Joerg Kress (who were managing the GNOME booth) helped me dismantle the booth and carry back the hardware and leftovers on Friday evening and we decided to have dinner together at a nice pub in Munich.

Erich Schubert: Ridiculous software patents encumber XML

So there is another example on bad software patents out. A company now claimed to own patents on the basics of XML (oh, and what about HTML, SGML etc.?). This is just another example on how bad software patents can be. It's outright ridiculous on what patents are filed nowadays. The US really need to get rid of them, and the EU should avoid introducing them over another backdoor initiative... I'd point out the British Royal Society for the encouragement of Arts, Manufacutres and Commerces "Adelphi charter", which is pretty clear on patents on computer code and abstract ideas...

28 October 2005

Erich Schubert: What is Google up to?

Google is expanding it's empire. In fact it's becoming a threat with this big of an influence on public opinion just by being able to effectively "censor" information if they would want to. We need more diversity, IMHO. With the latest rumors - Google Base - it seems that Google will be attacking new markets soon. Google Base could be a big threat to Craigslist and EBay, actually... (from what I've seen of Google Base, I find the phrase "Google wants to host your Databases" overstretches it a bit though...) So what is Google up to? When is Google starting to sell books? Google Talk isn't really big. It seems to be a nice product, but very few people are using it. I've never seen Google advertise it, so it's no wonder most people stick to their established IM/Voice services. But what's the point of it, when they don't adequately promote it? And whats behind that VPN service on their planned WiFi network in SF? Is it about beta testing, maybe? Google obviously wants to run company intranets. Company intranet search engines are a well-known product, and they for sure would like to expand that offer - offer email service, IM/voice, ... From what I've read about their WiFi service, they would be allowed to run e.g. deep packet inspection stuff on it. Combined with Google indexing tech they could test e.g. filtering out pr0n sites. Or test a virus filter. And then offer that product to companies. So is a google firewall coming? More obvious missing products in Googles portfolio are a document management and a customer relations management solution. Or a combination of both. Google base might actually be part of an upcoming document management product by Google, I guess. And, I mean, wouldn't it be obvious for Google to offer a document management (and storage) solution to companies? As for CRM - a google CRM solution combined with their document management and indexing applications would beat any other product: add a user to the CRM and have the related files appear automatically due to google indexing, have the email correspondence added from the company gmail accounts...

Erich Schubert: Gmail issues

With all the hype that was around it, I got myself a GMail account some time ago, when they were rather "rare". While the UI is still very good for a webmail, it has also a lot of things I do not like. I don't use it heavily - not for personal emails, but only to recieve some mailing lists I don't want to clutter my regular mail (and there are no privacy issues there... Google will index them in the list archives anyway), and to recieve some off-site notifications by some servers (it's always better to get warning emails etc. off-site so you can still access them when the site is down... oh, and if you have an email relay, try to setup a direct transport for your email, so it works if there is something wrong with your email relay, too!) My top issues with gmail are: I used gmails feedback function before, but didn't get any reply.

25 October 2005

Axel Beckert: Galeon is dead

According to an announcement of the Galeon developers on their website and the Galeon announcement mailing list, Galeon is more or less dead. It has been superseeded by the more actively developed Epiphany and most of the Galeon (1.3 to be correctly) features which are not already in Epiphany (can’t be that many *harhar*) will be either implemented as Epiphany plugin or — if impossible as plugin, like e.g. middle click in menus or similar things — shall be ported to Epiphany. The Galeon developer team will focus their work on the Epiphany plugins, but still plans to once release Galeon 2.0. (Somehow I always thought, Galeon 1.3 is what meant to be Galeon 2.0.) Having read this, I’m even more convinced that Kazehakase will fill the gap Galeon 1.2 has left behind. Oh, and btw Erich: plugins or extensions are the only thing I sometimes missed in Galeon, as well in 1.2 as in 1.3. :-) But having no turing-complete extension language is the drawback you have, if you want a fast and stable browser…

Next.

Previous.