Search Results: "erich"

14 May 2006

Erich Schubert: Google catching up with backlog?

Judging from the Google alerts I've been receiving recently, Google is heavily catching up with updating their index. The alerts I receive are approximately a week old pages (Planet Debian changes quickly, the blog posting just "found" by google is already gone for approximately a week, the blog posting is exactly ten days old. In April, I received around 1 alert every 5 days; now it's one each day.

12 May 2006

Erich Schubert: A bug in the UML 2.0 OCL spec?

I think I've found a bug in the UML 2.0 OCL spec. It's actually a well-known issue for C++, documented e.g. in the C++ FAQ. It's not so obvious in Java, since Java didn't have Templates for a long time. The UML 2.0 OCL spec says on page A-22, Definition A.27 (Type Hierarchy)
If t' ≤ t then Set(t') ≤ Set(t)
With ≤ having the meaning "conforms to" for types.
[Update: newer UML 2.0 OCL document, the latest I could find, page 38 still says the same] Any good C++ programmer should know that this doesn't work. From the C++ FAQ "Is a parking-lot-of-Car a kind-of parking-lot-of-Vehicle?":
"A Bag-of-Apple is not a kind-of Bag-of-Fruit." If a Bag-of-Apple could be passed as a Bag-of-Fruit, someone could put a Banana into the Bag, even though it is supposed to only contain Apples!
Note that the converse, Set(t) ≤ Set(t'), also doesn't hold. While you can put Apples into a Bag-of-Fruit just fine, you may still find a Banana in there. This has an obvious reason: when passing data to the object it can be "downcasted", and when retrieving data it can be "downcasted", too. But it can never be upcasted. This should occur in OCL, too. A "Set(Apple)" doesn't conform to "Set(Fruit)" by the usual interpretations that I can call "put(Banana)" on any "Set(Fruit)"! Can anyone enlight me, if this really is a bug in the OCL spec, maybe has already been corrected, or if there is some magic in OCLs definition of "conforms to" or interfaces that solves this problem? (Yes, I think there might be something in OCL that solves this problem, for example if this hierarchy is only used in condition checking, then in fact all operations are "get" operations... but I've just started reading on OCL, I don't know much about its expressiveness yet...) [Update: Onne Gorter has some good thoughts on this. He basically notes that this is not a problem if you don't have any references to the "uncasted" list. For example if the cast is a function like in a functional language that actually returns a new set. I'll have to consider this for OCL, but given that OCL and UML are somewhat designed for Java - and Java suffers from this problem, too - I'm not so sure about it.]

Christian Perrier: Bad Windows admins more harmful than Windows

Erich, Windows is very often harmful but, moreover, bad Windows admins are even more harmful. What you reported is indeed a wrong setup for the Windows Automatic Update feature. This feature allows to automagically apply security updates to Windows machines (and everyone with a working brain certainly agree that this is mandatory and one should not rely on users for this). This is a very well documented feature and admins can set it up to avoid the behaviour you reported (allow users to delay automatic reboots or even never reboot). It just needs Windows admins to actually *read* documentation and understand it. *This* is where the Windows world sucks. Windows admins able to do this are a very rare resource. Update: and the location of nearly all stuff in Windows is known by the system, configurable and easy to access (well, registry...:-)...also system variables, though). Again, I know about 10% of Windows admin who really know how the location of the system files can be deduced safely. Bashing Windoze is certainly worth it but I really suggest doing it with the correct arguments and, indeed, when really knowing the system. In short, it's way better to really know what you're talking about. After all, I have very often heard that Unix systems suck because you never know where things are (/opt, /usr/local, /etc, /foo, /bar)...while we both know that only bad Unix systems administered by bad Unix admins suck this way...

Erich Schubert: Web DNS admin

