Search Results: "erich"

16 September 2006

Erich Schubert: Is your mail reader SVG-enabled?

From the debian changelogs:
thunderbird (1.5.0.5-2) unstable; urgency=low
  * new package: thunderbird-dbg
    + enable svg
Whoa, when will we start seeing SVG spam?

13 September 2006

Erich Schubert: SELinux in etch progress

Just a quick update for SELinux in etch. With Manoj picking up work on it again (you might have noticed the large influx of new SELinux related packages these days, bringing our toolchain up to date again), and rjc having setup a SELinux development box for me, we're actually making some progress on SELinux for etch now. Uwe Hermann also blogged about SELinux on Debian recently. There are tons of small nuisances with SELinux on Debian left. I've started filing bugs and tagging them with the "selinux" usertag. It's in the details. For example mawk and gawk both try to ioctl any file they read as if it were a serial terminal. Which of course causes SELinux to log an audit error, since the init script or whichever was calling awk didn't have the permissions to ioctl a config file. Then there is /dev/xconsole - it's created by the syslogd init script (shouldn't maybe this be handled by udev), it's barely used by anyone, and SELinux policy upstream wants to keep it in the xserver policy, and claims its main use is to be able to feed it the output from programs started by the window manager (instead of .xsession-errors). Which is a seriously broken design, since it's not multiuser capable. Anyway, our current options are to Of course I was quickly flamed for filing a bug against exim stating that there currently is no SELinux policy for it, and people thus will have to use postfix or sendmail instead. But heck: people trying out SELinux on Debian will run into this problem, you know. I'd certainly prefer people to use exim instead of sendmail (I'm more of a postfix guy), but unless someone writes a policy for exim, people can't use it with SELinux. I have no idea how exim works (where its queues live, expected behaviour and so on), so I can't write a policy. Now to start a real flamewar - how about making postfix the new default MTA for Debian with etch? /me runs and hides.

11 September 2006

Ross Burton: Python Decorators

Decorators in Python are just fantastic. Here are a few I've used in Postr. Update: the wonderful James Hensbridge expanded the decorators, so I've updated this post.
def threaded(f):
    def wrapper(*args, **kwargs):
        t = threading.Thread(target=f, args=args, kwargs=kwargs)
        t.setDaemon(True)
        t.start()
    wrapper.__name__ = f.__name__
    return wrapper
