Search Results: "ag"

27 July 2006

Erich Schubert: Gentle introduction to SELinux

I've been working on some introductory slides on SELinux. They're still far from finished. All I've written so far is some basic terminology, identities, roles, types. I also tried to show how this increases security, though that part is probably still hard to understand unless you know about common attack vectors. I havn't yet written about the actual policy, policy modules, all the fancy UI stuff available, reachability analysis etc. I probably will not do so: The goal of the slides is not to give an exact overview over how SELinux works, how to write good policy etc. I also don't claim to have all facts right - instead I want to provide an easy to understand overview over how SELinux works and why it is a good thing. I guess I won't even be flaming AppArmor. ;-) Thats why I picked the name "gentle introduction to SELinux". Remember, it's just a work in progress, "the best is yet to come". I really need your feedback (and encouragement -- there is still so much to be written). Get the slides as PDF here. Feedback is best via email -- erich AT debian DOT org. I intentionally do not have comments in my blog.

26 July 2006

Andree Leidenfrost: The best way to find out whether a bug is gone...

...is to close the bug report and to see what happens. Or so it seems:

I decided to finally close #291975 last week after having been unable to reproduce the problem for some months. I've done this once before about a year ago but the issue resurfaced straight after. :-( (I have filed #290722 and later #351367 in regards to this.)

Anyway. A few days after having closed the bug report for the second time, version 0.52.2-5.1of libnewt0.52 is released and brings the problem back again - I've filed a new bug for this: #379938. (Maybe I should have just updated #351367 instead, but then again the issue is so very clearly tied to version 0.52.2-5.1 of libnewt0.52 - and also, I'm sure Alastair will merge as required.)

In light of this, becoming superstitious looks like a viable option...

Evan Prodromou: 8 Thermidor CCXIV

Yesterday was such an insanely long day -- we woke up in a tent, had breakfast over a Treo, then released a lot of software and went to sleep in the middle of the night. It seemed like 4 days, not 1. And this morning I had to take our new mini-SUV into the shop for its first maintenance checkup. For the last 6 years, I've driven a beautiful old wp:Citro n DS station wagon, but around the time Amita June was born I decided I wanted her to learn to drive on it. Maj and I decided that that meant it had to be taken care of a little better, so I put it in storage and we bought at 2005 Hyundai Tucson. (The Hyundai people here in Quebec pronounce it like "Tux-awn", to our endless amusement.) It's weird having a new car -- like, newer than 1972. Parts are not only plentiful but inexpensive. There is a selection of multiple mechanics in my major metropolitan area that can service the vehicle. And people don't point and wave when you're driving, or stop you on the street to tell you stories about how their grandfather used to drive one on their family farm. We'll be driving the car to wt:Boston next week for Wikimania 2006, so I'm glad it went to the shop. It should be in good shape for the drive -- I hope the rest of us are. tags:

Slides Speaking of Wikimania -- I'm nowhere near ready for my presentation. Jeez, how'd it get to be almost-August already? Thankfully, no one else I've talked to is really ready to talk, either... so at least I'm not the last one to get my homework done. tags:

Software The OpenID software I did for MediaWiki went out yesterday, and I got a lot of good feedback on it. OpenID requires that some state data is stored between participating servers, and the code I wrote uses the memcached client built into MediaWiki to store it. Not optimal but it works. Well, better today than yesterday, that is. There were some pretty gruesome bugs in the implementation that were only showing up for some exceptional circumstances. So I adapted the JanRain unit tests for the other storage classes to my Memcached class, and that helped a whole hell of a lot for debugging. Yay, unit testing! Some people are still having problems with the software, though. The main thing I've found is that the key-value pair output required by OpenID for its inter-server communications is sensitive to extra whitespace thrown in. Why would there be extra whitespace? I've found that a lot of PHP libraries have bits of whitespace at the end, after the closing ?>, and that will show up in the output. Whether it matters depends on how sensitive the output format is to whitespace. In the case of OpenID, the answer is: pretty sensitive. But I'm looking forward to having some more people try the OpenID MediaWiki extension out. tags:

Wikipedia's 25th of July Spot-on satire from The Onion: Wikipedia Celebrates 750 Years Of American Independence. I quote:
  • "On July 25, 1256, delegates gathered at Comerica Park to sign the Declaration Of Independence, which rejected the rule of the British over its 15 coastal North American colonies," reads an excerpt from the entry. "Little did such founding fathers as George Washington, George Jefferson, and ***ERIC IS A FAG*** know that their small, querulous republic would later become the most powerful and prosperous nation in history, the Unified States Of America."
Does the fact that I find an Onion article funny say more about my declining humor standards, or about their recent improvements? I don't know. tags:

Four ideas I was very interested to see Tim O'Reilly's Four Big Ideas About Open Source. I think that there are some fascinating developments over the last few years that have fallen under the rubric of wp:Web 2.0, and I think they affect those of us who put our hearts and minds into Open Source software. I think this was part of his keynote at OSCON 2006, which, y'know, I'm not techically at or anything. It briefly crossed my mind, but I've got too much to do for Thermidor and Fructidor to flit off to yet another conference -- this one only tangentially involved with what I do for a living. Still, it's interesting that Open Source software and Web services are crossing paths. FLOSS has been critical for making Web services possible, but taking that up to the meta-level and seeking the same freedoms from Web apps that you expect from "regular" software... that's a Moebius strip of rights right up in there. tags:

My life as a toolbar So, sometime in the last year I started installing Firefox toolbars. The main one that's useful to me is Chris Pederick's excellent Web Developer Extension, jam-packed with little tools that make my job as a developer that much easier. But I also install, well, pernicious toolbars. Judgemental toolbars. Toolbars that make me forget what really matters and turn the Web into a horserace or a highschool popularity contest. They're horrible, and they're addicting, and I can't stop using them. The Google Toolbar has some diddly little useless gadgets that I don't give a shit about, like searching my Gmail account for the given search terms (whoopee). What I loooove, though, is the wp:PageRank indicator. PageRank, of course, is the patented algorithm developed by Google founder Larry Page to estimate the importance of a page on the Web. It's incredibly accurate and valuable and though no longer the only criteria Google uses for ranking pages, it's still critical as a measure of the intrinsic value of a page. So, there's this little wp:progress bar on the Google Toolbar that shows the PageRank of any page you're looking at. It's an apparently logarithmic scale from 1-10, with the number showing up in a popup tooltip. Creative Commons? 9/10. Ted's story about the great worldwide race? 2/10. Technorati home page? 8/10. Male Secretary? 6/10. Wikitravel's France discussion? 3/10. And so on and so on. Even worse is the A9 Toolbar, which (again) has a whole bunch of bogus boring features, but also shows the Alexa ranking of any site you're looking at. Alexa ranking isn't some egghead hooty-tooty algorithm about the importance of a page -- it's a ranking on the Big Board of who's the most visited site in the world and who doesn't matter in the slightest. So, I can see that Flickr is ranked #41 today, le Sans Fil is #347,296, and wikiHow is #2248. Alexa is a lot more coarse-grained than Google's toolbar -- it measures the traffic to a given second-level-domain, not a particular URL. So any LiveJournal or Blogger site gets LJ's entire Alexa ranking -- not very useful. Still, I've taken to thinking almost entirely in terms of PageRank and Alexa rank. It's unreasonable. Every site I go to, my eye drifts up to my toolbars to confirm my idea about it. Do I really like Achewood? Sure, but it's only got an Alexa rank around 20,000... Doc Searls's blog has a PageRank of 8, which is really impressive; but... my page for 22 Prairial (Journal/22 Prairial CCXIV) apparently has the same PageRank. Holy moly! Why could that be? (I think it has something to do with the wp:Law of 22 Prairial, but I could be wrong.) Really, putting these numbers on everything is ruining the Web for me. It's turning me into a total jerk, too. I kinda want to go back to the time when I just found stuff on the Web and didn't think, "How do I measure up?" Thankfully the Yahoo Toolbar doesn't include anything remotely like rankings... just as well. Of course, that's the reason I uninstalled it, too. I can find my way to Yahoo! Canada Greetings just fine on my own if I need to. tags:

Miguel Gea: pbuilder / cowbuilder

Build package with pdebuild can be a slow pain... but cowbuilder package could be your aspirin:

With a simple package:

with cowbuilder:
pdebuild --pbuilder cowbuilder ----------> 54 sec.
without cowbuilder:
pdebuild                       ----------> 3 min. 8 sec.

Simon Richter: Data integrity versus expectation of privacy, technical solutions?

So again I shall invoke the lazyweb. This time it is about databases; specifically I want to store personal data on a machine that lets a select group of people access and modify it, and even more personal data on an office machine that is more guarded against the outside world (here's where stuff people do not consent to publishing but required internally ends up). Now I'd like to have a relational database that allows me to basically keep part of a table on one machine and part on the other, with "affinity" being determined by either a field in the record or referential integrity. Additionally, I'd like to have offline operation support and the ability to revert old commits, preferably with referential integrity being checked. I also want a pony.
It is pretty clear that the last requirement can be implemented on top of an SQL database with triggers with a special tool; what I'm interested in would be whether there is some framework for that already, or whether I have to do that myself.

Enrico Zini: Eight day in Addis

Useful things to keep in mind when setting up a service:
  • always take note of what you do
  • make yourself always able to explain to another person what you did
  • keep a copy of the configuration files before changing them, so that you can see what you changed
  • be always able to move the service to another computer
  • make sure that it works after reboot
Example use of vim block selection:
ESC
exits insert mode.
^V
starts block selection. Move the arrows to form a rectangle.
c
change. Type the new content for the line.
ESC
gets out of insert mode, and the change will happen in all the lines.
To change network configuration with config files, edit:
/etc/network/interfaces
To also setup DNS in /etc/network/interfaces, use dns-search and dns-nameservers (for this to work, you need to have the package resolvconf):
dns-search dream.edu.et
dns-nameservers 192.168.0.1 192.168.0.2
To make a router that connects to the internet on demand using a modem:
apt-get install diald
To see the path of network packets:
mtr 4.2.2.2
Basic NAT script:
OUT=eth2
IN=eth0
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o $OUT -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
What happens at system startup:
  1. the BIOS loads and runs the boot loader
  2. the boot loader loads the kernel and the inintrd ramdisk and runs the kernel
  3. the kernel runs the script 'init' in the initrd ramdisk
  4. the script 'init' mounts the root directory
  5. the script 'init' runs the command /sbin/init in the new root directory
  6. 'init' starts the system with the configuration in /etc/inittab
To install a new startup script:
sudo ln -s /usr/local/sbin/firewall /etc/init.d
sudo update-rc.d firewall defaults 16 75
Normally you can just do:
sudo update-rc.d [servicename] defaults
To have a look at the start and stop order numbers, look at /etc/rc2.d for other start scripts and /etc/rc0.d for other stop scripts To test a proxy, low level way:
$ telnet proxy 8080
Trying 192.168.0.6...
Connected to proxy.dream.edu.et.
Escape character is '^]'.
GET http://www.google.com HTTP/1.0 [press enter twice]

Steve Kemp: I can taste more than feel

I’m resisting the temptation to tell people to use real words when they make posts to mailing lists like this:
If u get full debian disk(2 DVDs), u can install them(binary & source) … U can choose fast mirrors to ur computer, & here is the list.
I appreciate that English is not the first language for everybody, but reading things like that just makes me want to slap people. In other news I’m enjoying work a lot this week. Compared to last week having multiple distractions this week I’ve been left alone/undisturbed enough to create code and design things is a lot of fun. I couldn’t do it non-stop, which is why I sysadmin instead of work as a developer, but I do enjoy coding. On a related note today somebody mailed me a patch to get my lua networking extension to build upon MingW which was a pleasant suprise.

Benjamin Seidenberg: Quoted in the paper

One of my former teachers told a reporter from the local paper that I had just gotten back from Israel and he called me to set up an interview to get my views on the recent conflict. I met with him monday, and the story is now in print. I haven’t seen where in the physical paper it is, but it’s position on the webpage suggests it’s a front-page story. It’s available online here: The Pilot: War Zone: Local Residents Flee Mideast.

Otavio Salvador: Splashy uploaded to unstable

Today I did an upload of Splashy to unstable. That means that it should be available in Etch. I would like to reask to anyone interested to help us to improve the Debian theme since I would like to make it default in package. If anyone is interested to help, contact me. Thanks to Guillem by uploading the new and fixed version of directfb to unstable :-)