Since I couldn't find an appropriate tool, I wrote it myself (to be put somewhere soon): a web frontend to update a bind nameserver without needing to go through the hassle of parsing zonefiles, reloading the nameserver and such. How it works: it just uses the NSupdate functionality included with Bind. It's public key crypto, and all the code is already in bind and probably audited quite well. And the web frontend can run on the admin web box, properly firewalled off. With that tool I can easily change the DNS zones on my SELinux boxes, without having to fight with allowing a web server on that box to read and write bind files and reloading the bind service. IMHO this solution is a lot cleaner: just tell the changes via UDP port 53 to the name server and let it do the actual job himself. The "dynamic" zonefiles - those bind may write to - live in a separate dir (and separate SELinux file context) and with the extra SELinux protection, privilege escalation of bind is really unlikely. (The web interface is really basic though - it doesn't do many syntax checks. So you should have sufficient DNS knowledge before using it, but thats a good idea anyway. There is a couple of stuff you can break with DNS, you know?)

Erich Schubert: Windows is fragmented, Linux is not

Actually, all the Linux systems are very much alike. The libs are in /usr/lib, the bigger apps in /usr/bin, only the core system utilities in /bin and so on. Everything has it's place, and with the LSB that is pretty well defined. And it's not just the kernel and a text editor, this applies to most of your system. Including three office packages, a couple web browsers, a dozen IM applications and so on. Windows however is very fragmented. Well, not really fragmented, because no two Windows systems are alike. On some systems it's "C:\Program Files", others use "C:\Programme", maybe a dozen other translations. I've seen apps using "C:\Progra~1" which works with both of above path names, at least on FAT, due to the old 8+3 filename restriction. So I don't know about NTFS. This makes supporting Windows a PITA. You can test something on all your Windows boxes, and it just won't work on the first clients box you need to run it on. Happens all the time. Not to mention surprises with actually different Windows versions. Thats what I love with OpenSource, Linux and Debian. You just "apt-get install lyx" and you end up with a complete, working LaTeX and LyX environment on your system within minutes. Completely hassle free. The amount of "third party software" shipped with Linux is it's biggest strength. Everything is there, and it'll just work and still not really make your system different from anybody elses. Even across distributions. I have an Ubuntu workstation at one institute at the university. The CS computer lab is all OpenSuSE currently. But I don't need to care. It works just like my system. I google how to change to page ordering when printing PDF slides 4-up, and it just works.

Erich Schubert: Hello you lucky DebConf/DebCamp attendees!

I envy you. I would have liked to attend, and I already had to pass last year. I had expected to be in the middle of my finals by now, but it'll actually be another month. But I have most of my dates now, at least. Also I'm such a cheapskate, flying over the ocean to attend a conference is a bit out of my league. Guess I need to find a sponsor for such things. Just like I could use a build and test machine for my SELinux work and for backporting (I have four pbuilder setups on my laptop), maybe with an UML or Xen virtualization setup for easier and faster testing. Well, I may dream, okay? ;-) My favourite DebCamp postings so far:
no nude swimming pool use (wear at least an Ipod!) SCNR. As for the Google Summer Of Code: we've received lots of applications, I think somewhere in the 80s. Some pretty bogus (some don't even have a title), but also very cool ones. A dozen duplicate proposals, too. I think our "favourites" list is around 20, but I don't expect Google will sponsor this many, and we also need enough mentors.

Erich Schubert: Windows is not userfriendly. It's annoying.

I today witnessed yet another Windows presentation disaster. Well, the presentation itself was good and well done (using latex-beamer). But Windows continuously sabotaged the presentation. Every 5 Minutes, Windows announced that it's going to reboot soon, because it has installed some upgrades, and gave the presenter a 5 minute countdown that he could only postpone, but not disable until the presentation was over. It was really annoying to have this stupid "Hey, I've installed a security upgrade, I'll reboot in 5 minutes to complete that installation" pop up again and again and again during the presentation... check out this report of this 'nag until the user restarts' functionality in windows Windows is Nagware. I wonder when Microsoft will add a function that pops up in the middle of any PowerPoint presentation if it thinks your copy is pirated and tell your audience you're a dumbass.

11 May 2006

Erich Schubert: Is Google in solar energy?

Look at this chart comparing the stock value of Google and Phoenix Sonnenstrom, a German solar power company, with good news every few months. Yeah, just kidding. Still interesting to see them behave this similar on overall, and some contrary movements where Phoenix bobs up just as much as Google dips, and then meet again. How much does it says about a company to have higher value growth than Google (in a 2 year period) without being publicly hyped like Google was? I guess it was a very good choice to invest into solar energy.

