/srv/irclogs.ubuntu.com/2015/09/04/#ubuntu-server.txt

Sander^homeDo anyone know how apparmor automatic profile generation work? I guess its based on tracing the program while it runs?00:04
Sander^homeWondring how hard it would be to make apparomor read the source code to generate profiles.00:06
jjohansen1Sander^home: correct, a basic profile is loaded and attached to the application in question00:06
jjohansen1the profile is put into complain mode00:06
jjohansen1in that mode, every access violation that would have resulted in a denial will be allowed and logged00:07
jjohansen1Sander^home: a basic pass at reading source code isn't too hard, Novell had a development version of the tools that did just that00:08
jjohansen1it never made it out of the Novell open sourcing of apparmor though00:08
Sander^homejjohansen1: 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
jjohansen1how that worked is it would build the basic profile based on a binary analysis and load that, and then load it in complain mode00:09
jjohansen1Sander^home: yep, its a known problem, some one just needs the time to work on it00:10
jjohansen1Sander^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 data00:11
jjohansen1but I remember it was well worth doing00:12
jjohansen1I would love to see something like that surface again00:12
Sander^homejjohansen1: If you do an source code analysis on dynamic binaries aswell?00:13
jjohansen1Sander^home: you could, you could have modules for different languages, python, bash, ...00:14
Sander^homeAnd then you could basicly say that you want to run ubuntu with all apps running fully inside apparmor profiles.00:14
jjohansen1for interpreted languages00:15
jjohansen1and use the llvm libs to do all kinds of code analysis for the compiled languages it supports00:15
sarnoldthough fully-automatic does potentially lead to writing profiles that fully allow bugs..00:16
jjohansen1you don't have to use the llvm libs but they do so much heavy lifting for you I see no reason not to00:16
Sander^homeYou could even do it for compiled languages, as you have everything analyzed when you install a binary (auto downloads the source too).00:16
jjohansen1sarnold: sure, you still have to audit the profiles00:16
jjohansen1Sander^home: I wouldn't ship/use a profile for something without auditing the profile00:17
jjohansen1autogenerated 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 have00:18
Sander^homeAs 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:18
sarnoldheck, ackermann function or snowball function are good exercises in very finite and still very difficult to decide if they'll terminate..00:19
Sander^homejjohansen1: Thats true. You have to assume something. Have there been found many viruses which have been allowed into the ubuntu official deb mirror?00:21
sarnoldthere'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:22
sarnoldSander^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.virus00:24
Sander^homejjohansen1: 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:24
Sander^homejjohansen1: 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:37
Sander^homeWondering what system call apparomor uses.00:38
sarnoldSander^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 interface00:39
sarnoldSander^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:40
sarnoldSander^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() checks00:41
sarnoldSander^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 capabilities00:42
Sander^homesarnold: so I guess seccomp is designed for browsers and apps with plugins?00:44
sarnoldSander^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 qui00:44
sarnoldSander^home: that's certainly the easiest place to apply it, but it can be used for many more thinsg00:45
Sander^homesarnold: the chrome browser uses diffrent processes for each tab.00:45
Sander^homefirefox hasnt implemented that kind of security after what I know.00:46
sarnoldSander^home: yes, I sure wish firefox had done that years ago.. *sigh*00:46
patdk-l2I wish more than one cpu core could be used00:50
sarnoldheh, tired of firefox only taking 100% of your cpu? :)00:50
patdk-l2ever00:51
patdk-l2I keep wondering why firefox *pauses* for minutes at a time00:51
patdk-l2cause some other tab is using 100% cpu00:51
patdk-l2and if that isn't the problem, firefox is using 30+gigs of ram00:51
sarnoldmy 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 molasses00:52
Sander^homeI heard something that vivaldi, by former opera ceo, uses processes for tabs. But I cant remember fully.00:54
sarnoldis vivaldi the opera based on blink? it probably would do tabs in processes too00:55
* patdk-l2 wonders why people keep spamming abuse@01:01
=== 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
FritzTechsHello?05:47
Norbinharro05:49
=== markthomas|away is now known as markthomas
=== Lcawte|Away is now known as Lcawte
=== markthomas is now known as markthomas|away
lordievaderGood morning07:07
=== markthomas|away is now known as markthomas
roo79x 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? thanks07:29
lordievaderroo79x: Is PA installed or are you using Alsa?07:30
roo79xalsa07:30
lordievaderDoes Alsa work?07:31
roo79xhow do I test on server please?07:31
lordievaderroo79x: aplay /usr/share/sounds/alsa/Front_Center.wav07:31
roo79xok 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 lol07:33
roo79xthanks for the help bye07:34
lordievaderroo79x: What are you trying to do?07:35
roo79xjust stream my music from my server to any device anywhere so me and my friends listen to music07:36
lordievaderroo79x: Oh, then you want to use icecast or something as a sink, not Alsa.07:37
roo79xicecast? i thought only radio stations used that07:38
lordievaderIcecast lets you set up an internet radio station, yes.07:39
shaunoI ran into a similar problems with mpd+alsa.  turns out it was simply muted.07:40
lordievaderAlsa is for local playback, not for streaming.07:40
roo79xmaybe 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.html07:41
lordievaderFtp for audio? No.07:42
jamespagecoreycb, hey - for future reference, I don't think bandit is used during unit testing07:50
jamespagetox has specific targets for that in the os projects07:50
jamespageso we can probably push that out of main07:50
* url just got sent here via the main #ubuntu07:51
urli'm in LTSP but they are kinda quiet07:51
urlwanted to ask if anyone here has any experience with pinet/LTSP07:51
urli'm having difficulties trying to access CUPS in the chroot, despite adding root to the lpadmin group07:52
roo79xok 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 fathom08:02
lordievaderroo79x: It is clear you do not under stand mdp ;)08:04
roo79xI couldn't even get sonata on my xubuntu laptop to connect to mpd on my server08:04
lordievaderThat is likely a firewall issue.08:04
roo79xnever setup firewall on any of my linux pcs08:06
lordievaderroo79x: Then it might be that mdp wasn't listening to any external interfaces.08:07
roo79xmaybe someone with better knowledge should do a dummies guide to mpd. I set bind to address to any08:08
roo79xthanks anyways for great help kudos! will install emby-server maybe08:09
pragomer1do you think I could install ubuntu-server on a synology-nas ?08:31
pragomer1or are there any nas-hardware that I can install ubuntu-server on?08:38
urli sue the virtualization station on a qnap NAS08:40
urlotherwise i think you need to use OpenNAS08:40
urlsorry - freeNAS08:41
=== arcsky_ is now known as arcsky
=== url is now known as fnurl
pragomer1url: I wanted to use ubuntu-server... but just looking for a good hardware-piece09:11
=== CiPi is now known as cipi
=== cipi is now known as CiPi
=== CiPi is now known as cipi
rbasaksmoser: (minor) https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/149153210:49
ubottuLaunchpad bug 1491532 in openssh (Ubuntu) "ssh-keygen invocation difficult to copy-paste" [Undecided,New]10:49
rbasaksmoser: I had noticed that too10:49
=== SmOkE-RU is now known as SmOkE_RU
=== cipi is now known as CiPi
* CiPi Hello world11:33
lordievadero/11:33
=== 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
smbzul, 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
zullink13:19
zul?13:19
smbzul, http://autopkgtest.ubuntu.com/packages/n/nova/wily/armhf/13:20
smoserrbasak, i'd noticed that too13:20
smbzul, not quite sure this is anybodies fault... looks a bit err unstable13:20
smoserbut its still loads better than any other OS (where it doesnt exist)13:21
zulcoreycb: mysql thingy ^^^13:21
=== trabbit_ is now known as trabbit
zulcoreycb: wait nm13:22
zuljamespage: can you have a peak?13:23
jamespagezul, Processing triggers for systemd (225-1ubuntu1) ...13:26
jamespageFailed to execute operation: Connection timed out13:26
jamespagedpkg: error processing package systemd (--configure):13:26
jamespage subprocess installed post-installation script returned error exit status 113:26
jamespagesmb, it looks like that systemd update is causing problems13:27
smbjamespage, oh ok... in which of the files is that found13:27
jamespagesmb, oh - wait not any more13:28
smbjamespage, I just noticed that the last fail is diffrent13:28
smbyeah that13:28
jamespagenova-compute-daemons FAIL non-zero exit status 113:28
smbjamespage, 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 issues13:30
jamespagesmb, the test installs the following packages:13:45
jamespageDAEMONS=('nova-compute-kvm' 'nova-compute-lxc' 'nova-compute-qemu')13:45
jamespageand then checks that nova-compute is running after each iteration13:45
smbjamespage, Oh so I really could be innocent as far as I only triggered it to be run again because of reverse dependencies...13:47
smbChanging 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)13:51
hallynzul: smb doing any libvirt work today?14:22
smbhallyn, nope14:22
zulhallyn: nope14:22
zulhallyn: juju14:22
hallynk14:22
rbasakjgrimm: https://bugs.launchpad.net/ubuntu/+source/openhpi/+bug/148845314:50
ubottuLaunchpad bug 1488453 in openhpi (Ubuntu) "Package postinst always fail on first install when using systemd" [High,Confirmed]14:50
rbasakjgrimm: https://bugs.launchpad.net/charms/+source/hacluster/+bug/147966114:51
ubottuLaunchpad 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]14:51
=== mlazov1 is now known as mlazov
=== frankban_ is now known as frankban
wiuempehello, anyone can help me with iptables or network configuration?16:15
wiuempei have bridge and on this prodge ip aliases16:15
wiuempeon this ip i have 2 virtual machines on xen16:15
wiuempethis is public ip and i can connect to ssh from internet, but from hypervisor i cannot connect...16:16
wiuempefrom hypervisor i can only ping16:16
=== frankban_ is now known as frankban
jamespagezul, around still? did you help coreycb with the switch from pymysql -> mysqldb in sqlalchemy?16:30
zuljamespage: i uploaded packages for coreycb but he did most of the work16:31
jamespagezul, I have an alternative approach to using pymysql over mysqldb in sqlalc16:33
jamespagewe switch the default dialect, rather than overriding mysqldb with pymysql16:33
zuloh...can i see?16:33
jamespagethis lets users still use mysqldb instead16:33
jamespagezul, http://paste.ubuntu.com/12274472/16:33
jamespagezul, does that make sense? I hacked that into a deployed system and it works fine afaict16:39
zuljamespage: that looks ok to me, but coreycb is the expert16:40
jamespagezul, going to switch it as it will help unblock testing a bit - I'll catchup with coreycb on tuesday16:43
zuljamespage,  ok with me16:43
shadeslayercurious, does anyone know if accelerated X11 is possible over xrdp?16:53
=== xachet is now known as xachet_lunchins
larsiwith crontab can I use both 7 and 0 for sunday?17:29
larsiseems like 0 is just kept for portability17:31
=== xachet_lunchins is now known as xachet
=== trabbit_ is now known as trabbit
=== trabbit_ is now known as trabbit
* CiPi Hello world again :D19:09
=== 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
bananapieI just killed the first 1mb of my hard disk (dd if=/dev/zero of=/dev/sda bs=1024 count=1024 )20:23
bananapieThe computer is still running and the partitions on sda are still mounted20:23
bananapieIs there anyway to save the computer?20:24
sarnoldnot really20:25
sarnoldat 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:25
sarnoldthings 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
geniiThe only thing you could really do now is rsync everything off20:26
sarnoldbut sooner or later you're going to need a directory structure stored in that megabyte and a kernel panic is the likely outcome..20:26
bananapieThere is no data, everything is backed up. but it took forever to get it running how I wanted.20:27
sarnoldif 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
bananapieto be fair, I typed 'sudo' before the command. So it was my own darned fault.20:27
bananapiethanks anyways.20:28
bananapieok. I ran fdisk /dev/sda, recreated the partition table from memory ( my memory ). I ran dpkg-reconfigure grub-pc20:32
bananapieRebooted.20:32
bananapieAnd it works :D20:32
geniimight want to fsck20:33
bananapieyes. definitely.20:33
bananapiecan I fsck on a partition mounted read only?20:33
geniiyep20:34
=== markthomas|away is now known as markthomas
geniibananapie: If fsck makes any changes to the read only mount, reboot before mounting it read/write again20:40
bananapiekk20:40
bananapieHow's the war with the Wraith going genii?20:40
geniiHeh20:41
bananapie;)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

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