Daniel Pocock: Free Real-Time Communications workshop in Manchester, 2 November
I guess that the time has finally come to admit that, as far as upstream development is concerned, the Geode X.Org driver is reaching retirement age:
Much as Laura and I might have enjoyed some sleep once we got on the train, Jacob and Oliver weren t having it. Way too much excitement was in the air. Jacob had his face pressed against the window much of the time, while Oliver was busy making snake trains from colored clay complete with eyes.
The boys were dressed up in their train hats and engineer overalls, and Jacob kept musing about what would happen if somebody got confused and thought that he was the real engineer. When an Amtrak employee played along with that later, he was quite thrilled!
We were late enough into Galesburg that we ate lunch in the dining car. A second meal there what fun! Here they are anxiously awaiting the announcement that the noon reservations could make their way to the dining car. Oh, and jockeying for position to see who would be first and get to do the all-important job of pushing the button to open the doors between train cars.
Even waiting for your food can be fun.
Upon arriving, we certainly couldn t leave the train station until our train did, even though it was raining.
Right next to the train station is the Discovery Depot Children s Museum. It was a perfect way to spend a few hours. Jacob really enjoyed the building wall, where you can assemble systems that use gravity (really a kinetic/potential energy experiment wall) to funnel rubber balls all over the place. He sticks out his tongue when he s really thinking. Fun to watch.
Meanwhile, Oliver had a great time with the air-powered tube system, complete with several valves that can launch things through a complicated maze of transparent tubes.
They both enjoyed pretending I was injured and giving me rides in the ambulance. I was diagnosed with all sorts of maladies a broken leg, broken nose. One time Jacob held up the pretend stethoscope to me, and I said ribbit. He said, Dad, you ve got a bad case of frog! You will be in the hospital 190 days! Later I would make up things like I think my gezotnix is all froibled and I was ordered to never leave the ambulance again. He told the story of this several times.
After the museum closed, we ate supper. Keep in mind the boys had been up since the middle of the night without sleeping and were still doing quite well! They did start to look a bit drowsy I thought Oliver was about to fall asleep, but then their food came. And at the hotel, they were perfectly happy to invent games involving jumping off the bed.
Saturday, we rode over to Peck Park. We had heard about this park from members of our church in Kansas, but oddly even the taxi drivers hadn t ever heard of it. It s well known as a good place to watch trains, as it has two active lines that cross each other at a rail bridge. And sure enough, in only a little while, we took in several trains.
The rest of that morning, we explored Galesburg. We visited an antique mall and museum, saw the square downtown, and checked out a few of the shops my favorite was the Stray Cat, featuring sort of a storefront version of Etsy with people selling art from recycled objects. But that wasn t really the boys thing, so we drifted out of there on our way to lunch at Baked, where we had some delicious deep-dish pizza.
After that, we still had some time to kill before getting back on the train. We discussed our options. And what do you know we ended up back at the children s museum. We stopped at a bakery to get the fixins for a light supper on the train, and ate a nice meal in the dining car once we got on. Then, this time, they actually slept.
Before long, it was 3AM again and time to get back off the train. Oliver was zonked out sleepy. Somehow I managed to get his coat and backpack on him despite him being totally limp, and carried him downstairs to get off the train. Pretty soon we walked to our car and drove home.
We tucked them in, and then finally tucked ourselves in. Sometimes being really tired is well worth it.
This is the second part in a series of articles about SRE, based on the talk I gave in the Romanian Association for Better Software.
On the first part, I introduced briefly what is SRE. Today, I present some concrete ways in which SRE tried to make things better, by stopping the war between developers and SysAdmins.
1 - SLO is what fraction of the time a service can fail without failing out
of the SLA. This is called an error budget, and you get to use it the way you
want it.
If the service is flaky (e.g. it fails consistently 1 of every 10000 requests),
most of that budget is just wasted and you won't have any margin for launching
riskier changes.
On the other hand, a stable service that does not eat the budget away gives you
the chance to bet part of it on releasing more often, and getting your new
features quicker to the user.
The moment the error budget is spent, no more launches are allowed until the
average goes back out of the red.
Once everyone can see how the service is performing against this agreed
contract, many of the traditional sources of conflict between development and
operations just disappear.
If the service is working as intended, then SRE does not need to interfere on
new feature launches: SRE trusts the developers' judgement. Instead of
stopping a launch because it seems risky or under-tested, there are hard
numbers that take the decisions for you.
Traditionally, Devs get frustrated when they want to release, but Ops won't
accept it. Ops thinks there will be problems, but it is difficult to back this
feeling with hard data. This fuels resentment and distrust, and management is
never pleased. Using error budgets based on already established SLAs means
there is nobody to get upset at: SRE does not need to play bad cop, and SWE is
free to innovate as much as they want, as long as things don't break.
At the same time, this provides a strong incentive for developers to avoid
risking their budget in poorly-prepared launches, to perform staged
deployments, and to make sure the error budget is not wasted by recurrent
issues.
What happened in the reproducible
builds effort this week:
Toolchain fixes
.deb in dpkg database. This follows the discussion that happened in June and is a pre-requisite to add checksums to .buildinfo files.
Niko Tyni identified why the Vala compiler would generate code in varying order. A better patch than his initial attempt still needs to be written.
Packages fixed
The following 15 packages became reproducible due to changes in their
build dependencies:
alt-ergo,
approx,
bin-prot,
caml2html,
coinst,
dokujclient,
libapreq2,
mwparserfromhell,
ocsigenserver,
python-cryptography,
python-watchdog,
slurm-llnl,
tyxml,
unison2.40.102,
yojson.
The following packages became reproducible after getting fixed:
reproducible-builds.org website.
Package reviews
44 reviews have been removed, 81 added and 48 updated this week.
Chris West and Chris Lamb identified 70 fail to build from source issues.
Misc.
h01ger presented the project in Mexico City at the 3er Congreso de Seguridad de la Informaci n where it became clear that we lack academic papers related to reproducible builds.
Bryan has been doing hard work to improve reproducibility for OpenWrt. He wrote a report linking to the patches and test results he published.
This article documents how the traffic of specific Linux processes can be subjected to a custom firewall or routing configuration, thanks to the magic of cgroups. We will use the Network classifier cgroup, which allows tagging the packets sent by specific processes.
To create the cgroup which will be used to identify the processes I added something like this to /etc/rc.local:
mkdir /sys/fs/cgroup/net_cls/unlocator /bin/echo 42 > /sys/fs/cgroup/net_cls/unlocator/net_cls.classid chown md: /sys/fs/cgroup/net_cls/unlocator/tasksThe
tasks file, which controls the membership of processes in a cgroup, is made writeable by my user: this way I can add new processes without becoming root. 42 is the arbitrary class identifier that the kernel will associate with the packets generated by the member processes.
A command like systemd-cgls /sys/fs/cgroup/net_cls/ can be used to explore which processes are in which cgroup.
I use a simple shell wrapper to start a shell or a new program as members of this cgroup:
#!/bin/sh -e CGROUP_NAME=unlocator if [ ! -d /sys/fs/cgroup/net_cls/$CGROUP_NAME/ ]; then echo "The $CGROUP_NAME net_cls cgroup does not exist!" >&2 exit 1 fi /bin/echo $$ > /sys/fs/cgroup/net_cls/$CGROUP_NAME/tasks if [ $# = 0 ]; then exec $ SHELL:-/bin/sh fi exec "$@"My first goal is to use a special name server for the DNS queries of some processes, thanks to a second dnsmasq process which acts as a caching forwarder.
/etc/dnsmasq2.conf:
port=5354 listen-address=127.0.0.1 bind-interfaces no-dhcp-interface=* no-hosts no-resolv server=185.37.37.37 server=185.37.37.185
/etc/systemd/system/dnsmasq2.service:
[Unit] Description=dnsmasq - Second instance Requires=network.target [Service] ExecStartPre=/usr/sbin/dnsmasq --test ExecStart=/usr/sbin/dnsmasq --keep-in-foreground --conf-file=/etc/dnsmasq2.conf ExecReload=/bin/kill -HUP $MAINPID PIDFile=/run/dnsmasq/dnsmasq.pid [Install] WantedBy=multi-user.targetDo not forget to enable the new service:
systemctl enable dnsmasq2 systemctl start dnsmasq2Since the cgroup match extension is not yet available in a released version of iptables, you will first need to build and install it manually:
git clone git://git.netfilter.org/iptables.git cd iptables ./autogen.sh ./configure make -k sudo cp extensions/libxt_cgroup.so /lib/xtables/ sudo chmod -x /lib/xtables/libxt_cgroup.soThe netfilter configuration required is very simple: all DNS traffic from the marked processes is redirected to the port of the local dnsmasq2:
iptables -t nat -A OUTPUT -m cgroup --cgroup 42 -p udp --dport 53 -j REDIRECT --to-ports 5354 iptables -t nat -A OUTPUT -m cgroup --cgroup 42 -p tcp --dport 53 -j REDIRECT --to-ports 5354For related reasons, I also need to disable IPv6 for these processes:
ip6tables -A OUTPUT -m cgroup --cgroup 42 -j REJECTI use a different cgroup to force some programs to use my office VPN by first setting a netfilter packet mark on their traffic:
iptables -t mangle -A OUTPUT -m cgroup --cgroup 43 -j MARK --set-mark 43The packet mark is then used to policy-route this traffic using a dedicate VRF, i.e. routing table 43:
ip rule add fwmark 43 table 43This VPN VRF just contains a default route for the VPN interface:
ip route add default dev tun0 table 43Depending on your local configuration it may be a good idea to also add to the VPN VRF the routes of your local interfaces:
ip route show scope link proto kernel \
xargs -I ROUTE ip route add ROUTE table 43
Since the source address selection happens before the traffic is diverted to the VPN, we also need to source-NAT to the VPN address the marked packets:
iptables -t nat -A POSTROUTING -m mark --mark 43 --out-interface tun0 -j MASQUERADE
sip0 is a GRE tunnel between the router and the colo box in Seattle, the payload of which is encapsulated as ipsec traffic before being transmitted over the Ubiquity equipment to the switch that the CenturyLink DSL modem attaches to. I don t get centurylink easter eggs in my search results when I use this interface.
eth9 is the local gigabit transceiver. Attached directly to a SIP phone which bridges to a gigabit switch, on which the Ubiquity equipment participates.
lo is the local loopback interface, of course. Good old 127/8
usb1 is the 100Mbit USB NIC to which the WRT54G with ssid colliertech.org is attached. The vast majority of the traffic originates on this interface.
cjac@wanjet1:~$ uptime
09:11:18 up 32 days, 18:33, 6 users, load average: 0.00, 0.01, 0.05
cjac@wanjet1:~$ sudo ifconfig
[sudo] password for cjac:
eth9 Link encap:Ethernet HWaddr 00:26:b9:e3:9b:47
inet addr:10.0.0.7 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::226:b9ff:fee3:9b47/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:176060020 errors:4 dropped:12 overruns:0 frame:2
TX packets:131573705 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:216753073131 (201.8 GiB) TX bytes:30777442696 (28.6 GiB)
Interrupt:20 Memory:f5400000-f5420000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3423 errors:0 dropped:0 overruns:0 frame:0
TX packets:3423 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:392714 (383.5 KiB) TX bytes:392714 (383.5 KiB)
sip0 Link encap:UNSPEC HWaddr 64-40-6A-02-30-30-3A-30-00-00-00-00-00-00-00-00
inet addr:100.64.107.2 P-t-P:100.64.107.1 Mask:255.255.255.252
inet6 addr: fe80::200:5efe:6440:6a02/64 Scope:Link
inet6 addr: 2607:ff08:f5:1338::6440:6b02/126 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1414 Metric:1
RX packets:468792 errors:0 dropped:0 overruns:0 frame:0
TX packets:297314 errors:30556 dropped:5 overruns:0 carrier:30549
collisions:0 txqueuelen:0
RX bytes:512744498 (488.9 MiB) TX bytes:21652345 (20.6 MiB)
usb1 Link encap:Ethernet HWaddr 40:3c:fc:01:35:a5
inet addr:172.16.67.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::423c:fcff:fe01:35a5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:131960908 errors:0 dropped:0 overruns:0 frame:0
TX packets:175522396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28447118558 (26.4 GiB) TX bytes:216131320364 (201.2 GiB)
$ ps p $$ -o pid=pid,comm=comm pid comm 31612 bashNext, the unusual output.
$ ps -p $$ -o pid=pid,comm=comm pid,comm=comm 31612The difference being the second we have -p not p. The second unexpected thing about this is, it was designed that way. Unix98 standard apparently permits this sort of craziness. To me it is a useless feature that will more likely than not confuse people. Within ps, depending on what sort of flags you start with, you use a sysv parser or a bsd parser. One of them triggered the Unix98 compatibility option while the other did not, hence the change in behavior. The next version of procps will ship with a ps that has the user-defined output format of the first example. I had a look at the latest standard, IEEE 1003.1-2013, doesn t seem to have anything like that in it. Short Month Length This one has got me stuck. A user has reported in issue #5 that when they use their locale columns such as start time get mis-aligned because their short month is longer than 3 characters. They also mention some other columns for memory etc are not long enough but that s a generic problem that is impossible to fix sensibly. OK, for the month problem the fix would be to know what the month length is and set the column width for those columns to that plus a bit more for the other fixed components, simple really. Except; how do you know for a specific locale what their short month length is? I always assumed it was three! I haven t found anything that has this information. Note, I m not looking for strlen() but some function that has the maximum length for short month names (e.g. Jan, Feb, Mar etc). This also got me thinking how safe some of those date to string functions are if you have a static buffer as the destination. It s not safe to assume they will be DD MMM YYYY because there might be more Ms. So if you know how to work out the short month name length, let me know!
TLDR: With the help of Helmut Grohne I finally figured out most of the bits
necessary to unshare everything without becoming root (though one might say
that this is still cheated because the suid root tools newuidmap and newgidmap
are used). I wrote a Perl script which documents how this is done in practice.
This script is nearly equivalent to using the existing commands lxc-usernsexec
[opts] -- unshare [opts] -- COMMAND except that these two together cannot be
used to mount a new proc. Apart from this problem, this Perl script might also
be useful by itself because it is architecture independent and easily
inspectable for the curious mind without resorting to sources.debian.net (it is
heavily documented at nearly 2 lines of comments per line of code on average).
It can be retrieved here at
https://gitlab.mister-muffin.de/josch/user-unshare/blob/master/user-unshare
Long story: Nearly two years after my last last rant about everything needing
superuser privileges in
Linux,
I'm still interested in techniques that let me do more things without becoming
root. Helmut Grohne had told me for a while about unshare(), or user namespaces
as the right way to have things like chroot without root. There are also
reports of LXC containers working without root privileges but they are hard to
come by. A couple of days ago I had some time again, so Helmut helped me to get
through the major blockers that were so far stopping me from using unshare in a
meaningful way without executing everything with sudo.
My main motivation at that point was to let dpkg-buildpackage when executed
by sbuild be run with an unshared network namespace and thus without network
access (except for the loopback interface) because like pbuilder I wanted
sbuild to enforce the rule not to access any remote resources during the build.
After several evenings of investigating and doctoring at the Perl script I
mentioned initially, I came to the conclusion that the only place that can
unshare the network namespace without disrupting anything is schroot itself.
This is because unsharing inside the chroot will fail because
dpkg-buildpackage is run with non-root privileges and thus the user namespace
has to be unshared. But this then will destroy all ownership information. But
even if that wasn't the case, the chroot itself is unlikely to have (and also
should not) tools like ip or newuidmap and newgidmap installed. Unsharing
the schroot call itself also will not work. Again we first need to unshare the
user namespace and then schroot will complain about wrong ownership of its
configuration file /etc/schroot/schroot.conf. Luckily, when contacting Roger
Leigh about this wishlist feature in
bug#802849 I was told that this was already
implemented in its git master \o/. So this particular problem seems to be taken
care of and once the next schroot release happens, sbuild will make use of it
and have unshare --net capabilities just like pbuilder already had since
last year.
With the sbuild case taken care of, the rest of this post will introduce the
Perl script I wrote.
The name user-unshare is really arbitrary. I just needed some identifier for
the git repository and a filename.
The most important discovery I made was, that Debian disables unprivileged user
namespaces by default with the patch
add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by-default.patch to the
Linux kernel. To enable it, one has to first either do
echo 1 sudo tee /proc/sys/kernel/unprivileged_userns_clone > /dev/null
or
sudo sysctl -w kernel.unprivileged_userns_clone=1
The tool tries to be like unshare(1) but with the power of lxc-usernsexec(1) to
map more than one id into the new user namespace by using the programs
newgidmap and newuidmap. Or in other words: This tool tries to be like
lxc-usernsexec(1) but with the power of unshare(1) to unshare more than just
the user and mount namespaces. It is nearly equal to calling:
lxc-usernsexec [opts] -- unshare [opts] -- COMMAND
Its main reason of existence are:
systemd-nspawn could do what I wanted but it seems that its
requirement for being run as root will not change any time
soon
Another tool in Debian that offers to do chroot without superuser privileges is
linux-user-chroot but that one cheats by being suid root.
Had I found lxc-usernsexec earlier I would've probably not written this. But
after I found it I happily used it to get an even better understanding of the
matter and further improve the comments in my code. I started writing my own
tool in Perl because that's the language sbuild was written in and as mentioned
initially, I intended to use this script with sbuild. Now that the sbuild
problem is taken care of, this is not so important anymore but I like if I can
read the code of simple programs I run directly from /usr/bin without having to
retrieve the source code first or use sources.debian.net.
The only thing I wasn't able to figure out is how to properly mount proc into
my new mount namespace. I found a workaround that works by first mounting a new
proc to /proc and then bind-mounting /proc to whatever new location for
proc is requested. I didn't figure out how to do this without mounting to
/proc first partly also because this doesn't work at all when using
lxc-usernsexec and unshare together. In this respect, this perl script is a
bit more powerful than those two tools together. I suppose that the reason is
that unshare wasn't written with having being called without superuser
privileges in mind. If you have an idea what could be wrong, the code has a big
FIXME about this issue.
Finally, here a demonstration of what my script can do. Because of the /proc
bug, lxc-usernsexec and unshare together are not able to do this but it
might also be that I'm just not using these tools in the right way. The
following will give you an interactive shell in an environment created from one
of my sbuild chroot tarballs:
$ mkdir -p /tmp/buildroot/proc
$ ./user-unshare --mount-proc=/tmp/buildroot/proc --ipc --pid --net \
--uts --mount --fork -- sh -c 'ip link set lo up && ip addr && \
hostname hoothoot-chroot && \
tar -C /tmp/buildroot -xf /srv/chroot/unstable-amd64.tar.gz; \
/usr/sbin/chroot /tmp/buildroot /sbin/runuser -s /bin/bash - josch && \
umount /tmp/buildroot/proc && rm -rf /tmp/buildroot'
(unstable-amd64-sbuild)josch@hoothoot-chroot:/$ whoami
josch
(unstable-amd64-sbuild)josch@hoothoot-chroot:/$ hostname
hoothoot-chroot
(unstable-amd64-sbuild)josch@hoothoot-chroot:/$ ls -lha /proc head
total 0
dr-xr-xr-x 218 nobody nogroup 0 Oct 25 19:06 .
drwxr-xr-x 22 root root 440 Oct 1 08:42 ..
dr-xr-xr-x 9 root root 0 Oct 25 19:06 1
dr-xr-xr-x 9 josch josch 0 Oct 25 19:06 15
dr-xr-xr-x 9 josch josch 0 Oct 25 19:06 16
dr-xr-xr-x 9 root root 0 Oct 25 19:06 7
dr-xr-xr-x 9 josch josch 0 Oct 25 19:06 8
dr-xr-xr-x 4 nobody nogroup 0 Oct 25 19:06 acpi
dr-xr-xr-x 6 nobody nogroup 0 Oct 25 19:06 asound
Of course instead of running this long command we can also instead write a
small shell script and execute that instead. The following does the same things
as the long command above but adds some comments for further explanation:
#!/bin/sh
set -exu
# I'm using /tmp because I have it mounted as a tmpfs
rootdir="/tmp/buildroot"
# bring the loopback interface up
ip link set lo up
# show that the loopback interface is really up
ip addr
# make use of the UTS namespace being unshared
hostname hoothoot-chroot
# extract the chroot tarball. This must be done inside the user namespace for
# the file permissions to be correct.
#
# tar will fail to call mknod and to change the permissions of /proc but we are
# ignoring that
tar -C "$rootdir" -xf /srv/chroot/unstable-amd64.tar.gz true
# run chroot and inside, immediately drop permissions to the user "josch" and
# start an interactive shell
/usr/sbin/chroot "$rootdir" /sbin/runuser -s /bin/bash - josch
# unmount /proc and remove the temporary directory
umount "$rootdir/proc"
rm -rf "$rootdir"
$ mkdir -p /tmp/buildroot/proc
$ ./user-unshare --mount-proc=/tmp/buildroot/proc --ipc --pid --net --uts --mount --fork -- ./chroot.sh
As mentioned in the beginning, the tool is nearly equivalent to calling
lxc-usernsexec [opts] -- unshare [opts] -- COMMAND but because of the problem
with mounting proc (mentioned earlier), lxc-usernsexec and unshare cannot
be used with above example. If one tries anyways one will only get:
$ lxc-usernsexec -m b:0:1000:1 -m b:1:558752:1 -- unshare --mount-proc=/tmp/buildroot/proc --ipc --pid --net --uts --mount --fork -- ./chroot.sh
unshare: mount /tmp/buildroot/proc failed: Invalid argument
I'd be interested in finding out why that is and how to fix it.
The Linux Kernel Oops website collects kernel errors from all over the World helping kernel developers finding issues occurring in the wild but they cannot help if no one sends reports to them.
The Kerneloops client used to be part of Debian releases but it has been removed from the archive due to not working with the new collector site.
When I started observing oopses on my machine I first thought of submitting a bug against the linux package in BTS, but looking at the numerous bugs opened already I looked for a more automated solution which would also help others. Reviving the kerneloops package involved switching it to the new submission URL, fixing a few memory allocation bugs in C (this is the first package I found using Valgrind by default for running tests) and ensuring that upstream was still active. The last step took the most of the time but finally Anton Arapov kindly accepted my patches and everything was set for the new upload.
The package is now available from unstable and if you feel so (especially if you experience oopses) please give it a try and report any problems you find. I m also happy to receive success stories about oopses fixed after discovering and collecting them with the client.
| Publisher: | Pantheon |
| Copyright: | 2015 |
| ISBN: | 0-307-90827-5 |
| Format: | Hardcover |
| Pages: | 317 |
A few weeks ago, I was offered the opportunity to give a guest talk in the
Romanian Association for Better Software.
RABS is a group of people interested in improving the trade, and regularly hold
events where invited speakers give presentations on a wide array of topics. The
speakers are usually pretty high-profile, so this is quite a responsibility! To
make things more interesting, much of the target audience works on enterprise
software, under Windows platforms. Definitely outside my comfort zone!
Considering all this, we decided the topic was going to be about Site
Reliability Engineering (SRE), concentrating on some aspects of it which I
believe could be useful independently of the kind of company you are working
for.
I finally gave the talk last Monday, and the audience seemed to enjoy it, so I am going to post here my notes, hopefully some other people will like it too.
[..] engineering that emphasizes dependability in the life-cycle management of a product.This is, historically, a branch of engineering that made possible to build devices that will work as expected even when their components were inherently unreliable. It focused on improving component reliability, establishing minimum requirements and expectations, and a heavy usage of statistics to predict failures and understand underlying problems. SRE started as a concept at Google about 12 years ago, when Ben Treynor joined the company and created the SRE team from a group of 7 production engineers. There is no good definition of what Site Reliability Engineering means; while the term and some of its ideas are clearly inspired in the more traditional RE, he defines SRE with these words1:
Fundamentally, it's what happens when you ask a software engineer to design an operations function.
| Series: | Vows and Honor #2 |
| Publisher: | DAW |
| Copyright: | January 1989 |
| ISBN: | 0-88677-454-3 |
| Format: | Mass market |
| Pages: | 318 |
The 12 member nations of the Trans-Pacific Partnership pact have
agreed to prohibit demands that companies reveal software source
code*, a step that appears aimed at curbing efforts by China to
gain access to this sensitive information, The Yomiuri Shimbun
has learned.
Source code is the confidential information for software and is
a blueprint embedded in many commonly used products, such as
vehicles, mobile phones and home appliances. Source code is
usually tightly guarded because it conatins commands that make
using the software easier.
China requires foreign companies operating there to hand over
source code, a move that has sparked sharp criticism from many
countries. Observers believe the decision by TPP participants
to ban demands to reveal this code is intended to restrain
China's move.
The TPP's electronic commerce chapter in principle prohibits the
12 member nations from demanding access to source code for
mass-produced software. According to the Economy, Trade and
Industry Ministry, the Japan-Mongolia economic partnership
agreement signed in February contains a stipulation banning
demands for such information, but there are very few other
examples around the world.
Japan, the United States and other nations that are home to many
information technology companies want to make the stipulation
effectively a global standard, and they are considering whether
to incorporate such a condition in economic partnership
agreements that will be inked in the future.
Source code is an important corporate secret for development
firms.
*Source code A software program written in a language a computer
understands. As well as containing expert details about the
unique functions of the product, the software is essential for
fixing glitches and making improvements. Hackers have attempted
to access source code because gaining this information would make
it easier to create viruses that could exploit any software
defects. In the software business, it is rarely made public, as
it is considered a corporate secret.
The Norwegian Bokm l version will be available for purchase in a
few days. I also plan to publish a French version in a few weeks or
months, depending on the amount of people with knowledge of French to
join the translation project. So far there is only one active
person, but the French book is almost completely translated but
need some proof reading.
The book is also available in PDF, ePub and MOBI formats from
my
github project page. Note the ePub and MOBI versions have some
formatting problems I believe is due to bugs in the docbook tool
dbtoepub (Debian BTS issues
#795842
and
#796871),
but I have not taken the time to investigate. I recommend the PDF and
ePub version for now, as they seem to show up fine in the viewers I
have available.
After the translation to Norwegian Bokm l was complete, I was able
to secure some sponsoring from
the NUUG Foundation to
print the book. This is the reason their logo is located on the back
cover. I am very grateful for their contribution, and will use it to
give a copy of the Norwegian edition to members of the Norwegian
Parliament and other decision makers here in Norway.
| Series: | Chronicles of Tornor #1 |
| Publisher: | Berkley |
| Copyright: | February 1979 |
| Printing: | November 1982 |
| ISBN: | 0-425-06195-7 |
| Format: | Mass market |
| Pages: | 226 |
The wind blew. Like some night creature caught in a trap, Col Istor's banner flapped on its pole. Ryke wondered where his wolfhound was. Sheltering, he hoped, in some warm and windless corner. He thrust his hands beneath his armpits to warm them. He entered the kitchen, nodding at the guard who stood there, and went toward the scullery. The kitchenboys huddled together in sleep like dogs in front of the oven. He stepped over their legs. The iron pots on the walls vibrated softly.That's a paragraph chosen at random from the start of the book and should give you a good feel for the style. I think I would have liked this novel better if it had followed anyone other than Ryke. Not only did I not care for him and his simplistic loyalties, he's the least interesting character in this story. Everyone else Col, Errel, Sorren, Van, and others is more complex and more thoughtful than he is, and I think many of them would have made a better protagonist. He spends much of the center part of the book being suspicious and closed and incurious, which means the reader can only guess at what's going on between the other characters. I can't really recommend this book, but the writing is solid and it has some interesting properties for late 1970s fantasy, including both a frank look at the role of women in this society and same-sex relationships. If your taste in fantasy leans towards the gritty and realistic, you might like it more than I did. I may try the later books of the series in the hope that they have more interesting protagonists. Followed by Dancers of Arun. Rating: 6 out of 10
Following up on Then and Now ...
In quiet moments at ICFP last August, I finished teaching
Propellor to generate disk images. With an emphasis on doing a
whole lot with very little new code and extreme amount of code reuse.
For example, let's make a disk image with nethack on it. First,
we need to define a chroot. Disk image creation reuses propellor's chroot
support, described back in propelling containers. Any propellor
properties can be assigned to the chroot, so it's easy to describe
the system we want.
nethackChroot :: FilePath -> Chroot
nethackChroot d = Chroot.debootstrapped (System (Debian Stable) "amd64") mempty d
& Apt.installed ["linux-image-amd64"]
& Apt.installed ["nethack-console"]
& accountFor gamer
& gamer hasInsecurePassword "hello"
& gamer hasLoginShell "/usr/games/nethack"
where gamer = User "gamer"
nethackImage :: RevertableProperty
nethackImage = imageBuilt "/srv/images/nethack.img" nethackChroot
MSDOS (grubBooted PC)
[ partition EXT2 mountedAt "/boot"
setFlag BootFlag
, partition EXT4 mountedAt "/"
addFreeSpace MegaBytes 100
, swapPartition (MegaBytes 256)
]
addFreeSpace and setSize. Other functions like setFlag and
extended can further adjust the partitions. I think that worked out
rather well; the partition specification is compact and avoids unecessary
hardcoded sizes, while providing plenty of control.
By the end of ICFP, I had Propellor building complete disk images,
but no boot loader installed on them.
leech --
leech = host "leech.kitenet.net"
& os (System (Debian (Stable "jessie")) "armel")
& Apt.installed ["linux-image-kirkwood", "ppp", "screen", "iftop"]
& privContent "/etc/ppp/peers/provider"
& privContent "/etc/ppp/pap-secrets"
& Ppp.onBoot
& hasPassword (User "root")
& Ssh.installed
hostProperties leech and reused to create a disk image with
the same properties as the host!
So, when my dialup gateway gets struck by lightning again, I could
use this to build a disk image for its replacement:
import qualified Propellor.Property.Hardware.SheevaPlug as SheevaPlug
laptop = host "darkstar.kitenet.net"
& SheevaPlug.diskImage "/srv/images/leech.img" (MegaBytes 2000)
(& propertyList "has all of leech's properties"
(hostProperties leech))
Yesterday we have released CafeOBJ 1.5.4 with a long list of changes, and many more internal changes. Documentation pages have been updated with the latest reference manual (PDF, Html) as well as some new docs on CITP (in Japanese for now) and tutorials.
To quote from our README:
CafeOBJ is a new generation algebraic specification and programming language. As a direct successor of OBJ, it inherits all its features (flexible mix-fix syntax, powerful typing system with sub-types, and sophisticated module composition system featuring various kinds of imports, parameterised modules, views for instantiating the parameters, module expressions, etc.) but it also implements new paradigms such as rewriting logic and hidden algebra, as well as their combination.Changes Changes since the last release are as follows
Next.