Erich Schubert: Autologout in Logout dialog

Because I'm currently seeing a forgotten logout screen, and have witnessed that a dozen of times now, with both GNOME and KDE (and Windows I think, too; but I rarely witness anyone using Windows...): Please make the logout dialog automatically logout. People tend to click on "Logout", and forget about the usual "do you really want to logout, or maybe shutdown, or maybe reboot, or maybe ..." dialog pretty much any operating system has. I've never heard of anyone forgetting to pick "cancel" in that dialog, so I think you could safely default to the "logout" option after a timeout of 60 seconds or so. Just make it not leave computers unprotected (a screensaver will NOT activate!) for a long time just because people forget to logout twice.

Erich Schubert: Texas backwards.

When you play this song backwards, do you get "I don't want a friend, I just need a lover"? That's how I feel every so often. I have so many close dear friends, I'd trade them in 10:1 for my true love... I'm heading towards my final exams - around one month to go - but I'm caring more about not having to wake up alone than about my finals. :-( I wish I would just be happy with the friends I have. That I go dancing with. That I chat with every day. That I can snuggle against. And then actually prepare for my finals.

10 May 2006

Erich Schubert: Best-of: dance moves

Hilarious movie on YouTube: the evolution of dance by Judson Laippy. Excellent performance. (If you don't like YouTube because of Flash, you can grab an as much proprietary .wmv at cartoonland) It's worth the 6 minutes of playback time. He doesn't live up to the title - the theme "evolution of dance" is lost quickly, and becomes a general mocking of all famous dance moves, though.

9 May 2006

Erich Schubert: Bladenight - ouch...

Yesterday, I went to the Munich Bladenight... 20000 people (excellent weather) on a 20km track through the city filling major roads. (picture gallery, though mostly of the gettogether before the start) I didn't blade much recently - I went to only one Bladenight last year, and that probably was only a 15km track, since I was in the US and Canada until mid August. So it probably was a bad idea to start with this 20km long track... at least my feet think so - they're still aching. Interestingly, it was worst when walking after the bladenight. Everything was okay while blading... And biking was much better than walking afterwards - you don't have your full weight on you feet when biking. Anyway, if the weather is good next week, I'll be going again. The north route due next week is just 15km.

5 May 2006

Erich Schubert: More on your Google SoC applications

I'd just like to point out that using Debian is not sufficient for sending us your application. Apparently some projects were submitted with minimal wording changes to Debian, Python, Postgres, Gentoo and Apache. If you send us your project, it should have some extra relationship to our project... it should be something our users or our community needs and that is somehow related to Debian. There is nothing wrong with being useable by other projects as well, but the relationship to Debian needs to be a bit more than just "Debian is my favourite distro." For example the SELinux policy module dependency handling is obviously something all distributions would like to have to ease installation. But when integrated with some nice magic of autoselecting policy modules based on the Debian packages installed: go for it. I've been asked about details on the Debtags SoC ideas. Here are some mails for you to read:

4 May 2006

Erich Schubert: Removing unused software

Another suggestion for a Google SoC project: semi-automatic removal of unused software. Installing extra software is very very easy with Debian. However, you'll just fill up your harddrive, and actually keep lots of software around you actually do not use. It would be nice to have a tool (maybe functioning similar to popcon?) that monitors (e.g. via atime) which applications you actually use, and suggest others for deinstallation. Of course handling dependencies right (i.e. if you chose to install the GNOME meta package, it shouldn't suggest to remove standard parts of GNOME even if you don't use them). Well, I don't know what others think, but I would like to see that done, and I can imagine this being an interesting SoC project. So go for it!

Erich Schubert: Google alerts broken

Google alerts, which are email notification on new sites being added to the google index for a certain query, broke these days. Seems like they just "upgraded" their software. The alerts are still sent, however they list web pages that don't match the query. For example, my alert on "layered-subversion svn" just turned up some generic hits with "svn" "subversion" and "layered" in them. A pity. I really liked this function, but it's not too useful anymore now. I hope they fix that again. [Update May/5: todays alert mails had only correct results.] It's also a shame that there are some restrictions with google on combining e.g. site: and link: matches. Especially with negative prefix... For example I'd like to see all links to my homepage, but not those from my blog. You can do that with Altavista, MSN search, for example. Exalead also gives much more valueable search results than Google...

Erich Schubert: Today is ℕ-day.

Sometime tonight, your clock (date "+%H:%m:%S %d.%m.%y") will read
01:02:03 04.05.06
Yay. ℕ-day, the day of natural numbers!

Erich Schubert: On system init

I've been investigating alternative system inits from time to time the last few years. With the advent of bootchart, there was quite a hype around improving boot times with parallelization and such. Recently this topic has manifested itself in the initscripts-ng group on alioth, and some to-be Google Summer of Code projects. I've been using a modified version of minit for a long time, just lately I was to lazy and switched back to regular init. Since I use suspend2, I don't really reboot my system often anyway. However, minit has more features than being parallel and small. It offers service monitoring and respawning. Which brings me to something missing totally from current linux init systems: service state tracking. Right now, when you start a service, e.g. the web server, you pretty much hope it will never die. Agreed, apache does a good job here. Others may or may not. Mysql uses a really hackish shell script to respawn. And then there are of course tools like monit that check your services and respawn them when needed. There are a couple of things wrong with starting services via SysVInit style scripts from the shell. For example, in order to start a service you need root rights. And then this will "leak" file descriptors from your shell to the daemon (thats why some apps need to be started with "nohup"). Which also causes extra errors with SELinux, for example. And this is just one of the differences from services being started by manually running their init script from the script being run by runlevel changes. Therefore, I think we should move to a new init that can offer full state tracking for services, and is actually used for all services (and not just initial start and getty respawning...) Here's a fairly extensive state diagram I came up with:
state model for sysvinit Some features I'd like to have in a new init: Sorry, no comments on my blog, intentionally. Please use the initscripts-ng mailing list for discussion, thats what the list is for!

3 May 2006

Erich Schubert: SELinux and Google Summer of Code

If you are interested in doing a SELinux related project during the Google Summer of Code, you can submit it to Debian, if it's somehow Debian related. It would be nice to get some extra tools (e.g. dependency handling, module autodetection) via the Google Summer of Code.

Erich Schubert: Google Summer of Code application phase

If you're interested in the Google Summer of Code: the application phase is open. Submit your proposals now. Some notes: So far, I havn't seen an application to any of my suggested projects (LaySVN, SELinux, Debtags AI Tagger, Debtags database). So if you're interested, go for it!

27 April 2006

Erich Schubert: AppArmor receiving it's share of critique

By finally coming forward and "applying" for inclusion into the mainline kernel, AppArmor finally has to face critique on it's approach. And it seems that it's being beaten up quite a bit. I don't think there is anything in AppArmor that you can't do with SELinux just as good (Yes, SELinux does use labeled files to work around the hardlink issues, but guess how these labels are assigned initially? By pathname. If you have a hard link with two different labels, only one of them will stick.). You can in fact "learn" your SELinux policies just like AppArmor. That's called audit2allow, and it is frowned upon for good reasons, and only considered to be okay for interim solutions. There are also tools in development to produce meaningful policies, that is where SELinux really sets itself apart from AppArmor. In AppArmor, you specify for each "confined" application which files it access (and which capabilities), usually by learning these. On SELinux, you basically divide your system into meaningful parts (e.g. logfiles, user mail, user web files) and then specify which kind of access an application is to be granted. This manual part, deciding which access is allowed, is a big feature. Apparently the AppArmor thunderbird policy has "learned" the setuid permission for thunderbird, which I consider a very bad idea. You can't just learn everything while application may have bugs (or workarounds, or security nets - e.g. it might try to setuid and quit if it succeeds!). And despite some claims, SELinux does not require you to have a policy for everything on your system. Only in "strict" policy, whereas if you use "targeted" policy, you'll have a so called "unconfined" domain, too. The AppArmor approach reminds me a lot of what grsecurity 1.x ACLs were doing, back with some 2.4.x kernel. It never worked too well for me, that's why I can't say much about newer grsecurity versions... but to me, grsecurity sounds a lot better than AppArmor. Much more mature.

Next.

Previous.