Search Results: "tb"

3 October 2006

Steve McIntyre: BSP Marathon - Utrecht, 30 Sep - 01 Oct 2006

Last weekend, Jeroen van Wolffelaar and Thijs Kinkhorst organised a BSP at Utrecht University. I went along for a couple of reasons: I met up with Hanna Ollila at Schiphol Airport late on Friday evening, and we took the train down to Utrecht together. We found Jeroen and some others at the station and went straight on to a party in the middle of town for a few hours. Then after just a few hours' sleep we headed into the University to get breakfast and start squashing bugs. A group of about a dozen people turned up that day - mainly a mixture of Dutch DDs and other locals.

BSP I took a look at a couple of bugs initially on Saturday: #387419 and #387498. Unfortunately, the first (kdepim FTBFS on alpha) was difficult to reproduce - the alpha machine I had available for testing was too short on memory and took a very long time to build kdepim, long enough that after 2 days I gave up. I couldn't reproduce the latter (system() hanging when running on mips) on any machine I had access to - it looks like more work is needed there... In parallel with those two RC bugs (found on Andreas' great summary page at http://bts.turmzimmer.net/details.php), I also had a very productive session working in parallel with Christian Perrier, fixing translation/i18n bugs in one of my own packages, CVS. Thanks Christian, you're a pleasure to work with! On Saturday evening, the gang of us headed into the centre of Utrecht for a nice meal, some beer and some spirited conversation at a Greek restaurant. I took the opportunity to talk with Frans Pop about some of the remaining work needed for d-i and debian-cd. On Sunday, the work continued. I was still waiting on feedback on #387498 and my build of #387419, so I decided to make the most of the uninterrupted time to get some debian-cd development work done. I'm still hoping to get multi-arch CDs working before we release etch, so this was a great help. In fact, I got so engrossed in this that I managed to work straight through dinner...! In terms of bugs, I must admit that I didn't do much in terms of reducing absolute numbers. This weekend, there were a lot of bugs in categories that don't really work well for Bug Squashing: licensing/legal bugs (which really need discussion with the maintainer), newly-opened bugs (IMHO it's a little rude to NMU a package when a bug has only just been opened - give the maintainer at least a couple of days to respond!) and deep bugs where intimate knowledge of the package is needed. I expect there will be more to work on next weekend in Zurich, if nothing else some of those "new" bugs will have aged. Early on Monday morning I caught the bus from near Jeroen's apartment to start the journey home. Thanks to the nice reliable public transport, I got all the way to Schiphol well in time. Then my flight back to Stansted was delayed... :-( It was great to meet up with a bunch of enthusiastic people. Some I'd met before (Frans, Jeroen, Hanna). Some I met for the first time (Thijs, Bas, Moritz and others). But all of them were working hard, wanting to help get Etch out on time. Let's keep up the good work! I have a small number of photos online.

Matthew Garrett

Joey:

I reduced my involvement in Debian because of, well, posts like this and this. When given the choice between working on something where technical issues matter and one where people will spend most of their time trying to score political points using inaccurate or misleading information[1] or just making assertions about people's motivations[2], the one where I don't bleed out of my eyes is going to win.

For what it's worth, one of the reasons I got a previous job was that I was a Debian developer and part of my job involved ensuring that our product was packaged and maintained in Debian. Had I lost the ability to do that, it's entirely likely that I wouldn't have had my contract renewed. I'll await my retroactive internment in the reeducation camps.

OH GOD WASN'T I SUPPOSED TO HAVE STOPPED CARING ABOUT THIS STUFF?

[1] Joss: compiz is dual GPL/MIT. The maintainer is well within his rights to chose to distribute the package purely under the GPL, and could easily argue that the Debian modifications to the package are GPL only. NEW has never been a FIFO, and sexy packages have often passed through more quickly. New upload in FTBFS shock? FILM AT GODDAMNED 11.

[2] Not sure if this is true, but Joey hates on AJ because he was abused by an Australian circus clown when he was 20. I've no evidence whatsoever to justify that statement, but it suits my argument to make it anyway.