This decorator (stolen from O'Reilly) calls the method in a new thread, so execution returns straight away. I use this for long-running tasks that cannot be handled in an asynchronous manner (such as the photo uploading in Postr, which currently uses urllib). The main thread returns straight away so the interface doesn't block, and the uploads continue in the background. Of course this new thread cannot just call GTK+ methods, as GTK+ itself isn't threadsafe. So, I have another decorator that causes a method to be always executed in the main loop by scheduling an idle handler that calls it.
def as_idle(f):
    def wrapper(*args, **kwargs):
        event = threading.Event()
        ret = []
        def task():
            ret.append(f(*args, **kwargs))
            event.set()
            return False
        gobject.idle_add(task)
        event.wait()
        return ret[0]
    wrapper.__name__ = f.__name__
    return wrapper
Erich Schubert requested return values, so James added those too. The calling function will block until the idle handler has called the decorated function. I've split the decorators out into a separate file in Postr, so you can view the latest version online. Magic stuff!

Erich Schubert: Countering SELinux FUD

In B rangers blog, there was this short notice on my cut-down on SELinux work. There are several comments to it, some of which are seriously inaccurate. Quoting bad information in Wikipedia doesn't make it more true either.
>SELinux is OpenSource. The kernel parts *are* in the regular Linux kernel.
Absolutely not. SELinux is a heavily patched Kernel + some tools.
Read http://en.wikipedia.org/wiki/Security-Enhanced_Linux if in doubt.
Sorry, but Wikipedia has a really old quote in there. SELinux is (use the source, luke!) in the mainstream "vanilla" Kernel by Linus Torvalds. There are some improvements which aren't in there yet, but in order to run a SELinux system, you do not need to patch your kernel. Anymore. The code in the Linux kernel works just fine. No serious bugs, just some new features are "incoming", and will go into the next Linux kernel. The last larger change in SELinux was around kernel 2.6.9 or so I think (depends on your definition of "large" of course. But the last time I patched my kernel with a SELinux patch was around version 2.6.7 or 2.6.8.) All the SELinux code is opensource, has rather strict coding guidelines and there are no magic patches from NSA being applied. (Well, basically use the coding style used in the Linux kernel...) Have a look at the mailing list archives on how patches in SELinux work. The NSA would have a hard time hiding secret spying backdoors in these patches, that will go through some more reviews before ending up in the Linux kernel. So you can trust them exactly as much as the Linux kernel itself. And definitely a lot more than the nvidia or ATI drivers. If I were the NSA and wanted to get a backdoor to many systems, I'd ask ATI and Nvidia to put the backdoors into their drivers. There is plenty of room in there. AppArmor is not in the stock Linux kernel. And havn't received a warm welcome so far...

10 September 2006

Erich Schubert: Microsoft considered harmful for the internet

One our mailservers was heavily loaded these days. Some (braindead, but actually it's not their fault) user sent a huge mail to a huge list of recipients, with many incorrect addresses. Unfortunately, some of the receipients are users of Microsoft (apparently "Win 2003 Server SBS mit Exchange 2003"). Which somehow bounces back the mail to all original receipients. Some of which, well, do the same. My current count is somewhere at 1700 mails. Most were rejected by my mailserver, since I've quickly added a filter. Search for "IMB Recipient" to find out why you better do not use Microsoft Small Business Server. Unless you want to become really unpopular with your people for flooding their mailboxes. Microsoft Knowledge-Base description of the problem - now if that isn't a gross understatement for "your mailserver can be abused to mailbomb others". Todays culprit: Engpass Marketing- und Services GmbH apparently can't configure their Microsoft mailserver properly.

7 September 2006

Erich Schubert: Debian server abused

The security incident on alioth resulted in some rather bad press. Much of which isn't very accurate (the server was not cracked, certain applications installed by users were abused, but no privilege escalation happened) and not fair (this is not a "dumb" web server, but a server to be used by "third party users" to run web applications on). It's also worth noticing, that everybodys favorite Joerg Schilling commented [de] (read: flamed) on these articles in his best troll manner. In fact, he's known to be a frequent troll on heise, often posting "corrected" versions of articles related to Solaris or Linux. If you've read his posts there and his mails you just can't take him seriously. Don't feed the troll, and just ignore anything you hear from him. Including any cdrecord stuff, please switch to cdrkit/wodim! To avoid this type of problems I see the following choices: As you can see, the first option is the easiest, but it's contrary to the idea of alioth - being allowed to run custom web apps. Face it: a webserver serving only static pages is much easier to keep secure than one where users are allowed to install custom applications. And a project of Debians size needs to offer a web server where developers can run custom CGI. The other options mean much more work; especially the SELinux option would increase security a lot, even with PHP, but it means someone will have to spend a lot more time on administrating the system, and especially helping users when their web app doesn't work right because of SELinux security restrictions. For further increases in security PHP would need to be patched with some SELinux support: it shouldn't be allowed to include() or execute files written by the web server and not uploaded via ssh. For this, PHP needs to understand security contexts. One thing we should go for, however, is to provide more common services on alioth. For example wikis. Maybe we could setup a shared MoinMoin instance for all projects on alioth that want to have a wiki. And maybe offer "security supported" installations of other common webapps as well (e.g. forums, trac). Attacks usually exploit widely used applications such as wikis or forums. And even when 90% of the users on alioth upgrade their software on time, there are still 10% vulnerable. And maybe we can setup a box for the custom applications that actually is SELinux enabled in one or two years, when enough people are familiar with it and on how to write and maintain an appropriate policy.

5 September 2006

MJ Ray: Does debian need a steering committee?

Following the original idea and some other commentaries, this quote sums up my view:
"I've done this before, in various forms, and most of the time it follows the same predictable route: 25% of the time you get a really good committee and it's a blast for all involved; 25% you get a diabolical committee and it stands a chance of dying; half the time you get an average committee and it continues as it was before. The whole "committee" idea has some fairly major pitfalls to avoid: cliques, irrelevance and legality to name but three. [...] I think we should NOT form a committee." -- Me, April 1999

4 September 2006

Erich Schubert: Looking for a laptop

I'm still browsing around (Google doesn't want you to google for such things, but "search", remember?) for a laptop to buy next, when my thinkpad finally dies (or I need to be mobile again, which might be in some weeks). I've found another wishlist candidate: the Panasonic Toughbook T4. It's small and tiny, extremely solid, it needs no fan, has a touchscreen (and you can carry it book-like, since it's light and comes with a hand strap) and extreme battery life. Apparently it does actually run over 9 hours in third party benchmarks. But it also has some drawbacks:
There are next to no reviews, especially no information on Linux compatibility (which shouldn't be an issue, embedded Intel graphics, and very little hardware in it, but e.g. the touchscreen might or might not work) - and it's not very widely used or known. It's also very expensive (Thinkpad X60 1500 Euro, Toughbook T4: 2500 Euro with the two big plusses for me being better battery life and the touchscreen, thats too much) and said to be quite ugly. I sent an inquiry if there will be a successor with maybe a Core CPU - I don't know if there is an ultra low voltage core - or if there will be a version without windows (it's expensive enough, I'm going to use Linux, I don't want to pay 200 Euros for Windows). I got a quick reply - that my questions will be answered when a certain colleque is back from vacation... This probably means that despite me loving the idea of being able to read papers on the laptop just like with a real book (with a pen, and as mobile), another candidate has dropped off my list... Guess I won't be buying a new laptop until my old one is completely dead and then I'll be going for something used and cheap as "temporary" solution... I guess I'll browse the web for the HP tc4400 and Toshiba M400 next. I didn't actually intend to go for a tablet PC, but apparently these are more designed for weight and power consumption than regular notebooks with their nvidia and ATI power wasters. P.S. Yes, I am aware of Thinkpads. But they are either to heavy for my liking, have too bad battery performance or have too low screen resolution (X series).

Erich Schubert: More on the Debian board

Simon has a similar view of the situation. With the stuff I proposed in my last entry and earlier (e.g. bug masters) - I'm well aware that this means someone needs to write a lot of infrastructure code. But given recent improvements e.g. on our bug tracking (user tags, subscription, version tracking) this seems to be working okay. I've never really used launchpad, so I can't comment on what it offers that we might need and where it sucks. And I've said a dozen of times that I hate bugzilla. Next I'm usually hard to convince that any "infrastructure improvement" will help solving "social" issues. But here it might, if it "weakens" the formal DDs power (isn't god on how the software is packaged and on how patches come in) and strengthens the "occasional contributor" (pending patches repository, DDs can easily approve patches and trigger an upload without being deeply involved with the package, since NMUs are easier to do). And I'm also aware that my point of view isn't consequent. On one hand I'm convinced that any big "steering" won't work anyway, and those who do the job (read: write the code, write patches) will largely be those who set the direction. Linus didn't just pick a VCS and decide that everyone will have to use it, but actually wrote his own to suit his needs. And others liked it, picked it up, improved it. On the other hand I'm asking people to use packaging practises that allow others to easily contribute. I almost suggested to make it policy to use debhelper and CDBS... Well, it's one of the things I've learned myself: make it easy for others to contribute - and you'll enjoy it more, because more people will contribute. If it's hard to contribute, people will complain, will file bugs, will argue. If it's easy to contribute, they are more likely to send patches and enhancements. Read: more fun. It's also one of the reasons I blame for my SELinux work being not too rewarding: it's hard to get going, it's hard to contribute (well, that has improved with the public readable SVN repository for the policy). Less people, less contributions, less fun. Anyway, I don't see the need for any steering or "global picture". We're not lacking the big goals, but the low-level fun at development. That doesn't mean I'm strongly "opposed" to the commitee. I just don't see the benefits (but certain costs for electing it. Do we take group applications and vote among groups? Then we could just have the DPL nominate the steering comitee. Or will we vote on individuals, with the top n becoming the board? Then we'll have lots of platforms to read (=boring, not fun), and we'll probably have the same problems at a different level, different opinions in the board. And, given that the DPL has no real power, will the board have any? We also have a technical comittee. Does it have any power (well, it's supposed to, but was it ever enforced)? Did anyone ask it about something recently?

Erich Schubert: Debian board

The "Debian board" has been discussed a lot recently. I'm not so convinced it will improve matters that much. I don't think Debian is lacking a central authority to keep the vision. Most people have some overall vision; these visions might disagree on some points, but a board is bound to have the same disagreements. What is taking the fun out for me is not that some technical matters don't work out the way I want them too, but usually it's lack of manpower in certain files of particular interest to me. For example SELinux has been rather frustrating for me, since I felt like fighting alone on a lost position. Often applications would change faster than the policy could be updated etc. And trying to support sarge made that even more so. Sometimes bugs were fixed upstream, but the packages in Debian weren't updated yet, etc. When I was maintaining galeon back then, the must frustrating things were that on one hand, you had lots of people complaining about galeon 2 being different from galeon 1 (and not accepting that galeon 1 was dead upstream, I preferred galeon 2 and so obviously packaged galeon 2) - and on the other hand that there were tons of open bug reports noone even had time to verify. Working on such a package can be very frustrating. I've been keeping out of flamewars and such for quite some time, so I'm not so much bothered by that. I've blogged about that before. But I don't see where a "board" or "steering commitee" would come in helpful. Especially not in comparison to DPL-named release managers etc. IMHO it would be helpful to bring more people in. Our process of becoming a DD is very demotivating, and actually we could use more people - especially - for things like bug verification. Contributing to Debian can be demotivating for several reasons: Stuff I've been enjoing: What I'd love to see on the long run is some kind of central package repoistory. Many other distributions use some kind of huge version control system for managing all their packages. Maybe we could have something like this with two "default" branches. With very little effort you can get write access to the "public" branch, and only full developers can pull patches over to the "authorative" branch. Packages should be built from that branch, and use some uniform way for this (e.g. debian/patches/ directories!) But people with more experience in team maintainance, e.g. the Gnome team, can hopefully comment more on this.

2 September 2006

Erich Schubert: No Debian mascot to sit on my speaker

Penguin and a bavarian lion on my speaker A pity Debian doesn't have a mascot. It could sit together with my squeaky Linux penguin and a bavarian lion on my speaker. Anyone up for this challenge? Any maybe even make a Chumby version out of it?

Erich Schubert: My new room

I've started decorating my new room. My new home. Closer to the city. Picture of my room while decorating Using the mirrors of my wardrobe, I can actually take a shot of most of my room. There is a penguin hidden in above picture. Can you spot it? The yellow and orange colors give it a warm feeling. The long picture is a seven pages is a 360 degree panorama shot of san francisco (I've also made a 12 page version, but didn't print that one yet.)

1 September 2006

Erich Schubert: Halting SELinux on Debian development "just before it works"

Some good new up front:
I'm down to around 10 audit errors on booting my amd64 system in targeted policy. To achieve this I did some small changes to the udev init script, and some larger policy modifications (mostly treating /dev/.static/dev the same way as /dev) (see webSVN changes view). The bad news:
I'm halting my SELinux development. I'm moving into a new room today, and the box I've recently been using SELinux on is staying with my dad. After all we bought it for him to surf. So I don't have any computer to run SELinux on (my 4+ years old laptop is way to packed already). And that means I can't seriously work on SELinux much anymore. Sorry. It sucks to stop tweaking it right before it's done, but I can't do much about it. [Update: It's not just about the hardware. The hardware is the reason why I can't do much at all, but as you may have seen in one of my previous blog entries, a couple of things in my life are changing right now. I have no idea how much spare time I'll have at my hands. I welcome the offers of sponsorship I've seen, but I can't accept them when I might end up not doing much more anyway. Sorry.]

Erich Schubert: Mime time: metros I've not used

metros from the world with wildy inaccurate logos I've not used: Just kidding. I'm not going to participate in this stupid thing. I'll just rant about it and annoy everbody just as much as you did. But I can still claim it's all your fault and feel superior. You lose, I win. How about if you enjoy a motivational poster on deviantart instead? Thank you.

Erich Schubert: Busy with life

Today, I've been quite busy with "real life". First of all, I retrieved keys for my new room (see below), and was busy half of the day with packing stuff. Around noon, I had to go to a funeral. A friend of mine has died, most likely from cancer (maybe smoking-related, I don't know). He was very active for a NPO helping people with the internet. We'll really miss him there, too. In the afternoon I packed more of my stuff together, bought some new things; then took a break to go dancing - I started taking a Balboa class today - and finally took most of my stuff to my new room. Until around midnight I was cleaning the room, fighting the "malfunctioning" doors of the huge wardrobe and moving stuff in. Tomorrow I'll probably spend my first night in the new room. Picture of the plain room This is a shot of the new room. I don't have a wide angle lense, so that is the best I could do (I have the lens on my Amazon Wishlist, but it's horribly expensive...). It's the plain room, nothing of my stuff in there yet. The first thing I did was putting up some nice yellow curtains, to add some color. The flash makes some funny light effects with the mirrors of the wardrobe on this picture. ;-) The room isn't huge, but it's well done. The bed fits in behind the door, a desk will fit next to the bed, and there is this huge wardrobe. The mirrors on it make the room appear larger and brighter. Now with some sunny colors this will be a room I can enjoy. I'll probably post another picture when I've added some more color to the room. I have a couple of nice computer artworks printed out to hang to the walls. Oh, and the linux sourcecode poster. ;-) (No, I probably won't put that one up. It's mostly gray. It wouldn't match the room. It will be interesting how my life will change the next months. I'll be doing a lot more dancing - I intend to join a Boogie sports club, learn Balboa and Boogie and train Lindy Hop - and since I'll be living closer to the city, I expect to go out more. And I hope the people I'll live with in that house are fun, so we'll be spending some time together. We have a pool table and a dart board in the living room, and a perfect spot for placing a projector. Also since I've passed my final exams, I'll now focus on my final thesis. My topic is about semantic wikis [wikipedia.org], at my university and a research institute. The last months, I had been rather bored with university life; the thesis will likely set the course for the next few years of my life: research, entrepreneurship or just working at some larger company.