Marc 'Zugschlus' Haber: How to install -dbg packages for dependencies?

To debug a ksynaptics crash, I need to install -dbg packages for all dependencies of ksynaptics. We do not have a tool for automatically doing so, right? If I am right, the following scriptlet seems to do the trick.
#!/bin/bash
set -e
PARENT=“$1”
DBGPACKAGES=“”
for package in $(debfoster -d $PARENT   tail -n +2); do
  for source in $(grep-available --no-field-names --field=Package: $package --show-field Source); do
    DBGPACKAGES=“$DBGPACKAGES $(grep-available --no-field-names --field=Source: $source --show-field Package  
grep -- ‘-dbg$’   true)”
  done
done
echo $DBGPACKAGES
I am open for suggestions.

Julien Danjou: The new DeFuBu contest

Dumb bugHey, I'm sure you're wondering what DeFuBu is, aren't you? That's the Debian Funniest Bug contest! This is a new monthly contest which consists to choose the more fun bug. How to win? Simply drop me an email with the bug number. I will maintain a list of candidats. Then, a selected and feed jury will choose the best of them.
If the bug you reported win, you and the reporter will win something like your weight in Ubuntu CD or the right to write my new book, Debian for dummies. For example, I give you a bug reported by Florent Bayle, #355455, which the first candidate for July. PS: Please note that I do this for fun, not for raising personnal attacks ;-) PS2: This challenge has been renamed to DeFuBu to avoid some misunderstanding on its leitmotiv.

Jaldhar Vyas: You're Out of Touch; I'm Out of Time

John Goerzen professes not to understand the apparent inconsistencies in the Presidents positions on life issues. While I can't speak for him, I am as near to a "typical Republican" as you are likely to get around these parts and although I'm busy with other things I feel compelled to explain how they are in fact consistent.

The foundation is a belief in the innate dignity and right to life of Man simply by virtue of being a member of the human species. Therefore the default position in any case should be to protect against the unnecessary taking of life whenever there is a choice in the matter. Therefore abortion is wrong precisely it is as its defenders say a "choice." Stem cell research is also wrong on these grounds but as a clump of cells is not clearly a human being you can agree to disagree on that. Those who do think it is wrong should not be forced to participate in murder which is why the government is against Federal funding of embryonic stem cell research not against the practice altogether. (Also remember there are other sources of stem cells.)

The innate dignity of a person can be made forfeit by an act of will on the part of that person. Thus a murderer has no right to life, by his personal actions he has surrendered it. If fetuses started leaping out of vaginas and attacking people, they would forfeit their right to life too but they don't.