Andreas Barth: git-archive of userdir-ldap

Yesterday, I converted the cvs-directory of userdir-ldap to git, and put it online at http://db.turmzimmer.net/git/ud-ldap/trunk/. I also put into the git-tree the changes we are using for the turmzimmer.net/ftbfs.de/ftwca.de-setup, they are available at http://db.turmzimmer.net/git/ud-ldap/turmzimmer/. Of course, the canonical location of userdir-ldap is still at cvs.debian.org, but I'll merge any changes from there into the trunk-git-tree (if everything works with git, that is).

2 October 2006

Russell Coker: Ruxcon and SLUG

This weekend I was in Sydney for Ruxcon. Ruxcon is a computer security conference with a focus on penetration testing and related skills.

The presentation on Unusual Bugs by Ilya van Sprudel was particularly interesting. He spoke about a number of issues that could do with some improvement in Linux, I will file some bug reports shortly.

There was a chilli eating contest. I was one of six people to enter. I survived the first two rounds and got onto the middle-strength chilli before giving up. There were 100 tickets to the Google party for the ~200 person conference and everyone who entered a contest got a ticket. My aim in the contest was to eat more chilli than I enjoy eating but less than the amount required to make me sick, with a secondary goal of tasting at least the second level of chilli. I achieved my goals and left the contest after tasting the second chilli.

One man appeared to be impressed by my chilli eating and was telling everyone that I am famous for eating chilli. It's good to be famous for something in the computer security community. :-#

At the end of the conference there was a panel discussion that I was invited to attend. I had to leave early to catch my flight, at the time I left everyone who was on the panel had each finished a few drinks and a couple of new guys had just joined. I think I missed the most exciting part of the panel discussion.

Thanks to whoever paid for the drinks for panel members. Things were a little hectic when we were given the drinks and I forgot to thank whoever paid for them.

In other news Sydney trains are slow and unreasonably expensive, $13 to get from the airport to the SLUG meeting at St. Leonards seems excessive. With all the problems with Sydney roads they really need to get a better public transport system!

While in Sydney I attended a SLUG meeting and gave a short talk about Postal (my mail server benchmark suite). I will present a paper about Postal at the OSDC conference later this year.

Gunnar Wolf: Race condition found!

Less than one year ago, I had had enough. At over 135 Kg, not having done any kind of excercise or diet for too many years, I was on a very sorry shape - and although thankfully I have never had any important illness, I don't want to bet my life on luck alone. So, by November (to be exact, on the same week Nadezhda and I had our wedding), I joined my University's obesity, overweight and sedentarism program - Of course, ready to admit defeat.
Over the last year, however, my life has changed completely - Many of you have congratulated me in person or electronically. Thank you very much. It has surely been a tough job - And I intend to follow on it!
As of my last measurement, I was weighing 100.2 Kg, finally under the obesity treshold for -probably- the first time since high school. I am having my excercise hour every morning - and, unbelievably, I enjoy it. And yes, many among you have witnessed me and Nadezhda jogging, talking about our training, or whatnot.
I remember probably in May or June 2005, chatting with Jordi, I was trying to talk him into travelling for Debconf5 to Finland. He was unsure, as he wanted to train for a triathlon - And, half-joking but half-serious, I questioned whether he would rank sports even close to Debian work. Surprise, surprise: He did. Of course, he later decided to go to Debconf, but anyway :)
...Ok, this post is all in the past. What now about me? Why am I writing what you all already know? Simple: I found myself in a race condition. Yesterday, September 30, Nadezhda and I took part of the annual UNAM nocturnal race. How was it? Delicious. 8Km, starting next to UNAM's 1968 Olympics Stadium, going up towards the San Jer nimo exit, then back down across Insurgentes, past the swimming pool, the Architecture faculty and IIMAS, then up by Engineering, Accounting and Social Work. Under Insurgentes again, up past the Biomedical, Ecology and Biology institutes, next to the Botanical garden, then by the sports fields where we work out every day, and down to the stadium - To finish with a very emotive, really inspiring, really great last run inside the 1968 Olympics Stadium. I made a 53 minutes time, averaging 156 heartbeats per minute (quite high but not completely off for me). Of course, we got our souvenir T-shirts, and... Man, sign me up for the next one! :D