30 August 2006

Erich Schubert: Ubuntu forums

Yes, I've been quite unfair to Ubuntu forums. While I'd still prefer if they (= not Canonical; Ubuntu forums is just affiliated) would enable some searching for non-registered users, I have to accept that they only have limited hardware resources. And of course I'd like to see them using Opensource Software for their forum. When they enabled searching apparently they were flooded with requests. This goes so far that there are even rumors about a DDoS launched against their search functionality (the mails I received from UbuntuForum admins did not contain this claim). UbuntuForums definitely is a huge forum. The front page says "Threads: 243,764, Posts: 1,440,895, Members: 160,228, Active Members: 121,548". Well, 1.4 million posts definitely is a load of data to search in. I don't know if phpBB and similar opensource forums can handle these numbers (I have very little trust in any PHP solution, as you might now, and I dislike phpBB a lot). However I believe they're more likely to receive support by their developers for modifying the forum to handle such numbers. If they actually perform worse (which I don't know. Has anyone resources on the performance of different forum solutions with huge user and post numbers?) Maybe they're just hidding limitations of vBulletin now, too. I could imagine they need to replace the built-in search functionality (which I guess is MySQL-based) with e.g. a lucene based search. This should also allow better distribution of the system onto multiple computers. Anyway, I didn't mean to flame the Ubuntu community that much. It's just that the forum lost the one essential function for me this way - searching if the answer to my question is somewhere in there. (And yes, I know that registering isn't hard, and that they don't even verify the email address.)

