[Bug 1152187] Re: [MIR] systemd

Ryan Lortie desrt at desrt.ca
Thu Mar 21 16:09:30 UTC 2013


I've reviewed the review in comment #14 and looked over the code myself
as well as talking to Lennart.

Point-by-point:

- I don't understand why having /etc/localtime as a symlink is anything
but desirable other than that Debian didn't do it this way before.  I do
notice that the symlink is not replaced atomically (using the rename-
temp trick), however, meaning that the system is (de facto) on UTC for a
short period during changes.  I've raised this point with upstream.

- The race condition between checking timezone validity and changing the
timezone is a total non-issue; mostly for the reason that you mention,
but also because even if the timezone was erased _after_ the link was
established, the result would be the same: dangling symlink.  This is
really not a race...

- the story with hwclock_set_timezone() and hwclock_reset_timezone() is
stupidly complicated because of Linux being ridiculous on this point.
The kernel wants to know the timezone for two reasons: in case the RTC
is in localtime, it wants to jog the system time (that it assumed was in
UTC) to proper UTC.  This is done only on the first call to
settimeofday().  The kernel also wants to know the timezone for other
reasons though (like setting proper timestamps on FAT filesystems).  The
way to set the timezone for these other reasons without doing the 'first
time warp' is to first set a NULL timezone (no warp on the first time)
and then make a second call to actually set the timezone.  I agree that
it's stupid that the kernel should want to know what timezone userspace
thinks that it's in, but that's how it is...

- the write_data_local_rtc() point you raise is valid code, but utterly
ugly.  I asked Lennart to rewrite it.

- the wraparound issue: I assume you mean that relative time changes are
not checked for wrapping the clock.  I don't think this is a big problem
since it's a privileged operation and you could simply say that this is
the semantics of the interface (and honestly, I can't imagine what else
you would want to happen in this situation -- we could end up with a
clock set to a ridiculous time, but we could end up with that anyway).

- localised strings: true.

- Lennart claims that realloc() is smart enough not to reallocate every
time so we'd be wasting our time by trying to duplicate its efforts.
That claim seems a bit suspect from the standpoint of my doubt that it
would waste as much as double the amount of requested memory, but I
didn't investigate further.  I don't believe this to be a substantial
problem in any case.

- The examples you give for hostnames accepted by hostname_is_valid()
are obviously pretty bogus.  This will be fixed upstream.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1152187

Title:
  [MIR] systemd

Status in “systemd” package in Ubuntu:
  Fix Released

Bug description:
  * The package is in universe and built on all archs:
  https://launchpad.net/ubuntu/+source/systemd/44-10ubuntu1

  * Rationale:

  - in a first step we want systemd-services promoted to replace ubuntu-
  system-services

  -  We will also want to move from consolekit to logind soon
  (https://blueprints.launchpad.net/ubuntu/+spec/foundations-1303
  -consolekit-logind-migration)

  - udev has been merged in the systemd source upstream so we will want
  to build it from there at some point as well

  we don't plan to use the systemd init system at this point

  * Security:

  there has been some security issues in the past
  http://secunia.com/advisories/search/?search=systemd
  http://secunia.com/advisories/48220/
  http://secunia.com/advisories/48208/
  http://secunia.com/advisories/48331/

  Those are mostly logind issue and have been fixed upstream.

  Our current package is outdated but we do plan to update it before
  starting using logind. There should be no issue with the services

  * Quality:
  - there is no RC bug in debian: http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=systemd
  - there is no bug open in launchpad: https://launchpad.net/ubuntu/+source/systemd/+bugs
  - upstream is active and responsive to issues

  The desktop bugs team is subscribed to the package in launchpad,
  foundations/desktop will maintain the package and look to the bug
  reports regularly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1152187/+subscriptions




More information about the foundations-bugs mailing list