What John conspicuously fails to mention concerning the 30,000 Iraq civilian deaths is how they died and who killed them. In the vast majority of the cases it is at the hands of those who putatively were on their own side. So how is Bush or America morally culpable? In the few cases where Americans have deliberately caused civilian deaths, they have been punished for it. But where is the outrage when terrorists do not wear uniforms and deliberately hide amongst civilians and in religious sites? (May I note that such behavior is against the Geneva convention and UN resolutions though I'm aware such things only apply to Israel.) It is the Baath party and Al-Qaeda have right to life issues concerning the war in Iraq not the US.

You can disagree with any of these positions--even from a conservative or Republican point of view but my point is they are consistent. And I daresay being easier to understand, they resonate more strongly with the electorate than the muddled messages of the Democrats.

Hall and Oates in '08!

John Goerzen: First steps with cfengine

This afternoon I started looking at cfengine. In very little time, I've already set up rules that can bring a system from pretty much cdebootstrap state up to a minimal production system in our environment. I've still got a little ways to go, but it's already hacking on /etc/hosts, hosts.deny, sources.list, installing appropriate Debian packages for our systems, etc.

It's come a long way since I last looked at it six years ago.

One thing I can't figure out...

I have a /etc/bacula/bacula-fd.conf file that contains, among other things, this:


Director
Name = backup-dir
Password = "foo"


Director
Name = backup-mon
Password = "bar"
Monitor = yes



I can't figure out how to make cfengine delete just that second section. I tried this:


BeginGroupIfLineMatching " name = .+-mon"
IncrementPointer "-1"
DeleteToLineMatching "\ "
DeleteNLines "1"
EndGroup


But it seems that the pointer is never actually being decremented, even when examined under verbose mode. That is, it leaves the leading "Director " line in the file.

25 July 2006

Benjamin Seidenberg: New Box

So I’m planning a new box for college, and have come up with a tentative parts list. I am soliciting any advice and comments that people would be willing to offer. CPU: AMD Athlon 64 X2 3800+ Manchester 2000MHz HT 2 x 512KB L2 Cache Socket 939 Dual Core Processor - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16819103562
$169 (This was $289 2 days ago when I was pricing it - sweet) Motherboard: ASUS A8N5X Socket 939 NVIDIA nForce4 ATX AMD Motherboard - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16813131569
$84.99 RAM: CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16820145587
$207.00 Video: eVGA 256-P2-N553-AX Geforce 7600GT CO 256MB 128-bit GDDR3 PCI Express x16 Video Card - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16814130283
$169.99 (Before $30 mail-in rebate) Hard Drives: I was originally planning on doing 3 Western Digital Caviar SE16 WD2500KS 250GB 7200 RPM 16MB Cache SATA 3.0Gb/s Hard Drive - OEM (http://www.newegg.com/Product/Product.asp?Item=N82E16822144701, $82.99) in a RAID-5 (software) configuration but there is currently a sale on the Seagate Barracuda 7200.10 ST3320620AS (Perpendicular Recording Technology) 320GB 7200 RPM 16MB Cache SATA 3.0Gb/s Hard Drive - OEM (http://www.newegg.com/Product/Product.asp?Item=N82E16822148140) for $99.99 and I might just order three today. Enclosure/Power: Antec LifeStyle SONATA II Piano Black Steel ATX Mid Tower Computer Case 450Watt SmartPower 2.0 ATX 12V V2.0 for AMD & Intel systems Power Supply - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16811129155
$104.99 (But that’s a one-day sale price, I think it’s like $109.99 normally, though this is the 2nd day in a row it’s had a one-day sale. Both before $15 mail-in rebate). Optical Drive: Reusing my Sony DVD Burner from my current box. Not including shipping or rebates, the total price comes out as: $1035.94 Advice, comments, etc. are most definitely welcome as I don’t follow the hardware market.

Riku Voipio: Dear lazyweb..

Relatively simple task - given a pid, find out if it is in the same chroot as you. Until now we simply used the following code, which would error out if the given pid was not in chroot like us:

readlink /proc/$pid/root

All good things end up eventually, this time with the soon to come out 2.6.18 Linux kernel release. A recent commit changes the permissions of symlinks in /proc, (not only /proc/$pid/fd like it would seem from the commit message). Using ptrace as security policy is not a bad idea. If you can access the information via ptrace, hiding it from /proc made little sense. Which leads to the scary observation that one can ptrace any process with same UID outside your chroot sandbox. This is not a security bug, since one can escape chroot anyway. I just hadn't realized *HOW* easy it was.

Back to the topic, using /proc/$pid/root was not a standard or even documented interface, so I can hardly complain. I'm still left without a proper replacement:

So what AM I supposed to use?

Evan Prodromou: 7 Thermidor CCXIV

We had a great trip out to Park de la Yamaska and Mount Orford this weekend. Sure, it rained a couple of hours each night, so we had some wet mornings, but if you have a good tent and some half-decent rain clothes it's really not that big a deal. Park de la Yamaska is one of the closest Quebec parks to Montreal, and it borders a reservoir, so we thought it would be kind of boring. Not at all -- nice big beach, huge pine forests, lots of space for camping and a lot of trails. It was a contrast to the Fraser sector of Mount Orford that we slept at last night -- much smaller, denser deciduous forest, and the lake's beach, although really nice, was a long walk from our camp. Amita June, it turns out, is one great camper. She loves the trees and the flowers and going in the lakes. She's been really good about sleeping on the big air mattress we have, and playing in her playpen, and riding in the car. Probably going to the beach 2-3 times a day is sufficiently tiring that she doesn't have time to fuss, but I have to admit that eating pasta with her next to a campfire last night really impressed me. She's a real outdoors girl. We woke up to rain this morning, so we packed the car in a hurry and ran off to wt:Magog for breakfast instead of cooking for ourselves. As soon as we got in cell-phone range, I started getting alerts about Wikitravel -- messages from admins and notifications from the servers. Turns out our /var/ device got too full and the monitoring tool didn't detect it, so no PHP sessions were getting created. Maj and Amita June were really tolerant of my Treo-hacking over breakfast at Restaurant Jack-o -- the admins at IB and I were able to identify and correct the problem pretty quickly once we realized what was going on. It kind of put me off ever going camping again, though... I think our servers have put some sort of GPS tracking device on my person, and go kablooie as soon as they see I'm out of cell range. tags:

OpenID extension released So, I got around to checking in the OpenID extension for MediaWiki that I've been working on. It's in the extensions section of the MW Subversion repository; the code's visible here for Web-viewing pleasure. tags:

Wikimania is a-comin' Maj, Amita June and I are heading down to wt:Cambridge (Massachusetts) next week for Wikimania 2006. Wikimania is the world-wide Wikimedia conference, but it's also become a real magnet for ideas and projects that are related, like other wiki projects, open content, and community collaboration. As a member of the MediaWiki dev team, I'd probably go anyways, but I think it's a good opportunity to meet people and talk about wikis and travel, too. I'll be doing a lot of hacking at the Hacking Days pre-event, which I think will be pretty fun. From what I hear, there are a lot of cool features coming down the pike for MW over the next few months, and people really want to unveil them at Hacking Days. I'll have the OpenID extension under my arm, but I'll be curious to see what else is coming up. I'll be giving a talk about Wiki and open content travel guides: past, present, future, in a session with Jack Herrick of WikiHow. Jack's a great guy and WikiHow is an exceptional project -- I think it should be a lot of fun. Mostly I hope we get our Cambridge travel guide in shape for the conference. I think it'll be a great resource for wiki people going to the event. tags:

Neil McGovern: Another package that should be released with etch

After the annoucement of a pending release of etch, I feel it's vital that Neil Fraser's software must included with it.

Julien Danjou: DeDuBu contest #1

Bug Welcome to this 1st issue of DeDuBu contest, the monthly championship of the dumbest bug reported to the Debian BTS. The challengers How the vote has been done Five Debian related people voted for these bugs: Pierre Habouzit, Pierre Machard, Julien Louis, Mohammed Adn ne Trojette and Julien Cristau. Full ranking Bugs Challengers The winners About DeDuBu

Holger Levsen: oh memory

I just came back from buying a pack of floppies and a multimedia-card. The 10 floppies were 3 euros, the mmc 12e, but it also has 40 times the capacity. Almost twenty years ago (in 1987 or 88) I bought my first pack of 3.5 inch floppies, for 80 marks, thats 40 euros now, but taking the inflation etc. into account I would say it's more like 80e nowadays. Whatever. I surely hope not to buy floppies ever again. But somehow I doubt it...

On a related silly note, a month ago I drove 240km to get hold of an oldworld G3 mac, to test d-i on it. I wiped the machine but kept its name,

Alexander Schmehl: AMD bought ATI

Adrian von Bidder asked that question on debian-curiosa and stated he would like to see it on planet, but for technical reasons hasn't his blog there: I just read that AMD bought ATI. Is AMD better in terms of Linux support than ATI? Does anybody have contacts inside AMD or ATI who might be able to influence management to change the policy wrt open source graphics drivers now that the company has changed hands? Feel free to join the discussion on the list.

Next.

Previous.