/srv/irclogs.ubuntu.com/2013/12/06/#ubuntu-devel.txt

sveinseIs there a (dpkg/dh_*) tool for listing a debian/control file's dependencies for a specific architecture? (The control file at hand contains [arch] and '|' conditions, and I'd rather avoid having to make my own parser if I can)00:03
geofftsveinse: Deps, or build-deps? (Deps generally also involve ${misc:Depends} etc. which isn't really knowable without doing the build)00:05
geofftFor build-deps, /usr/lib/pbuilder/pbuilder-satisfydepends in some form might be useful00:06
sveinsegeofft: Deps. If I can get a list where ${misc:Depends} is one of them, I would be happy. It's the arch specific constraints I need to filter out00:09
sveinsegeofft: OOI and slightly OT, what is ${misc:Depends} replaced by normally? I always use it, but I've never asked why00:10
sveinsewell, for the latter, Google is a friend, so forget it00:12
geofftalso grep misc:Depends /usr/bin/dh_* :)00:12
geoffthm, looks like last time I wanted this, I used the Dpkg::Deps perl module, which gives me a deps_parse function00:13
geoffthttp://web.mit.edu/geofft/debathena/dh-ifexists/dh_ifexists00:14
geofft(note that that command is a slightly terrible idea, I'm only posting it as sample code)00:14
sveinseDo I understand things correctly that dh_* never actually parses Deps, only put it into the pkg's control file? So a dep of "pkg1[armel] | pkg2[armhf] | pkg3" is never actually parsed by dh_*00:15
sveinsehmm. Seems like a custom parser is unavoidable :(00:18
infinitysveinse: That has nothing to do with debhelper at all, it's dpkg-gencontrol.  But if what you want to say is "if I'm on armel, I want pkg1, if I'm on armhf, I want pkg2, else I want pkg3", you want "pkg1 [armel], pkg2 [armhf], pkg3 [!armel !armhf]" and dpkg-gencontrol filters the right ones for the right arch builds.00:19
sveinseinfinity: Ah, so you can put more than one constraint (e.g. [!armel !armhf]). I was looking for that in the policy manual, but could not find any about that00:20
=== freeflying_away is now known as freeflying
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== GridCube_ is now known as GridCube
psusixnox, just saw your comment about installing grub on fakeraid arrays.. it will need some work to keep that going with the mdadm transition... looking for that thread I started on it a while back now02:13
=== saurik_ is now known as saurik
=== shuduo_afk is now known as shuduo
pittiGood morning05:35
pittiinfinity: can I talk you into accepting the SRUs for bug 1257211? (fairly mechanical; all upstream/distro tested, no packaging changes, has MRE); it's a relatively important data loss fix this time05:36
ubottubug 1257211 in postgresql-9.1 (Ubuntu Saucy) "New upstream microreleases 9.1.11, 8.4.19" [High,In progress] https://launchpad.net/bugs/125721105:36
infinitypitti: Let me have a quick look.05:42
infinitypitti: 6 of them?  Okay, a slightly less quick look.05:43
pittiinfinity: yeah, I'm afraid so :/ they all look the same though05:43
infinitypitti: The 0 changes to debian/* is comforting.  Do the orig tarballs come directly from upstream, or get repacked in annoying ways?05:46
pittiinfinity: nope, straight from upstream05:47
pittishared between upstream, debian, ubuntu, and apt.postgresql.org05:47
infinityOh, heh, found one with a change to debian. :)05:47
infinity(Just the update-maintainer flip)05:48
pittiah yes, first SRU to saucy05:48
infinityIndeed.05:48
infinitySo, I think I'll just verify hashes on the upstream tarballs and call it good enough, due to the MRE.05:48
pittidpkg-buildpackage would otherwise barf at me, so update-maintainer is less annoying than always rebuilding with DEBEMAIL=05:48
infinitypitti: Yeah, I always listen to dpkg-buildpackage about that too.05:48
infinitypitti: Which is good, since that was the point of the policy. :P05:49
infinitypitti: Right, those all match, thanks for making my life easy.05:52
pittiinfinity: fortunately the days when we had an upstream tar.bz wrapped in a custom debian orig.tar.gz are over with hardy being EOL05:53
infinitypitti: Yeah.  I maintain packages that need to dfsg cleansing business, so it's nice to run into ones that don't. :P05:54
infinitys/to/the/05:54
pittiinfinity: yeah, it's really quite mechanical, but always better to have four eyes on it (and cross-check that I put in the right bug number, etc.)05:54
pittiof course I did *not* (no, no!) rebuild the sources ever because I accidentally put in the one for the previous SRU *cough*05:54
infinity;)05:55
infinitypitti: I assume we're moving to 9.2 for trusty?05:56
pittiinfinity: 9.305:56
infinityOoo, or that.  Shiny.05:56
pittiinfinity: I have it on my list to weed out the remaining 9.1 rdeps, and reduce p-9.1 to -plperl05:56
pittiwe need that for upgrades due to libperl non-coinstallability05:56
pitti(similar to what I do in unstable for wheezy)05:56
infinityIt never ceases to amaze me that people implementing a decades-old spec keep finding new ways to add features and pump out new versions.05:56
lifelessinfinity: postgresql?05:57
lifelessinfinity: or perl?05:57
infinitylifeless: psql.05:57
lifelessinfinity: I think they could be there another few decades; sql was a very theoretical spec, so there's huge sets of optimisations folk are only just touching on05:58
infinity(That wonderment is a bit ironic, given that my largest upstream involvement is in a project implementing POSIX/SUS C)05:58
infinitypitti: Alright, I think that's all of 'em.06:00
pittiinfinity: cheers06:00
pittiI'll treat them with my p-common test torture for verification once they are built/published06:01
=== jono is now known as Guest52213
tjaaltonis there a way to add an apport hook for a project?06:29
tjaaltonaiui it's possible to file bugs against source/binary packages06:29
tjaaltonbut dunno if the same is true for projects06:29
lifelesspretty sure you can06:29
tjaaltonmainly for attaching bug logs06:29
pittitjaalton: you can add an apport hook to a package which makes bugs go to the project06:30
pitti(common for e. g. PPA packages)06:30
tjaaltonpitti: how about private projects then?06:30
pittitjaalton: the hook can also check easily if the package is from ubuntu or not06:30
pittitjaalton: if you put it into a PPA which only people can access that can also file bugs to that private project, sure06:31
tjaaltonahh, yeah that works then06:31
tjaaltontammy: ^ :)06:31
tjaaltonpitti: thanks06:31
dholbachgood morning07:33
jibelbarry, pitti I fixed adt notifications. LP credentials had not been migrated from previous server. It is now saved in a non-default launchpadlib_dir that will make migration easier just in case this service had to move again.08:23
=== funkyHat_ is now known as funkyHat
=== EntropyWorks_ is now known as EntropyWorks
=== czchen_ is now known as czchen
=== warp10_ is now known as warp10
=== mvo_ is now known as mvo
=== pitti_ is now known as pitti
pittisarnold, roaksoax: is maas heavily dependent on the psql version 9.1? (I just filed bug 1258442)08:49
ubottubug 1258442 in maas (Ubuntu) "Move to postgresql-9.3" [Undecided,New] https://launchpad.net/bugs/125844208:49
pittiif it isn't very version sensitive, then I'd recommend the versionless metapackage as an alternative; if you'd rather only allow explicitly tested psql versions, then just "-9.3" will do for now (but prevent usage with newer psqls)08:50
=== mthaddon` is now known as mthaddon
=== ochosi_ is now known as ochsoi
=== ochsoi is now known as ochosi
=== cjwatson_ is now known as cjwatson
=== yofel_ is now known as yofel
=== wedgwood is now known as Guest45906
tseliotpitti: is even suggesting a package from universe prohibited for packages in main?10:40
pittitseliot: no, that's fine; suggests aren't installed by default10:40
tseliotpitti: so that could work for bug #1255583, couldn't it?10:41
ubottubug 1255583 in bbswitch (Ubuntu) " [MIR] Main inclusion request for bbswitch" [Medium,Incomplete] https://launchpad.net/bugs/125558310:41
pittitseliot: well, not really; we really want such stuff to use dkms, not m-a10:42
tseliotok, I'll tell the maintainer10:42
=== DzAirmaX_ is now known as DzAirmaX
=== shuduo is now known as shuduo_afk
Riddellpitti, ev: apport is off for releases right? which makes whoopsie off too?11:33
evRiddell: no11:33
Riddellev: no to which?11:33
evapport doesn't report to Launchpad post-release11:33
evbut it still reports to daisy.ubuntu.com (via whoopsie)11:33
Riddellev: ah hah11:33
evsorry for the terseness there11:33
pittiRiddell: more precisely, we stop sending crash reports to LP post-release; "ubuntu-bug" (i. e. no-crash manual bug reports) still works11:34
pittiRiddell: I was talking to apachelogger about apport/KDE yesterday, did you see this in scrollback? (to avoid duplicate work/discussions)11:35
Riddellpitti: I'm working with him now, seems apport has been broken in kubuntu for the last couple of releases and we didn't notice (because it's not used for kde apps)11:35
=== _salem is now known as salem_
rbasak@pilot in11:47
=== udevbot changed the topic of #ubuntu-devel to: Ubuntu 13.10 released! | Archive: open | Devel of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and discussion of lucid -> saucy | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots: rbasak
* dholbach hugs rbasak11:51
rbasako/11:51
=== ivoks_ is now known as ivoks
mptmvo, hi, what’s the simplest way you can think of to produce a package that Synaptic will label as “Broken”? :-)12:00
mpt(e.g. by messing with an existing package)12:03
seb128mpt, you can probably dpkg -r a depends of an installed package12:06
seb128mpt, e.g sudo dpkg -r --force-depends evince-common12:07
mvompt: indeed, what seb128 said - sudo apt-get install 4g8; sudo dpkg -r --force-depends libnet112:07
seb128that should make evince unhappy12:07
* mvo hugs seb12812:08
mptI think I’ll try with 4g8 rather than my favorite PDF viewer 3-)12:08
mvompt: why do you care about synaptic?12:08
mptthanks12:08
* seb128 hugs mvo back ;-)12:08
mptmvo, just folloing up on an old bug report12:10
rbasakWill arm64 build failures block proposed migration for unseeded packages? I'm wondering if I can upload a merge that has never worked on arm64 without fixing it.12:43
Laneyrbasak: They will, but only if it has built there before (same as for all architectures: https://wiki.ubuntu.com/ProposedMigration point 1.)12:46
xnoxrbasak: "it must not regress" in architecture list where it does succeed to be built/installable.12:53
rbasakLaney, xnox: aha. Thank you!12:54
barryjibel: cool, thanks14:02
smoseris there any options to apt to get it to log timestamps during apt-get dist-upgrade ?14:07
smoseri'd like to time an apt-get dist-upgrade and have some info on where the time goes14:08
hloeungsmoser: does running it using annotate-output help?14:09
smoserhloeung, i was unaware of that program. i hacked something similar just now.14:10
smoserthanks.14:10
smoseri think log data from apt would probably be more correct. but this might suffice.14:11
psusixnox: ddf and imsm aren't quite the same... iirc, there was a check in the grub-install script to see if you were trying to install to a /dev/mapper device that was managed by dmraid, aand allow it to procee, and the grub device iterator code assigned a grub device to the array assuming it was bios accessible14:30
xnoxpsusi: can you give me pointers in grub code?14:33
psusixnox: iirc, it was in a file named deviter.c14:45
psusixnox: and of course, the grub-install script14:45
psusixnox: I had a discussion on the mailing lists back in 2010 and I wanted a way to ask mdadm what kind of raid it is and if it is recognizable to the bios... not sure if it was ever added to mdadm14:47
xnoxpsusi: there is now, --detail-platform or somesuch, which will print / notify if there are bios recognisable raid devices (that is ddf/ISW controllers that are recognised on boot)14:48
xnoxpsusi: subsequently one can start that controller as "container" and see which raid arrays are defined within it, and thus confirm that those raid arrays will be available on boot.14:49
psusixnox: the idea is that if you run grub-install /dev/md0 and mdadm says it's a bios recognizable array, then go ahead with installing, and assume it's (hd0) or some other number14:53
psusiohh, and there was some logic somewhere to figure out whether grub needs the raid module.. it doesn't if it's a fakeraid14:54
psusithat was based on where /boot is.. if /boot is on a software raid, it needs the raid module, fakeraid, it doesn't...14:55
xnoxpsusi: i've tried grubinstall patch from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699434 but it didn't work for me on an ISW/RAID014:55
ubottuDebian bug 699434 in grub-installer "grub-installer: support for Intel Matrix Raid" [Normal,Open]14:55
xnoxpsusi: i see. that patch added a dummy echo "(md/0)$md_bootdev" >> $ROOT/boot/grub/device.map14:56
xnoxwhich imho is fragile, given that i can have multiple raid devices regornised on boot.14:56
psusithings are a bit muddied by the fact that Ubuntu is still carrying patches to auto assign grub devices and not use device.map14:57
xnox(e.g. one for windows and one for debian/ubuntu)14:57
cjwatsondevice.map is deprecated, please don't add new stuff relying on it14:57
cjwatsonpsusi: that statement is exactly the opposite of reality ...14:57
psusiit is?14:57
xnoxcjwatson: right. what should be used instead of device.map? and how can i make it recognise "fakeraid ISW and DDF" properly?14:57
cjwatsonpsusi: upstream removed grub-mkdevicemap altogether; Ubuntu is carrying patches to put it back because we needed it for some packaging-level code14:57
xnox(or verify that it does / doesn't)14:58
pkernHey. Ubuntu Trusty uses :powerpc specifiers in dependency fields. Is there a spec for that? (Allowing cross-arch deps.)14:58
psusiI thuoght last time I asked about why I couldn't find deviter.c upstream you said it was ubuntu specific?14:58
cjwatsonpsusi: the use of device.map is deprecated14:58
xnoxpkern: :arch are not allowed, where is that? one is allowed to use :any in the Depends:14:58
cjwatsonpsusi: indeed, but its purpose is not as you describe.  the purpose of deviceiter.c is to help generate device.map - i.e. it's part of grub-mkdevicemap14:58
xnoxpkern: and :any is allowed in Debian as well.14:58
pkernThat's not my question.14:58
psusicjwatson: I thought it was also used to generate the temporary in memory map so that grub-install could figure out what device is what14:59
cjwatsonpsusi: no14:59
pkernxnox: crossbuild-essential-powerpc14:59
pkernDepends: libc6-dev:powerpc14:59
psusithen how does grub-install decide what grub device to reference?14:59
psusiI could have sworn that was from deviceiter.c assigning an (hdX) to each disk and an (mdX) to each raid array, etc...15:00
cjwatsonxnox,psusi: ok, so.  there are two cases.  for the userspace tools, mostly all we need to be able to do is check whether two devices are the same.  for that, it's sufficient to just have an arbitrary sequence that's stable within the run of a given tool.15:00
xnoxpkern: right, that package is a bit special (no wonder it gets stuck in britney proposed migration). The spec is https://wiki.ubuntu.com/MultiarchSpec but at the moment officially supported/endorsed suffixes are ":any" in Depends: in both ubuntu & debian.15:00
pkernxnox: We're parsing dependencies and our mirroring of trusty is stuck, too.15:01
pkernIt makes sense to me but if you didn't intend to allow it...15:01
xnoxpkern: the fact that :$arch works is nice, but it relies on one adding foreign-arch and have archives available for it.15:01
pkernDoesn't it "just work" if you have ppc in your cache?15:01
pkernYeah, I know that.15:01
cjwatsonxnox,psusi: the other case is for generating config files (i.e. things that will be used at boot time).  for that, we actually don't care whether we know what the GRUB device names are; we generate some in a best effort kind of way, but what we actually depend on in reality is "search --fs-uuid".15:01
psusicjwatson: right... and deviceiter.c generates that arbitrary sequence... but without that, then there would be no (hd0) unless you have a device.map wouldn't there?15:02
pkernPeople didn't like that for the qemu case.15:02
xnoxpkern: well, we rely on it to enable cross-compilation with multiarch enabled.15:02
cjwatsonpsusi: that's not true, the grub userspace tools will synthesise an arbitrary sequence if you don't have a device.map15:02
cjwatsonpsusi: and in practice this will all be fine15:02
xnoxpkern: in the cross-build-depends package only as it seems at the moment. no other packages should be doing it...15:02
psusicjwatson: I thoguht they did that using the code in deviceiter.c15:02
xnoxpkern: i wonder if wine started doing it as well or not.15:02
cjwatsonpsusi: nope15:03
pkernxnox: I don't have a problem with cross-amd64-i386 stuff, because we enable both. :P15:03
cjwatsonpsusi: deviceiter.c is essentially a doomed effort to guess what order devices will be iterated in at boot time; we try rather hard to avoid actually relying on it for anything important.  it's basically stub code15:03
psusiI'm confused.... "synesis an arbitrary sequence if you don't have a device.map" is what deviceiter.c does, isn't it?15:03
xnoxpkern: for parsing, it is save to strip ":*" from the package name, to get the package name only.15:03
xnoxpkern: the ":*" is arch qualifier in dpkg.15:03
pkernI know. This is about validation.15:04
cjwatsonpsusi: no, deviceiter.c walks through all the devices it can think of on your system and assigns a sequence that way.  what I'm talking about is basically just a simple counter incremented each time a tool notices a device it hasn't seen yet.15:04
pkernWe don't want to accept stuff which might break later. And the dev argues with me that I should find out if that presence is not a bug.15:04
cjwatsonpsusi: except in grub-mkdevicemap, we no longer try to go and aggressively discover all block devices on your system, which is what deviceiter.c was trying to do.15:04
cjwatson(in userspace, that is)15:05
pkernxnox: So if it's going to stay and not a mistake and cjwatson fixes up britney, I shall communicate that. :P15:05
pkern(This is not a question with Debian background, fwiw.)15:05
cjwatsonpkern: I gave up on fixing it properly in britney, I just fauxpkged it15:05
cjwatsonor something similar15:06
psusicjwatson: so for fakeraid, somewhere it needs to decide whether the device /boot is on should be designated (mdX) or (hdX)... where is that?15:06
cjwatsonpsusi: grub_util_get_grub_dev I believe15:06
xnoxpkern: it is here to stay. in fact all packages can be refered to with :$arch suffix, dpkg inplicitely uses native-arch or any it can find when not specified.15:06
psusixnox: there you go15:07
xnoxpsusi: let me catch up on the grub conversation.15:07
psusixnox: just the last bit that was important... sounds like it's grub_util_get_grub_dev you'll need to modify15:07
cjwatsonthere's already an IMSM test nearby15:07
cjwatsonto avoids tagging it as the RAID abstraction if it finds IMSM15:08
psusicjwatson: ahh, I thought the existing code looked for dmraid ( /dev/mapper ) and would need modified for the mdadm switch15:08
cjwatsonwhich would have the effect of making it be (hdX)15:08
pkerncjwatson, xnox: Thanks.15:09
cjwatsonpsusi: you're in part describing old code, I think15:09
psusifigures ;)15:09
cjwatsonpsusi: there's certainly some mdadm code in here already15:09
psusilast time I was looking at this was apparently 201015:09
cjwatsonxnox: if you're looking at this, please look at git master, not our current packaging; I'll be switching to a snapshot soon15:09
cjwatsonand there's better support for grabbing stuff from subprocesses in master anyway15:10
cjwatsonhttp://git.savannah.gnu.org/gitweb/?p=grub.git15:10
xnoxcjwatson: right, and grub-installer patches are against wheezy. I'll just shelf installing onto IMSM patches for now, until snapshot arrives.15:11
xnoxcjwatson: grub are rebels =) not using the GNU DVCS ? =)15:11
cjwatsonswitched away recently15:11
psusivery few gnu projects use it ;)15:11
cjwatsonI think emacs is the main big one left15:11
xnoxpsusi: the only important one does.... yeap emacs.15:12
pkernJust use vi.15:12
xnoxpkern: M-x viper-mode15:12
xnoxlatest Microsoft ergonomic keyboard is sooo emacs friendly =)15:13
pkernI tried that. I was not convinced. And apparently it's despised by many.15:13
psusiI couldn't be chatting with you on irc while running two shells, editing code, and have my git commit log entries pop up in a window with vi ;)15:13
ogra_pkern, huh ? shouldnt you promote gobby ?15:13
xnoxpkern: the new one? sculpt?15:13
pkernvi with youcompleteme \o/15:13
pkernogra_: If gtksourceview had vi keybindings.15:13
ogra_:)15:13
pkernAlso apparently the market decided that web apps are better than desktop apps.15:13
* psusi goes back to reading IEEE 802.315:14
cjwatsonyoucompleteme> interesting15:14
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
xnoxcjwatson: grub.git looks very sane will try it out. thanks a lot.15:20
=== freeflying is now known as freeflying_away
xnoxjcastro: can you please reopen http://askubuntu.com/questions/59475/how-to-correctly-add-a-fake-raid-entry-to-fstab for me?16:20
xnoxjcastro: i'll provide a proper answer in a second.16:20
jcastroon it16:22
jcastroxnox, done16:26
rbasak@pilot out16:53
=== udevbot changed the topic of #ubuntu-devel to: Ubuntu 13.10 released! | Archive: open | Devel of Ubuntu (not support or app devel) | build failures -> http://qa.ubuntuwire.com/ftbfs/ | #ubuntu for support and discussion of lucid -> saucy | #ubuntu-app-devel for app development on Ubuntu http://wiki.ubuntu.com/UbuntuDevelopment | See #ubuntu-bugs for http://bit.ly/lv8soi | Patch Pilots:
=== wedgwood is now known as Guest77125
=== Guest77125 is now known as wedgwood
bdmurrayslangasek: I've tested a change to update-manager to support an upgrade from Q to T per some discussion at vUDS.  Basically, upgrader only wants to upgrade from Q to R so I could hard code something to have it allow upgrades from Q to T and only put that in update-manager in raring-proposed.  Or maybe do something smart with a switch for update-manager.17:18
seb128could somebody review aptdaemon in the trusty SRU queue? it should fix the most report e.u.c error on the daily view17:19
bdmurrayseb128: saucy?17:20
seb128ups, yes, sorry17:20
seb128bdmurray, you uploaded so I guess you can't review17:20
bdmurrayseb128: yeah, I'd prefer not to review it17:20
seb128slangasek, isn't friday your SRU day? ;-) that's an easy few liner of python changes17:21
seb128bdmurray, slangasek: btw not sure if you saw, but I would appreciate a review from you on https://code.launchpad.net/~seb128/apturl/dont-decode-str/+merge/197804 (you wrote that code/changed it)17:21
bdmurrayseb128: I'll have a look at it today17:24
seb128bdmurray, thanks17:25
jameshno godoc in the new golang packages :(17:36
stgrabercjwatson, slangasek, mdeslaur, hallyn_: hey, so I'm playing with unprivileged containers and I currently can't ssh in because pam_loginuid is failing (/proc/self/loginuid isn't writable in a userns). How bad would it be to change that specific plugin from required to optional?17:37
cjwatsonApart from things just not generally working as well, the main effect I can think of which could cause problems would be that getlogin() would return "root"17:40
cjwatsonOf course if /proc/self/loginuid isn't writable it's not clear what we could do about that17:41
ersiKind announcement: Today is the last day to do the FLOSS survey 2013: http://floss2013.libresoft.es/17:41
ersi(In particulary aimed at FLOSS contributors)17:41
hallyn_getlogin uses loginuid?  what did it do before loginuid existed?17:41
cjwatsondunno, I'm just going by bug 106777917:42
ubottubug 1067779 in shadow (Ubuntu) "missing pam_loginuid.so breaks getlogin()" [High,Confirmed] https://launchpad.net/bugs/106777917:42
stgraberhttp://paste.ubuntu.com/6530814/17:44
* stgraber goes to look at that bug report17:44
stgraberhmm, I can't seem to reproduce what the reporter describes with my test...17:48
hallyn_stgraber: cjwatson: well I guess say the word if http://lkml.org/lkml/2013/12/4/156 becomes more important17:48
hallyn_but loginuid had a purpose, and letting a contaienr set it seems wrong17:49
hallyn_i've not looked closely at the patchset though17:49
hallyn_yet :)17:49
stgraberhallyn_: so I'd definitely prefer it if we could get a kernel fix instead of having to patch userspace (I'd love to save myself all the backports ;)). It doesn't seem entirely unreasonable to let uid 0 in a userns set loginuid as confusing as that may be when looked at from the outside.17:51
hallyn_stgraber: slangasek: so, sorry, i finally realized that dbus from a userns is getting a REJECTED EXTERNAL DBUS_COOKIE_SH<...>  where in same userns it gets OK there17:51
hallyn_stgraber: it's nto about being confusing,17:52
hallyn_it's about knowing the uid which "owns" the tasks17:52
hallyn_but ok, i'll aim to take a look in a bit.  though i really have to spend some time on qemu soon17:52
stgraberhallyn_: the whole concept of owernship becomes blurry once your user owns a few thousands uids ;)17:53
stgraberownership too17:53
hallyn_not my pirate ship though17:54
mdeslaurstgraber: would this help any? https://git.fedorahosted.org/cgit/linux-pam.git/commit/?id=45cdd2489e68465c2d2202370c350069d2a391b817:54
hallyn_stgraber: so my uneducated guess is that the sha1 cookie which the dbus client sends hashes up its uid!17:55
hallyn_stgraber: rsince client's uid is not the uid that the server end sees, that fails17:55
hallyn_mdeslaur: you an expert on dbus auth?17:55
mdeslaurhallyn_: nope, sorry17:55
hallyn_mdeslaur: know anyone who is?17:56
mdeslaurtyhicks: do you know how that works? ^17:56
stgrabermdeslaur: I doubt it... in our case, loginuid is already set to -1 (well, 4294967295) as the actual uid can't be mapped to the userns. So even with that change, pam_loginuid will still attempt to set it to the right value (1000 in my case) and fail with permision denied17:58
tyhicksmdeslaur: nope, I haven't looked at that before17:58
hallyn_ok thanks - i'll read over http://dbus.freedesktop.org/doc/dbus-specification.html again17:58
mdeslaurstgraber: ah, ok17:59
hallyn_"Thus the security of DBUS_COOKIE_SHA1 depends on a secure home directory"  <--  not good17:59
stgrabermdeslaur: if it's too hard to fix in the kernel and can't be done for 14.04, then I think the fallback will be to patch pam_loginuid to ignore (just log) failures to write to loginuid, then SRU that change to all releases.18:00
stgraberthat'll still prevent anyone from running non-Ubuntu containers in a userns though, so I'd love to avoid that...18:00
hallyn_slangasek: ^ unless there's another auth mech i can use, this may mean that dbus can't be used for the cgmanager (^)18:01
hallyn_stgraber: i'll look at the patchset this afternoon.18:02
stgraberhallyn_: I guess you'll need to talk to the kernel team too because with the 3.13 merge window closed, it's doubtful we'll get that change in our kernel from upstream, so we'll need to apply that set ourselves and/or cherry-pick once that's upstream18:02
mdeslaurstgraber: would that be pretty much the equivalent of setting it as optional? or is there a way for you to only the failure only in an unprivileged container?18:02
slangasekbdmurray: wouldn't you want the behavior change SRUed into Q rather than into R?18:02
hallyn_or maybe i can disable auth?18:02
stgrabermdeslaur: it'd be similar to setting it as optional but with the benefit of not having to patch all packages that ship their own pam profile18:03
slangasekseb128: yep, SRU day for me today18:03
bdmurrayslangasek: right, my mistype18:03
mdeslaurstgraber: I suppose ignoring the error only if it's not writable is better than setting it as optional, now that I think about it18:03
stgrabermdeslaur: yeah, that was my thought too. The only case you'd get a permission denied in is userns or if another MAC is preventing writes to the path, in all those cases, it's fine to ignore I think.18:04
slangasekstgraber: I don't think changing loginuid to optional is reasonable; anyone who wants loginuid expects it to work reliably, and you don't want all errors to be silently ignored18:05
seb128slangasek, hey, great ;-)18:05
hallyn_+118:06
slangasekhallyn_: auth mech> hum, ok then. :/18:06
slangasekbdmurray: right - so I think that's a reasonable strategy18:06
stgraberslangasek: how about only ignoring permission denied (with a suitable log message)? (only discussing this as a fallback if hallyn_ can't get us to ship the audit userns kernel patch)18:06
slangasekstgraber: if loginuid is failing with a permissions error, and it's wrong to change the kernel to allow the operation, then I think pam_loginuid needs to be changed to not fail under those circumstances18:06
cjwatsonYeah, I think it would be a design error to do that in all the services18:07
=== pmahent is now known as ptmahent
bdmurrayslangasek: Just having a version of update-manager that supports Q to T upgrades hanging out in -proposed? or also requiring a command-line option for that to work?18:09
stgraberslangasek: ok. I think the implementation would be something like "ignore permission denied when writing loginuid if loginuid doesn't belong to the owner of the process" which should be specific enough to only match the userns case in reality.18:09
stgrabergah no, won't work... I was vaguely hoping uid -1 would own loginuid but that's not the case... it appears as owned by the process owner but just isn't writable...18:11
slangasekbdmurray: hmm, do we want it to go straight from Q->T, or should it be Q->S?18:12
stgraberanyway, will only spend more time thinking about the workaround if hallyn_ doesn't manage to get us the kernel fix18:12
slangasekbdmurray: since R goes EOL before Q, but S does not18:12
slangasek(I'm asking because I don't remember what we discussed)18:12
slangasekstgraber: ok, sounds good18:12
bdmurrayI believe we discussed to T because Q was closer to P the last lts18:12
stgraberslangasek: from what i remember of the upgrade testing vUDS session, we said P -> T and Q -> T18:13
slangasekok.  I thought maybe we did it because Q->S only buys you 3 more months of support before you have to upgrade again18:13
slangasek12.10 (Q) EOLs in 14.04, 13.04 (R) EOLs in 14.01, 13.10 (S) EOLs in 14.0718:14
slangasekso we can't offer Q users to upgrade to T until T releases18:15
slangasekright?18:15
slangasekwhich means it's already EOL at that point18:15
slangasekso I think we actually need to do Q->S instead18:15
bdmurraydon't we control the day 12.10 goes EOL?18:17
stgraberif it's just a matter of days, it'd be better to postpone the 12.10 EOL a bit than have to SRU every single LTS to LTS fixes to S...18:18
slangasekbdmurray: yes, but we don't want users of 12.10 to be /stuck/ on 12.10 from January to April18:21
slangasekwhich is what they'll be after 13.04 goes EOL18:21
bdmurrayah, got it.  okay from Q to S then, but the requiring a command line option still remains.18:22
slangasekyeah, I think we shouldn't require a commandline option18:22
slangasekwe should just flip the switch when R goes EOL18:22
bdmurrayslangasek: and does move the package from -proposed to -updates count as "flipping the switch"?  The potential issue is people unexpectedly upgrading from Q to S instead of R if they use the version of update-manager from -proposed.  I guess it is rather close to R's EOL though.18:25
slangasekbdmurray: yeah, I would count -proposed->-updates as flipping the switch, and think it's ok to have users who have -proposed enabled and who upgrade wind up skipping R18:26
=== bfiller is now known as bfiller_afk
hallyn_slangasek: so in a userns the client gets http://paste.ubuntu.com/6531031/ - whereas not in a userns, in place of the first REJECTED msg it gets an OK.  I note the client DOES seem to get past auth, as it gets AGREE_UNIX_FD.  <shrug>18:37
bdmurrayslangasek: oh, that'll mean an SRU for the saucy release upgrader too18:45
slangasekhallyn_: so... the cookie is rejected, but the auth succeeds?  hmm.18:52
slangasekhallyn_: at this point I'd say we need the dbus upstream mailing list18:52
slangasekbdmurray: right, I figured that would be the case18:55
hallyn_grrr18:56
hallyn_hm, and now i get Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X1119:06
hallyn_oh, nm, user error19:10
hallyn_slangasek: ah, going by http://lists.freedesktop.org/archives/dbus/2008-May/009761.html and http://lists.freedesktop.org/archives/dbus/2008-May/009831.html it seems I'm "walking on experimental ground"19:21
hallyn_but yeah i guess i may have to mail upstream to get their "Why tf would you want to do that"19:22
slangasekhallyn_: long-running experiment, what is this, CERN? :)19:27
slangasekor the dbus pitch drop19:27
sarnoldhahaha19:29
hallyn_new insight - the first step done by both is to attempt AUTH EXTERNAL.  But the working one sends AUTH EXTERNAL 31303030, while the broken one sends AUTH EXTERNAL 3019:30
* sarnold idly wonders how many free software projects have been started _and_ stopped in the time between two pitch drop events...19:30
slangaseksarnold: all of them!19:30
slangasek(well, all the defunct ones anyway :)19:31
sarnoldslangasek: that's gotta say something about our attention span!19:31
sarnoldpoor poor multics.19:31
sarnoldat least fortran and cobol are going strong :)19:31
hallyn_and now my laptop shut itself down (thermal) during release-upgrade to trusty.  nwo drops me at grub-rescue19:38
hallyn_maybe it's time to get a chromebook19:39
=== doko_ is now known as doko
zer0defwhy hello there! any fglrx package maintainers here by any chance? ;)20:21
zer0defeh, i'll just mail the proper person - at least then i can count for getting sh...tuff done20:25
zer0defok, so apparently i should mail the core dev list, which i'm not going to do, so i'll just leave it here: any fglrx packages providing drivers (be it fglrx or fglrx-updates) provides virtual packages opencl-icd and libopencl1 - would be kind if someone handled this in a timely manner; would definitely save future users some torn hair, despite this issue sitting in limbo for 2+ years20:29
tarpmanzer0def: I think you might be looking for tseliot, but he seems afk20:30
zer0defeh, i don't care, i've already moved on from ubuntu a long time ago20:30
zer0defjust trying to prevent others from violating their heads too much20:31
zer0defespecially since there's no good reason for denying people the ability to dev opencl using amd cards on ubuntu20:32
zer0defwell, at least those who rather stick to repository packages rather than do their thing.20:33
zer0defanyway, message delivered; cheers20:33
=== retoaded is now known as retoaded_biab
hallyn_stgraber: slangasek: http://lists.freedesktop.org/archives/dbus/2013-December/015867.html20:54
NoskcajIs a faster build really enough to not sync sdcc from debian? This issue is now partially fixed anyway20:58
NoskcajBenC, Can you check if sra-sdk is syncable? I didn't really understand why you made it x86 only21:05
infinityNoskcaj: https://buildd.debian.org/status/package.php?p=sra-sdk <-- Should make it obvious why it's x86-only.21:14
Noskcajthanks21:15
infinityNoskcaj: Also, no point in syncing it when it's FTBFS even on i386. :P21:15
hallyn_stgraber: regarding loginuid in userns,21:15
hallyn_hm, hold on21:15
hallyn_well, yeah.  so (1) everywhere I am, it seems to be unset, and (2) once it is set it should not be re-setable;  so21:16
hallyn_if it's so crucial thaqt it be set, then it should be set on all my logins;  and in that case, starting a container would m ean all those tasks would have my loginuid,21:17
hallyn_so the conatiner wouldn't be able to set it anyway21:17
hallyn_so i'm confused21:17
infinityNoskcaj: That said, once the i386 FTBFS is fixed, it could be synced and just fail on !x86, I'm fine with that.  I think Ben was probably just on a crusade to remove the red from the FTBFS list. :P21:17
=== retoaded_biab is now known as retoaded
Noskcajok21:18
NoskcajIs anyone around willing to give me a testimonial for MOTU? https://wiki.ubuntu.com/Noskcaj#MOTU21:19
hallyn_hm, how does this 'loginuid_immutable' kernel 'feature' work?  boot cmdline?21:21
stgraberhallyn_: yeah, it seems like it's only getting set for ssh sessions at the moment and soon for jobs started by at21:21
stgraberhallyn_: /proc/self/loginuid sure seems to be writable here...21:22
stgraberhallyn_: oh but indeed write once21:22
stgraberhallyn_: I'm just surprised that as a regular user I can echo any value in there though ;)21:22
hallyn_even ssh isn't doing it for me21:23
hallyn_(that's precise though)21:24
stgraberit sure does here (on precise)21:24
stgraberstgraber@shell01:~$ cat /proc/self/loginuid21:24
hallyn_wonder what the difference is21:24
stgraber20110521:24
hallyn_serge@ac100:~$ ssh hetzner.hallyn.com cat /proc/self/loginuid21:24
hallyn_4294967295serge@ac100:~$21:24
hallyn_now,21:24
hallyn_ok yeah in ubuntu we don't set the immutable flag - so root can clear out your loginuid.21:25
hallyn_if that were set, then even root could not21:25
hallyn_all in all, this has a use case - but to us, the way things are set up, it's useless21:25
hallyn_so i think we should simply go with the workaround you and mdeslaur were talking about21:26
hallyn_the 20 patch audit patchset doesn't even include a fix for loginuid!21:26
hallyn_just prep work :)21:26
stgraberhmm, ok21:26
stgraberthe main issue with the workaround is the need to apply it to all Ubuntu releases and to any other distro we wish to run in a userns21:26
stgraberhallyn_: is there an easy check I can do to detect whether we are in a userns or not? ideally I'd like to avoid ignoring all EPERM and only ignore them when in a userns21:28
hallyn_well you can compare /proc/$$/ns/user stat.st_ino, or just check for '0 0' in uid_map21:30
hallyn_(0 0 4294967295)21:30
stgraberhallyn_: I guess I'll have to parse uid_map, I can't find a good way to determine whether I'm in the host namespace or not based on stat.st_ino of ns/user21:34
hallyn_hm, yeah, i was thinking of a server in init_user_ns (bc that's my mindset this week :)21:37
stgraberanyway, it's not too difficult, check if the file exists, if it does, open it and read the first 3 char, if that's '0 0', we're in the host namespace21:38
hallyn_well i think someone *could* mess with you and create an ns with 0 mapped to 0, but only 1 uid :)21:40
hallyn_but i don't think you care about them.21:40
stgraberwell, if 0 is mapped to 0, then we're still actual root so should try to write loginuid21:41
hallyn_they'll fail21:41
hallyn_!init_user_ns so no capable(CAP_SYS_AUDIT).  (it's not ns_capable(ns, CAP_SYS_AUDIT))21:42
ubottuhallyn_: I am only a bot, please don't think I'm intelligent :)21:42
hallyn_\sorry ubottu21:42
stgraberhallyn_: fine, I'll specifically look for '         0          0 4294967295' then, that should do it :)21:44
stgraberhallyn_: uid_t is guranteed to always be uint32 right?21:45
hallyn_stgraber: well there is uid16 support somewhere...21:46
hallyn_no that's just legacy syscalls21:48
hallyn_shouldn't affect /proc21:48
stgraberhallyn_: good, so I don't need to care about it and can hardcode 4294967295 :)21:49
=== salem_ is now known as _salem
charliefirst timer.. cannot bzr init-repo.... getting Permission Denied (Public Key) error..help21:58
hallyn_charlie: usually when i get that it means i've not added my launchpad ssh key ito my ssh-agent keychain22:01
charliehow i do that?22:06
charlienvm...got it ...thanks22:11
charlie:( am still getting the permission denied error, even after adding the ssh key22:27
hallyn_sorry, don't know then.  you've done a bzr lp-login?22:31
NoskcajCan someone please rebuild ceilometer, it failed because a dependency was building22:39
charlieya22:42
infinityNoskcaj: The verb you want is "retry", not "rebuild".  The latter implies someone reuploading it.22:48
Noskcajinfinity, oh, ok. Thanks22:48
hallyn_infinity: so the arm64 patchset needs some work.  i'll likely drop it altogether from 1.7 until i get the set under control, since it appears to be introducing regressions in other arches22:54
infinityhallyn_: Ahh, that's a shame.  I guess I can abuse that PPA build for now if I need it.23:11
=== tiaz_ is now known as tiaz
=== freeflying_away is now known as freeflying
bdmurraystgraber: is looking for "debconf (developer)" in ubiquity debug logs a reasonable way to see if ubiquity was run in debug mode23:25
stgraberbdmurray: I'm not sure, I haven't seen one of those logs in a while, but if that's a string that appears whenever we see a debconf transaction that'd be good23:43
stgraberhallyn_, slangasek: that patch appears to do the trick for me, opinions? http://paste.ubuntu.com/6532325/23:44
bdmurraystgraber: bug 986550 (reported by you) looks to me like it was run in debug mode23:44
ubottubug 986550 in ubiquity (Ubuntu) "Ubiquity crashes with "Illegal instruction" right after starting the slideshow" [Medium,Confirmed] https://launchpad.net/bugs/98655023:45
stgraberbdmurray: yeah, that was in debug mode, so yes, looking for "debconf (developer)" should work23:46
bdmurraystgraber: okay, thanks!23:48
hallyn_stgraber: I would change it just a hair - skip the access() check, and do check return value of open()23:49
hallyn_otherwise looks good - thanks23:49
slangasekstgraber: you seem to have some extra unused variable declarations (fd_uid, count_uid).  Also, please get upstream eyeballs on this, I don't want to change the behavior of such a core security-sensitive module out of sync with upstream23:49
stgraberslangasek: oops, nice catch, I meant to use those...23:50
stgraberhallyn_: hmm, good point, will do23:50
slangasekstgraber: well, I think they're unneeded so better to drop them :)23:51
stgraberslangasek: no, they are needed as I don't want to override the existing ones.23:52
slangasekstgraber: you don't need two 'fd's, this code path is only used when fd < 023:52
stgraberslangasek: doh, yeah, you're right and count is also unused in that path, so yeah, I can just reuse them23:52
hallyn_slangasek: pshaw, if loginuid was so critical then something other than ssh shoudl be setting it :)23:54
hallyn_(but i'm curious to hear upstream response)23:54
slangasekhallyn_: well, we aren't heavy users of auditd out of the box in Ubuntu, but there are those who do feel strongly about it :)23:55
sarnoldlol23:55
slangasekand while stgraber's change looks correct to me, messing this up would give us quite the black eye ;)23:55
hallyn_yup i'm curious to hear the response23:56
NoskcajIs there a way to test if glew 1.10 is safe to merge?23:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!