1 October 2006

Junichi Uekawa: Playing still with apt-listbugs.

After the hacking sessions, I have versioning support into apt-listbugs.There are two problems; amount of memory consumed, and speed.Soap4r memory consumption is pretty bad; it consumes like500MB when it receives bug information via SOAP when I do apt-getdist-upgrade.Also, the speed of comparing versions stems from having to fork dpkg every time version comparison happens.

29 September 2006

Russell Coker: SAK, ctrl-alt-del, and Linux keyboard mapping

A common problem with Linux systems is when Windows users press CTRL-ALT-DEL at the login prompt and reboot the machine.

To fix this some people change the ^ca line in /etc/inittab to just disable the reboot function. However this is not desirable because sometimes you want to reboot a machine with a simple keypress.

Another problem that has not been widely considered is the use of fake login prompts by attackers. This can be implemented in either text mode or graphics mode. All the fake login prompt has to do is display something that looks like a real login prompt, accept a user-name and password, verify the password (a localhost ssh connection is a good way of doing this) and then abort. In the case of a text-mode login the user will think that they entered the wrong password, in the case of a GUI login via an XDM program the user will think that the login program just crashed. Then the attacker has access to their account.

The solution to the fake-login problem is the use of the Secure Attention Keyboard (SAK) feature. When invoked this feature makes the kernel kill all processes that are on the virtual console in question. If you make CTRL-ALT-DEL the SAK combination then pressing those keys will cause the kernel to kill any processes that are attached to the current virtual console and preventing the ability of hostile programs to forge a login prompt (which is the same as it's purpose in Windows).

The next thing to do is to make another combination used for system boot. A reasonable combination seems to be CTRL-ALT-BREAK as those keys are widely separated and the combination is not used for anything else.

If you put the following in a file named sak.map (or whatever you want to call it) then the command loadkeys sak.map will apply the change. Note that when creating a keyboard map you should do it on a machine for which you don't mind being forced to perform a hardware reboot. It's easy to make a mistake and give yourself a keyboard mapping that is not usable. Another possibility is to do such testing on a machine that allows ssh logins, you can then login via ssh and run loadkeys -d to correct any errors you might make.

control alt keycode 119 = Boot
control alt keycode 83 = SAK
control alt keycode 111 = SAK
control altgr keycode 119 = Boot
control altgr keycode 83 = SAK
control altgr keycode 111 = SAK

Note that the above covers both ALT and ALT-Gr keys as well as the numeric keypad and regular versions of the delete key.

dumpkeys -l gives you a list of all possible keyboard combinations. showkey will display the number matching any key you press and will exit after 10 seconds of inactivity.

27 September 2006

Russell Coker: tcpdump and ps

Today I was doing some network tracing and figured out how to track the start and end of TCP connections. The following tcpdump command will get all SYN, FIN, and RST packets on port 80 and all ICMP packets:

tcpdump -i bond0 -n "port 80 and tcp[tcpflags] & (tcp-syn tcp-fin tcp-rst) != 0 or icmp"

Also recently I was tracking down some minor security issues related to programs that call setuid() to drop privs but never call setgid() and therefore always run with GID==0 which gives them a lot of access to the system. The following ps command gives the real, effective, saved, and filesystem UIDs and GIDs mapped to names. Note that with some versions of ps different fields have different truncation lengths.

ps -eo pid,user,euser,suser,fuser,group,egroup,sgroup,fgroup,comm

The next thing I have to do is to patch PS to show the supplementary groups.

26 September 2006

Junichi Uekawa: SOAP interface for apt-listbugs.

It is now deployed. Package already uploaded to unstable, and waiting in incoming right now.Please try out.The logic hasn't changed much, but the information retrievalbackend is completely different and uses SOAP BTS interface.

Junichi Uekawa: apt-listbugs change hits unstable, and merkel.

Looking at merkel.debian.org logs, the result of 24-hours after release of apt-listbugs is obvious.There are around 16000 HTTP GETs generated by apt-listbugs, from 700 unique IPs. It's surprising to see that many people are running unstable and using apt-listbugs and updated the package overnight.For db-h .status files, one HTTP GET is required for each bug ID, which means it will require about 10 status files per system.We will see how it compares with a single SOAP request per system.I am now waiting for bugs.debian.org reconfiguration to happen.

25 September 2006

Russell Coker: Ethernet bonding

Bonding is one of the terms used to describe multiple Ethernet cables used to form a single virtual network link. This can be done for performance or reliability.

Bonding for performance used to be common when 100baseT was the fastest network technology that was commonly available. In 1999 servers could usually sustain considerably more than 10MB/s so a single 100baseT network interface was a performance bottleneck. At that time I worked with Cisco switches and Solaris machines that had up to four 100baseT links bonded for performance.

Nowadays Gigabit Ethernet is commonly available, most laptops have Gigabit Ethernet on the motherboard. Gigabit PCI cards are as cheap as $35, and Gigabit switches can be purchased for as little as $139. Server hardware is a little more expensive, but it's still quite cheap and commonly available.

Most people don't need more than Gigabit speed, in fact most systems can not saturate a Gigabit link due to poor application design, a slow operating system, or slow disks used to provide the data. So at this time there is little speed for bonded Gigabit networking for performance.

There is still the issue of reliability. Often you want to have two ethernet cards and cables configured so that if one breaks the network won't go down.

One annoying thing about bonding in Linux (in 2.6.x kernels) is that the module has to be loaded separately for each bond interface, and the parameters for an interface can't be changed without unloading and loading the driver (very painful if you log in to the machine via ssh over the bonded interface to do sys-admin work).

The parameters I have in /etc/modprobe.conf for bonding are:

alias bond0 bonding
options bond0 mode=1 arp_interval=500 arp_ip_target=192.168.0.1

This means that if there is no traffic on the link then every 500ms an ARP request will be sent for the address 127.128.129.130 (I used the address of my router but substituted a different value for this blog entry). An ARP request for a machine on the local LAN is a request that will always be satisfied if the machine in question and the network link are working.

The idea is that you have two switches and every computer that matters has two ethernet ports. If one port stops working (broken Ethernet card, cable, or router) then the other takes over.

The special file /proc/net/bonding/bond0 can be used to view the current configuration of the bond0 device.

Below are sample configuration files for Fedora and Red Hat Enterprise Linux to configure bonding:


/etc/sysconfig/networking/devices/ifcfg-bond0:
DEVICE=bond0
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=static
# GATEWAY should be the IP address to ARP ping
GATEWAY=192.168.0.1
TYPE=Ethernet

/etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
SLAVE=yes
MASTER=bond0
TYPE=Ethernet

/etc/sysconfig/networking/devices/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
SLAVE=yes
MASTER=bond0
TYPE=Ethernet


Note that there is nothing preventing you from having more than two devices bonded together for reliability, but I doubt that you really need that.

Russell Coker: quotes

At http://www.infodrom.org/Infodrom/fortunes/download/infodrom-linux there are a heap of quotes from Debian people, and more than a few from me. It's strange reading my own writing in someone else's quote file. Some things seem so removed from context that there is little point to them. For some things I couldn't even remember writing them and had to ask google. There were some things which seemed wrong, but google showed list aschives proving the quote file to be correct.

Also when googling my quotes I found that I had written an amusing and apparently quotable flame to someone who was far from the top of the list of deserving recipients of flames.

For anyone who reads the quotes, the Double Woody refers to Balvenie Double-Wood Scotch whisky. When Debian Woody was first released I would regularly bring a bottle of the Double Wood to Debian meetings.

Evan Prodromou: CCXIV

Flor al CCXIV
PriDuoTriQuaQuiSexSepOctNonD c
12345678910
11121314151617181920
21222324252627282930
Prairial CCXIV
PriDuoTriQuaQuiSexSepOctNonD c
12345678910
11121314151617181920
21222324252627282930
Messidor CCXIV
PriDuoTriQuaQuiSexSepOctNonD c
12345678910
11121314151617181920
21222324252627282930
Thermidor CCXIV
PriDuoTriQuaQuiSexSepOctNonD c
12345678910
11121314151617181920
21222324252627282930
Fructidor CCXIV
PriDuoTriQuaQuiSexSepOctNonD c
12345678910
11121314151617181920
21222324252627282930
Sans-culottides:

24 September 2006

Junichi Uekawa: I now have a local version that works with SOAP.

apt-listbugs can query bugs.donarmstrong.com for bug details.It's not released, yet.

23 September 2006

Martin F. Krafft: Swiss drumming

My percussionist's heart really jumped high here in Switzerland when I saw this (Flash video; no alternate formats, sorry). NP: Porcupine Tree / Lightbulb Sun

Junichi Uekawa: Using soap in ruby.

In hacking apt-listbugs and getting something usable out ofdebian.org machines, and to fight against the inertia of notallowing direct access to db-h, I decided to give theSOAPbackend a try.Apart from the problem of non-existing documentation and non-functional implementation,with much help from Don Armstrong, I got something working.Due to the fact that only one HTTP request is required for obtaining the bunch of bug reports, it might be actually suited for apt-listbugs. I'm a bit worried about the load, tho'.soap4r was also very much painful to work with, with its lack of useful documentation.

Matt Brown: FreeRadius patch superfluous

Yesterday’s patch for FreeRadius turns out to be superfluous, as the functionality is already present, its just undocumented! I submitted the patch to the FreeRadius bug tracking system (#392) and got back a quick reply from Alan DeKok saying the following:
It isn’t well documented, but it’s already supported, via the
EAP-TLS-Require-Client-Cert attribute. This allows you to have
the cert requirement on a per-realm, or per-user basis.
Oh well, at least the patch didn’t take too long to write! I had seen the code that handles the EAP-TLS-Require-Client-Cert attribute, but I couldn’t find any references to it elsewhere in the daemon, so I assumed it was a fragment that was unused and ignored it. Moral of the story: Assume less and spend more time understand the code you’re patching!

22 September 2006

Scott James Remnant: Upstart in Universe

upstart is a replacement for the init daemon, the process spawned by the kernel that is responsible for starting, supervising and stopping all other processes on the system. The existing daemon is based on the one found in UNIX System V, and is thus known as sysvinit. It separates jobs into different “run levels” and can either run a job when particular run levels are entered (e.g. /etc/init.d/rc 2) or continually during a particular run level (e.g. /sbin/getty). The /etc/init.d/rc script is also based on the System V one (and is in the sysv-rc package), it simply executes the stop then start scripts found in /etc/rcN.d (where N is the run level) in numerical order. Why change it? Running a fixed set of scripts, one after the other, in a particular order has served us reasonably well until now. However as Linux has got better and better at dealing with modern computing (arguably Linux’s removable device support is better than Windows’ now) this approach has begun to have problems. The old approach works as long as you can guarantee when in the boot sequence things are available, so you can place your init script after that point and know that it will work. Typical ordering requirements are: This worked ten years ago, why doesn’t it work now? The simple answer is that our computer has become far more flexible: We’ve been able to hack the existing system to make much of this possible, however the result is chock-full of race conditions and bugs. It was time to design a new system that can cope with all of these things without any problems. What we needed was an init system that could dynamically order the start up sequence based on the configuration and hardware found as it went along. Design of upstart upstart is an event-based init daemon; events generated by the system cause jobs to be started and running jobs to be stopped. Events can include things such as: In fact, any process on the system may send events to the init daemon over its control socket (subject to security restrictions, of course) so there is no limit. Each job has a life-cycle which is shown in the graph below: The two states shown in red (“waiting” and “running”) are rest states, normally we expect the job to remain in these states until an event comes in, at which point we need to take actual to get the job into the next state. The other states are temporary states; these allow a job to run shell script to prepare for the job itself to be run (“starting”) and clean up afterwards (“stopping”). For services that should be respawned if they terminate before an event that stops them is received, they may run shell script before the process is started again (“respawning”). Jobs leave a state because the process associated with them terminates (or gets killed) and move to the next appropriate state, following the green arrow if the job is to be started or the red arrow if it is to be stopped. When a script returns a non-zero exit status, or is killed, the job will always be stoped. When the main process terminates and the job should not be respawned, the job will also always be stopped. As already covered, events generated by the init daemon or received from other processes cause jobs to be started or stopped; also manual requests to start or stop a job may be received. The communication between the init daemon and other processes is bi-directional, so the status of jobs may be queries and even changes of state to all jobs be received. How does it differ from launchd? launchd is the replacement init system used in MacOS X developed as an “Open Source” project by Apple. For much of its life so far, the licence has actually been entirely non-free and thus it has only become recently interesting with the licence change. Much of the goal of both systems appears initially to be the same; they both start jobs based on system events, however the launchd system severly limits the events to only the following: Therefore it does not actually allow us to directly solve the problems we currently have; we couldn’t mount filesystems once the “filesystem checked” event has been recived, we couldn’t check filesystems when the block device is added and we certainly couldn’t start daemons once the complete filesystem (as described by /etc/fstab) is available and writable. The launchd model expects the job to “sit and wait” if it is unable to start, rather than provide a mechanism for the job to only be started when it doesn’t need to wait. Jobs that need /usr to be mounted would need to spin in a loop waiting for /usr to be available before continuing (or use a file in a tmpfs to indicate it’s available, and use that modification as the event). This is not especially surprising given that Apple have a high degree of control over both their hardware and the actual underlying operating system; they don’t need to deal with the wide array of different configurations that we have in the Linux world. Had the licence been sufficiently free at the point we began development of our own system, we would probably have extended launchd rather than implement our own. At the point Apple changed the licence, our own system was already more suitable for our purposes. How does it differ from initng? Initng by Jimmy Wennlund is another replacement init daemon intended to replace the sysvinit system used by Linux. It is a dependency-based system, where upstart is an event-based system. The notion of a dependency-based system is interesting to talk about at this point. Jobs declare dependencies on other jobs that need to happen before the job itself can be started. Starting the job causes its dependencies to be started first, and their dependencies, and so on. When jobs are stopped, if running jobs have no dependencies, they themselves can be stopped. It’s a neat solution to the problem of ordering a fixed boot sequence and the problem of keeping the number of running processes to a minimum needed. However this means that you need to have goals in mind when you boot the system, you need to have decided that you want gdm to be started in order for it, and its dependencies, to be started. Initng uses run levels to ensure this happens, where a run level is a list of goal jobs that should be running in that run level. It’s also not clear how the dependencies interact with the different types of job, a dependency on Apache would need the daemon to be running where a dependency on “checkroot” would need the script to have finished running. Upstart handles this by using different events (“apache running” vs. “checkroot stopping”). Again while interesting, Initng does not solve the problems that we wanted to solve. It can reorder a fixed set of jobs, but cannot dynamically determine the set of jobs needed for that particular boot. A typical example would be that if the only dependency on the job that configures networking is the mount network filesystems job, then should that job fail or notbe a goal (e.g. because there are no network filesystems to be mounted) the result is that network devices themselves will not be configured. You could make everything a goal, and just use the dependencies to determine the order, however this is less efficient than just ordering the existing sysv-rc scripts (which can be done at install time). Another example is that often you simply don’t know whether something is a dependency or not without reading other configuration, for example the mount network filesystems may be a dependency of everything under /usr or may just be a dependency of anything allowing the user to login if it just mounts /home. The difference in model can be summed up as “initng starts with a list of goals and works out how to get there, upstart starts with nothing and finds out where it gets to.” How does it differ from Solaris SMF? SMF is another approach to replacing init developed by Sun for the Solaris operating system. Like initng it’s a dependency-based system, so see above for the differences between those systems and upstart. SMF’s main focus is serive management; making sure that once services are running, they stay running, and allowing the system administrator to query and modify the states of jobs on the system. Upstart provides the same set of functionality in this regard, services are respawned when they fail and system administrators can at any time query the state of running services and adjust the state to their liking. Will it replace cron, inetd, etc? The goal of upstart is to replace those daemons, so that there is only one place (/etc/event.d) where system administrators need to configure when and how jobs should be run. In fact, the goal is that upstart should also replace the “run event scripts” functionality of any daemon on the system. Daemons such as acpid, apmd and Network Manager would send events to init instead of running scripts themselves with their own perculiar configuration and semantics. A system administrator who only wanted a particular daemon to be run while the computer was on AC power would simply need to edit /etc/event.d/daemon and change “on startup” to “on ac power”. What about compatibility? There’s a lot of systems administrators out there who have learned how Linux works already and will not want to learn again immediately, there’s also a large number of books that cover the existing software and won’t cover upstart for at least a couple of years. For this reason, compatibility is very important. upstart will continue to run the existing scripts for the forseeable future so that packages will not need to be updated until the author wants. Compatibility command-line tools that behave like their existing equivalents will also be implemented, a system administrator would never need to know that crontab -e is actually changing upstart jobs. Does it use D-BUS?
“To D-BUS people, every problem seems like a D-BUS problem.” —Erik Troan
The UNIX philosophy is that something should do just one job, and do it very well. upstart’s one job is starting, supervising and stopping other jobs; D-BUS’s one job is passing messages between other jobs. D-BUS does provide a mechanism for services to be activated when the first message is sent to them, thereby starting other jobs. Some people have taken this idea and extended it to suggest that all a replacement init system need do is register jobs with D-BUS and turn booting into a simple matter of message parsing. This seems wrong to me, D-BUS would need to be extended to supervise these services, provide means for them to be restarted and stopped; as well as deal with being process #1 which means cleaning up after children whose parent’s have died, etc. It seems far simpler to arrange for D-BUS to send an event to init when it needs a service to be started, and focus on being a very good message passing system. The IPC mechanism used by upstart is not currently D-BUS because of various problems, however it’s always been expected that even if init itself doesn’t communicate with D-BUS directly, there would be a D-BUS proxy that would ensure messages about all init jobs and events would be given to D-BUS and D-BUS clients could send messages to init to query and change the state of jobs. What is the implementation plan? Because this is process #1 we are changing, we want to make sure that we get it right. Therefore instead of releasing a fully-featured daemon and configuration to the world, we’re developing it in the following stages:
  1. Principal development; at the end of this stage the daemon has been implemented and can manage jobs as described.
  2. Replacement of /sbin/init while running the existing sysv-rc scripts. This is the shake-down test of the daemon, can it perform the same job as the existing sysvinit daemon without any regressions?
  3. /etc/rcS.d scripts replaced by upstart jobs. These consitute the majority of tasks for booting the system into at least single-user mode, and contain many of the current ordering problems and race conditions. If the daemon solves the problems here, it will be a success.
  4. Other daemon’s scripts replaced by upstart jobs on a package-by-package basis; this will be an ongoing effort during which upstart will continue running the existing sysv-rc scripts as well as its own jobs. During this time the event system may be tweaked to ensure it truly solves the problems we need.
  5. Replcement of cron, atd, anacron and inetd. This will happen alongside the above and result in a single place to configure system jobs.
  6. Modification of other daemons and processes to send events to init instead of trying to run things themselves.
The current plan is that we will be at least part of the way into stage #3 by the time edgy is released, with that release shipping with upstart as the init daemon and the most critical rcS scripts being run by it to correct the major problems For edgy+1 we hope to have completed stage #5 and be at least part of the way into the implementation of stage #6. From the start of development of edgy+2, no new packages will be accepted unless they provide upstart jobs instead of init scripts and init scripts will be considered deprecated. What state is it in now? The init daemon has been written and is able to manage jobs as described above, receiving events on the control socket to start and stop them. This has now been uploaded to the Ubuntu universe component in the upstart package for testing before it becomes the init daemon. We welcome any experienced users who want to help test this; install the package and follow the instructions in /usr/share/doc/upstart/README.Debian to add a boot option that will use upstart instead of init. If your system boots and shut downs normally (other than a slightly more verbose boot without usplash running) then it is working correctly. Other types of events will be added as required during development and testing. Currently only a basic client tool (initctl) has been written, compatibility tools such as shutdown will be written over the next week or two before it replaces our sysvinit package.

Matt Brown: Requiring client certificates for EAP-TTLS with FreeRadius

For the project that I’m dealing with at work I wanted to be able to authenticate devices in a two stage process. Stage 1 should authenticate the device to the network (via an x509 certificate) and then Stage 2 should authenticate the user who possesses the device with a username and password. Unfortunately none of the methods shipped by default with FreeRadius will support this sort of configuration. A quick skim through the FreeRadius source code revealed that it wouldn’t be too hard to add support for requiring client certificates with EAP-TTLS and EAP-PEAP. The following patch adds a new configuration option to the tls section of eap.conf which if set to true will require the client to present a certificate before authentication will succeed. Example eap.conf
eap  
                default_eap_type = ttls
                timer_expire     = 60
                ignore_unknown_eap_types = no
                cisco_accounting_username_bug = no
                md5  
                 
                tls  
                        private_key_file = $ raddbdir /certs/radius.key
                        certificate_file = $ raddbdir /certs/radius.pem
                        CA_file = $ raddbdir /certs/cacert.pem
                        dh_file = $ raddbdir /certs/dh
                        random_file = $ raddbdir /certs/random
                        # This is the new option
                        # If set to no, or missing, client certificates are
                        # not required for EAP-TTLS or EAP-PEAP
                        require_client_cert = yes
                  
                 ttls  
                        default_eap_type = md5
                 
         

21 September 2006

Russell Coker: more on vision

I had a few comments on my last so I decided to write a new post about it.

Firstly in regard to Elspeth's comment. I agree that children should wear glasses if necessary. That part of my entry was not clear, I was trying to make the point that I can understand children not wanting to wear glasses because they think it's uncool. But adults should make decisions on more important things such as what is best for their eyes. There are real reasons for needing eye surgery, if without glasses your vision is so bad that you are legally blind then an ophthalmologist may recommend surgery for that. In cases of extreme vision problems apparently a combination of surgery and glasses is required for good results. I also think it makes sense for people who need surgery for their work, for example athletes such as Tiger Woods. Looking cool is not a real reason for surgery, especially not for the small increment of coolness that some people believe is associated with not wearing glasses.

All operations involve some risk. Risk to your vision is not worth a small amount of convenience and possibly looking cool. Besides, it's widely regarded that people with glasses are more intelligent! ;)

Shintaro mentioned that there is a risk of retinal damage from being short-sighted. What I want to know is whether the risk of that can be alleviated if you wear glasses all the time? If you wear your glasses everywhere except in bed, in the shower, and in the sento, does that stop this problem? Maybe I should try and wear my glasses for more than the ~15 hours a day that I currently do.

Finally an anonymous poster noted that they didn't know anyone else who had an optical migraine. My ophthalmologist mentioned that it's rare to have a migraine that only affects the vision and nothing else. I feel fortunate to have it like that, the list of other migraine symptoms sounds very unpleasant. Of course only having had it once I can't be sure that next time it will be the same. I might get the nasty symptoms next time. :(

However one problem with what I experienced is that it came on suddenly with no warning. It would be very unpleasant to suddenly lose central vision while driving (I would have to hope that the ability to react to objects without consciously noticing them works well). Fortunately I have only been driving about 300K per month in recent years and I can probably reduce this. So the chance of it happening while driving is quite small.

Next.

Previous.