The theory versus the practice of "static websites"
A while back I read Wesley Aptekar-Cassels' There is no such thingas a static website ( via ) andhad some hard to articulate feelings about it. As I read thatarticle, Aptekar-Cassels argues that there is less difference betweenstatic and dynamic websites because on the one hand, a static websiteis more dynamic and complicated than it looks, and on the other hand,it's easier than ever before to build and operate a dynamic web site.
This is the kind of article that makes
Some notes on errno when tracing Linux kernel system call results
Suppose, not entirely hypothetically, that you want to print outsome information about every fcntl() lock call that fails, system-wide. These days this is relatively easy to dowith bpftrace , especiallysince there are system call entry and exit tracepoints .However, you might reasonably wonder how the fcntl(2) system callactually returns errno , the error code, and how this manifestsat the level of the sys_exit_fcntl syscalls tracepoint. As itturns out, there's some tribal knowledge
Two views of security and vulnerability scanners
In my entry on how web server should refuse requests for randomURLs , I mentioned that wehave an open source security and vulnerability scanner. Among thereactions I saw to that entry was people who felt that such scannersare basically a bad idea, and in thinking about the issue I'vedecided that I can see two views of such scanners.
Some people have a heavily controlled and locked down environment.They know every machine on the network and every service that'ssupposed to be running on every machine,
How I move URLs between browsers in my Unix desktop environment
When I wrote about how blocking JavaScript by default is not aneasy path , I mentioned this:
I also have a bunch of magic things in my personal desktop environmentthat make it relatively easy to start with a link or URL from onebrowser [the one with JavaScript off] and open it in the other [the onewith JavaScript on].
Recently poebbel (in a comment) askedhow this works. While I've mentioned the various pieces in variousarticles, I've never put the picture together
Notes on Linux's /proc/locks and NFS v4 locks as of Ubuntu 22.04
Now that I've tried out NFS v4 on Ubuntu 22.04 ,I have some additional notes on NFS v4 locks and /proc/locks, to go with my earlier notes on NFS (v3) locks . It turns outthat there are some changes from NFS v3 to NFS v4, at least on your NFSserver.
Here is what an exclusive POSIX lock looks like on an Ubuntu 22.04NFS v4 server:
4: POSIX ADVISORY WRITE 7
Polymorphism and other important aspects of inheritance
Over on the Fediverse, I had a hot take :
My hot take on inheritance in programming languagesis that it's a good thing to separate polymorphism , codereuse, and relationships between types. Also, the really importantthing is polymorphism.
(We can see that polymorphism is the most important from how large Ccodebases keep re-inventing systems to create it.)
This was in fact too much of a hot take, because I left out somethingthat's sufficiently important that it keeps being reinvented.
The HTTP status code for a web server's default "hello" front page
In a comment on my entry on how web servers shouldn't give HTTP 200results for random URLs , Jonathan reported something that I find fascinating:
This reminds me of a personal bugbear with the RHEL httpd package,which is the inverse situation: OOTB it’s configured to serve a“hello” page on / via an error handler, so you get an error codefor a success.
I personally find this fascinating and can't really vote againstit (in contrast to Jonathan ). To
Our experience with nftables and 'iptables' on Ubuntu 22.04
A while back I wrote about how I'd now used nftables on a newmachine and it was okay . This came aboutbecause Ubuntu 22.04's default setup is that the 'iptables' commandis actually a frontend for nftables , andwhen I noticed that I decided that I might as well write nftablesrules directly for this. Today I had cause to remember this , and also toreflect on our other uses of nftables on Ubuntu 22.04. These otheruses came about
Basic NFS v4 seems to just work (so far) on Ubuntu 22.04
I've been saying grumpy things about NFS v4 for a fairly long timenow, and in response for a while people have been telling me thatthese days NFS v4 can look basically just like NFS v3. You can haveyour traditional Unix permissions model (the NFS without Kerberosone ) and you don't have to reorganizeyour exports and so on. Recently I decided to give it a try on somescratch virtual machines running our standard Ubuntu 22.04 LTSsetup, and to
The mere 'presence' of an URL on a web server is not a good signal
There are a variety of situations where you (in the sense of programsand systems) want to know if a web server supports something or isunder someone's control. One traditional way is to require thepublication of specific URLs on the web server, often URLs withpartially random names. The simplest way to implement this is tosimply require the URL to exist and be accessible, which is to saythat fetching it returns a HTTP 200 response. However, in lightof web server implementations which will