[00:04] Do anyone know how apparmor automatic profile generation work? I guess its based on tracing the program while it runs? [00:06] Wondring how hard it would be to make apparomor read the source code to generate profiles. [00:06] Sander^home: correct, a basic profile is loaded and attached to the application in question [00:06] the profile is put into complain mode [00:07] in that mode, every access violation that would have resulted in a denial will be allowed and logged [00:08] Sander^home: a basic pass at reading source code isn't too hard, Novell had a development version of the tools that did just that [00:08] it never made it out of the Novell open sourcing of apparmor though [00:09] jjohansen1: problem is that some programs would access certial resources at an unknown point in time, which makes it not very accurate, I guess thats why people disables apparomor as soon as they tune settings in a server program. [00:09] how that worked is it would build the basic profile based on a binary analysis and load that, and then load it in complain mode [00:10] Sander^home: yep, its a known problem, some one just needs the time to work on it [00:11] Sander^home: its a little harder than trivial because you need to trace back the args for certain calls to reconstruct what is being passed to them, and you can only do the analysis for stuff that leads to static data [00:12] but I remember it was well worth doing [00:12] I would love to see something like that surface again [00:13] jjohansen1: If you do an source code analysis on dynamic binaries aswell? [00:14] Sander^home: you could, you could have modules for different languages, python, bash, ... [00:14] And then you could basicly say that you want to run ubuntu with all apps running fully inside apparmor profiles. [00:15] for interpreted languages [00:15] and use the llvm libs to do all kinds of code analysis for the compiled languages it supports [00:16] though fully-automatic does potentially lead to writing profiles that fully allow bugs.. [00:16] you don't have to use the llvm libs but they do so much heavy lifting for you I see no reason not to [00:16] You could even do it for compiled languages, as you have everything analyzed when you install a binary (auto downloads the source too). [00:16] sarnold: sure, you still have to audit the profiles [00:17] Sander^home: I wouldn't ship/use a profile for something without auditing the profile [00:18] autogenerated is great and everything, but its pretty useless if the generated analysis a trojan horse and gives it the access it wants but should not have [00:18] As long as you have a finite set of dependencies of source code (then you wont come up in the stop problem), and basicly interprets each programming languages use of external resources. [00:19] heck, ackermann function or snowball function are good exercises in very finite and still very difficult to decide if they'll terminate.. [00:21] jjohansen1: Thats true. You have to assume something. Have there been found many viruses which have been allowed into the ubuntu official deb mirror? [00:22] there's several, every now and then someone mails us to ask about them.. let me see if I can find a list of the viruses we ship. [00:24] Sander^home: here's a list of some of the viruses we ship; I'm not sure how well it's kept up to date, but it should be a good starting point http://bazaar.launchpad.net/~ubuntu-security/ubuntu-cve-tracker/master/view/head:/README.virus [00:24] jjohansen1: Anyway. I'm just thinking that eg. firefox could implement more tight security, eg. with seccomp (which chromeos have, and firefoxos have for some apps.) [00:37] jjohansen1: sarnold its kinda interesting how seccomp is used to restrict access to certian kernel resources, so that you cant break out of a chromeos browser tab. [00:38] Wondering what system call apparomor uses. [00:39] Sander^home: seccomp and apparmor are in many ways orthogonal; seccomp is wonderful for removing vast portions of the kernel's userspace interface, to reduce the chances that a userspace program can exploit a broken kernel interface [00:40] Sander^home: apparmor applies policies to objects in the kernel that aer sometimes quite deep in the kernel execution paths, because that's where it makes most sense to apply those access controls. [00:41] Sander^home: so while you can turn off specific capabilities for a process using apparmor, for example. it's turned off at the point that the kernel code calls capable() -- seccomp can outright disable the entire system call, which in the case of privileged system calls, can prevent exploiting flaws in the kernel code before the capable() checks [00:42] Sander^home: .. or, seccomp could be more fine-grained for some cases, to e.g. disable one system call specifically that would require disabling potentially many more interfaces with apparmor's capabilities [00:44] sarnold: so I guess seccomp is designed for browsers and apps with plugins? [00:44] Sander^home: because seccomp policies can only be installed on processes that have set the NO_NEW_PRIVS flag, and that prevents LSM domain transitions, the composition of apparmor and seccomp is more complicated than I'd like. It'd be nice if e.g. a browser would run its html engine and image decoding in different processes, with seccomp restrictions appropriate to each, and apparmor profiles appropriate to each, but that's qui [00:45] Sander^home: that's certainly the easiest place to apply it, but it can be used for many more thinsg [00:45] sarnold: the chrome browser uses diffrent processes for each tab. [00:46] firefox hasnt implemented that kind of security after what I know. [00:46] Sander^home: yes, I sure wish firefox had done that years ago.. *sigh* [00:50] I wish more than one cpu core could be used [00:50] heh, tired of firefox only taking 100% of your cpu? :) [00:51] ever [00:51] I keep wondering why firefox *pauses* for minutes at a time [00:51] cause some other tab is using 100% cpu [00:51] and if that isn't the problem, firefox is using 30+gigs of ram [00:52] my annoyance is trying to do plain text search with plain text downloads that might only be one megabyte in size.. whatever they're doing for grep is slower than molasses [00:54] I heard something that vivaldi, by former opera ceo, uses processes for tabs. But I cant remember fully. [00:55] is vivaldi the opera based on blink? it probably would do tabs in processes too [01:01] * patdk-l2 wonders why people keep spamming abuse@ === markthomas is now known as markthomas|away === lukasa is now known as lukasa_away === lukasa_away is now known as lukasa === lukasa is now known as lukasa_away === SmOkE_RU is now known as SmOkE-RU === lukasa_away is now known as lukasa === neurotus is now known as krsna [05:47] Hello? [05:49] harro === markthomas|away is now known as markthomas === Lcawte|Away is now known as Lcawte === markthomas is now known as markthomas|away [07:07] Good morning === markthomas|away is now known as markthomas [07:29] hi all I'm running ubuntu server vivid, tried to setup mpd (music player daemon) for the first time ever.. everything worked but had no sound, could someone please point me to a good tutorial for beginners? thanks [07:30] roo79x: Is PA installed or are you using Alsa? [07:30] alsa [07:31] Does Alsa work? [07:31] how do I test on server please? [07:31] roo79x: aplay /usr/share/sounds/alsa/Front_Center.wav [07:33] ok thanks, will have to buy speaker for server first will do that and return, MPD might not be a good thing for beginners very very limited information on net for dummies like me lol [07:34] thanks for the help bye [07:35] roo79x: What are you trying to do? [07:36] just stream my music from my server to any device anywhere so me and my friends listen to music [07:37] roo79x: Oh, then you want to use icecast or something as a sink, not Alsa. [07:38] icecast? i thought only radio stations used that [07:39] Icecast lets you set up an internet radio station, yes. [07:40] I ran into a similar problems with mpd+alsa. turns out it was simply muted. [07:40] Alsa is for local playback, not for streaming. [07:41] maybe ftp easier, I was told mpd was easy by a linux "guru" this is the page he told me to use http://darylwinsinger.blogspot.com.au/2012/09/installing-mpd-on-ubuntu-server.html [07:42] Ftp for audio? No. [07:50] coreycb, hey - for future reference, I don't think bandit is used during unit testing [07:50] tox has specific targets for that in the os projects [07:50] so we can probably push that out of main [07:51] * url just got sent here via the main #ubuntu [07:51] i'm in LTSP but they are kinda quiet [07:51] wanted to ask if anyone here has any experience with pinet/LTSP [07:52] i'm having difficulties trying to access CUPS in the chroot, despite adding root to the lpadmin group [08:02] ok I'm back ended up removing mpd as it's far to complicated for a dummy like me and the info on google is old or I don't understand any of it, will stick to ftp and samba. tried aplay /usr/share/sounds/alsa/Front_Center.wav just gave errors. even the mpd website is hard to fathom [08:04] roo79x: It is clear you do not under stand mdp ;) [08:04] I couldn't even get sonata on my xubuntu laptop to connect to mpd on my server [08:04] That is likely a firewall issue. [08:06] never setup firewall on any of my linux pcs [08:07] roo79x: Then it might be that mdp wasn't listening to any external interfaces. [08:08] maybe someone with better knowledge should do a dummies guide to mpd. I set bind to address to any [08:09] thanks anyways for great help kudos! will install emby-server maybe [08:31] do you think I could install ubuntu-server on a synology-nas ? [08:38] or are there any nas-hardware that I can install ubuntu-server on? [08:40] i sue the virtualization station on a qnap NAS [08:40] otherwise i think you need to use OpenNAS [08:41] sorry - freeNAS === arcsky_ is now known as arcsky === url is now known as fnurl [09:11] url: I wanted to use ubuntu-server... but just looking for a good hardware-piece === CiPi is now known as cipi === cipi is now known as CiPi === CiPi is now known as cipi [10:49] smoser: (minor) https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1491532 [10:49] Launchpad bug 1491532 in openssh (Ubuntu) "ssh-keygen invocation difficult to copy-paste" [Undecided,New] [10:49] smoser: I had noticed that too === SmOkE-RU is now known as SmOkE_RU === cipi is now known as CiPi [11:33] * CiPi Hello world [11:33] o/ === CiPi is now known as cipi === cipi is now known as CiPi === CiPi is now known as cipi === cipi is now known as CiPi === trabbit_ is now known as trabbit === trabbit_ is now known as trabbit [13:19] zul, jamespage, not sure who I should be talking to, but after a Xen update I uploaded to wily yesterday, the armhf nova-compute ci-test seems to be in fail... though maybe not since then but even sooner... apparently since Wednesday even... [13:19] link [13:19] ? [13:20] zul, http://autopkgtest.ubuntu.com/packages/n/nova/wily/armhf/ [13:20] rbasak, i'd noticed that too [13:20] zul, not quite sure this is anybodies fault... looks a bit err unstable [13:21] but its still loads better than any other OS (where it doesnt exist) [13:21] coreycb: mysql thingy ^^^ === trabbit_ is now known as trabbit [13:22] coreycb: wait nm [13:23] jamespage: can you have a peak? [13:26] zul, Processing triggers for systemd (225-1ubuntu1) ... [13:26] Failed to execute operation: Connection timed out [13:26] dpkg: error processing package systemd (--configure): [13:26] subprocess installed post-installation script returned error exit status 1 [13:27] smb, it looks like that systemd update is causing problems [13:27] jamespage, oh ok... in which of the files is that found [13:28] smb, oh - wait not any more [13:28] jamespage, I just noticed that the last fail is diffrent [13:28] yeah that [13:28] nova-compute-daemons FAIL non-zero exit status 1 [13:30] jamespage, right... just not sure whether those fail because of the xen update or fail because before the testing just did not get that far due to other issues [13:45] smb, the test installs the following packages: [13:45] DAEMONS=('nova-compute-kvm' 'nova-compute-lxc' 'nova-compute-qemu') [13:45] and then checks that nova-compute is running after each iteration [13:47] jamespage, Oh so I really could be innocent as far as I only triggered it to be run again because of reverse dependencies... [13:51] Changing xen I would suspect should only affect nova-compute-xen which is not tried. Not that it would be that simple (not sufficient to only install the nova part as one needs to make the host xen which at least requires a reboot) [14:22] zul: smb doing any libvirt work today? [14:22] hallyn, nope [14:22] hallyn: nope [14:22] hallyn: juju [14:22] k [14:50] jgrimm: https://bugs.launchpad.net/ubuntu/+source/openhpi/+bug/1488453 [14:50] Launchpad bug 1488453 in openhpi (Ubuntu) "Package postinst always fail on first install when using systemd" [High,Confirmed] [14:51] jgrimm: https://bugs.launchpad.net/charms/+source/hacluster/+bug/1479661 [14:51] Launchpad bug 1479661 in hacluster (Juju Charms Collection) "hacluster install hook fails on Vivid and Wily (pacemaker /var/lib/heartbeat home dir ownership issue)" [High,Triaged] === mlazov1 is now known as mlazov === frankban_ is now known as frankban [16:15] hello, anyone can help me with iptables or network configuration? [16:15] i have bridge and on this prodge ip aliases [16:15] on this ip i have 2 virtual machines on xen [16:16] this is public ip and i can connect to ssh from internet, but from hypervisor i cannot connect... [16:16] from hypervisor i can only ping === frankban_ is now known as frankban [16:30] zul, around still? did you help coreycb with the switch from pymysql -> mysqldb in sqlalchemy? [16:31] jamespage: i uploaded packages for coreycb but he did most of the work [16:33] zul, I have an alternative approach to using pymysql over mysqldb in sqlalc [16:33] we switch the default dialect, rather than overriding mysqldb with pymysql [16:33] oh...can i see? [16:33] this lets users still use mysqldb instead [16:33] zul, http://paste.ubuntu.com/12274472/ [16:39] zul, does that make sense? I hacked that into a deployed system and it works fine afaict [16:40] jamespage: that looks ok to me, but coreycb is the expert [16:43] zul, going to switch it as it will help unblock testing a bit - I'll catchup with coreycb on tuesday [16:43] jamespage, ok with me [16:53] curious, does anyone know if accelerated X11 is possible over xrdp? === xachet is now known as xachet_lunchins [17:29] with crontab can I use both 7 and 0 for sunday? [17:31] seems like 0 is just kept for portability === xachet_lunchins is now known as xachet === trabbit_ is now known as trabbit === trabbit_ is now known as trabbit [19:09] * CiPi Hello world again :D === markthomas is now known as markthomas|away === CiPi is now known as cipi === ksx4system_ is now known as ksx4system === beisner- is now known as beisner === lukasa_ is now known as lukasa [20:23] I just killed the first 1mb of my hard disk (dd if=/dev/zero of=/dev/sda bs=1024 count=1024 ) [20:23] The computer is still running and the partitions on sda are still mounted [20:24] Is there anyway to save the computer? [20:25] not really [20:25] at some point in the future things are going to start going very badly very quickly and there won't be any real recovery from that. [20:26] things might look fine for a while and you might even be able to copy off some data you care about and don't want to rely on your backups to recover.. [20:26] The only thing you could really do now is rsync everything off [20:26] but sooner or later you're going to need a directory structure stored in that megabyte and a kernel panic is the likely outcome.. [20:27] There is no data, everything is backed up. but it took forever to get it running how I wanted. [20:27] if you're extremely lucky you'll have used scp or rsync recently enough that their contents are cached in memory and you won't have to hit the disk to get it.. [20:27] to be fair, I typed 'sudo' before the command. So it was my own darned fault. [20:28] thanks anyways. [20:32] ok. I ran fdisk /dev/sda, recreated the partition table from memory ( my memory ). I ran dpkg-reconfigure grub-pc [20:32] Rebooted. [20:32] And it works :D [20:33] might want to fsck [20:33] yes. definitely. [20:33] can I fsck on a partition mounted read only? [20:34] yep === markthomas|away is now known as markthomas [20:40] bananapie: If fsck makes any changes to the read only mount, reboot before mounting it read/write again [20:40] kk [20:40] How's the war with the Wraith going genii? [20:41] Heh [20:41] ;) === RoyK^ is now known as RoyK === RoyK is now known as Guest27565 === Guest27565 is now known as RoyK^ === RoyK^ is now known as RoyK === bilde2910_ is now known as bilde2910 === Lcawte is now known as Lcawte|Away