29 August 2006

MJ Ray: Web 2.0 vs Accessibility?

Ajax is devolution [vitavonni] is a good argument based on the pain of writing Javascript and the drawbacks of running complex Javascript on most browsers, but says nothing about the accessibility problems.

Erich Schubert: Trying to get compiz working on Debian

I'm trying to get compiz working on Debian. The xorg packages in experimental include AIGLX, so I hoped this would be rather easy... and indeed, just a small tweak to xorg.conf ("Composite" "enable") and I seem to have everything I need:
> glxinfo
[...]
direct rendering: Yes
 [...] GLX_EXT_texture_from_pixmap, [...]
OpenGL renderer string: Mesa DRI Radeon 20060327 AGP 8x TCL
OpenGL version string: 1.3 Mesa 6.5.1
[...]
So I build a recent compiz (post 0.0.13, from git), and also grab a patch which supposedly adds AIGLX support. After restarting my Xserver and logging into gnome I see this: Compiz screen corruption Quite disappointing. Some window borders are drawn, some background, then all drawing is stopped. Looks to me as if the driver freezes. CPU load is 0%, I can switch to the text console, but when I switch back the screen completely freezes. I still see my text console contents, but can neither switch back to text console or to the X server. The only way to get my system into a usable state again is to login via ssh and killall -9 Xorg. It's very plausible, that this is an issue with my graphics card. It's an Radeon Mobility FireGL 7800 M7 (RV200 series). Apparently not the best of their products: the official ATI Linux driver doesn't support it. But the opensource driver works fine, I have 3D acceleration at 1600x1200. Anyway, if someone has more success with compiz without using Xgl or proprietary drivers, I'd welcome pointers. [Update: if I recall correctly, the results with Xgl on this machine were the same, some window borders were drawn, but it was otherwise unusable] I don't care about wobbly windows and similar gimmicks - but I'd like to benefit from off-screen rendering for faster desktop switching.

Erich Schubert: Keeping your users out.

Today I was trying to find some information in the Ubuntu forums. I'm seriously annoyed. There was one thread that seemed relevant, but it has some 310 pages. Yes, thats over 3000 posts. Unfortunately, Ubuntu (and I consider this arrogant behaviour) doesn't allow you to search the forum or access attached images if you are not registered. I can understand things like spam protection. But WTF do you require registration for searching? I mean... I was trying to find out if the Ubuntu community could help, and all I get is "register first"!? Thats pure harrasment of non-registered users. I don't think I'll bother to remember another username and password just for their crappy forums. I hate forums anyway. And the size of that thread just shows that forums don't scale well. Especially if you can't search. [Update: yes, I've been a bit harsh here. The front page says that they're experiencing speed issues, and thus have disabled search within the forum. Actually I can't believe that search requests make such a huge load (especially compared to me browsing a 30-page thread...) - but maybe their search function is just implemented badly? I wouldn't be surprised if they do some huge SELECT to search, and don't have an index optimized for text searching. Maybe they shouldn't be using a closed source software for running their forum. I guess they could just fix the search functionality then. If opensource software doesn't meet their requirements, they're bound to get some support by the community to make the software meet them, if vBulletin actually is better in some points. IMHO vBulletin sucks. And given the speed issues "it is what the admin prefers" might miss some important point - that at some point you can't just keep getting a larger CPU]

Erich Schubert: Bashisms are everywhere.

/etc/init.d/cryptmount: 16: source: not found
/etc/init.d/cryptmount: 19: Syntax error: "(" unexpected
Another bashism. Policy violation in section 10.4. Severity "serious", but trival to fix. I thought we had managed to get rid of all unnecessary bashisms. Any Debian Developer should use e.g. dash as /bin/sh to avoid these bugs. It's faster, and bugs triggered by that are rare. Speaking of cryptmount: Dear Lazyweb, how do I get pmount/gnome ask for the luks passphrase using a graphical prompt? Right now, if Gnome tries to automount the encrypted drive, the password will be asked on some /dev/null device and pmount will hang.

Next.

Previous.