*** andrunko has quit IRC | 00:07 | |
*** andrunko has joined #automotive | 00:12 | |
*** andrunko has quit IRC | 00:23 | |
*** andrunko has joined #automotive | 00:26 | |
*** FelixH has quit IRC | 01:11 | |
*** FelixH has joined #automotive | 01:23 | |
*** andrunko has quit IRC | 01:27 | |
*** mdurnev has joined #automotive | 01:27 | |
*** andrunko has joined #automotive | 01:36 | |
*** praneeth has quit IRC | 04:29 | |
*** praneeth has joined #automotive | 04:29 | |
*** Jakubin has joined #automotive | 06:38 | |
*** jobol has joined #automotive | 07:18 | |
*** kbroulik has joined #automotive | 07:18 | |
*** fulup-home has quit IRC | 07:24 | |
*** leon has joined #automotive | 07:25 | |
*** leon is now known as Guest65869 | 07:25 | |
*** Guest65869 is now known as leon-anavi | 07:29 | |
leon-anavi | morning | 07:29 |
---|---|---|
Jakubin | morning | 07:35 |
*** fury has quit IRC | 07:37 | |
*** toscalix has joined #automotive | 07:41 | |
*** fury has joined #automotive | 07:42 | |
*** gunnarx has joined #automotive | 07:42 | |
*** toscalix has quit IRC | 07:55 | |
dl9pf | hi | 08:03 |
*** toscalix has joined #automotive | 08:03 | |
gunnarx | hi dl9pf - do you know some good trick to manipulate a filesystem image without root privileges? | 08:07 |
dl9pf | gunnarx: hmm ... | 08:10 |
gunnarx | that means you're thinking, right? :) | 08:10 |
dl9pf | yes | 08:10 |
gunnarx | It's only mounting it that is an issue if you want to copy files to it. But I imagine the closest solution is to delegate the permission to "sudo mount" (but no other commands). | 08:12 |
gunnarx | Typically you can create an image, partition and mkfs as a normal user but not mount it to copy files to it. Ideally there are some user space tools that understand how to manipulate an ext file system image. I'm sure there must be, I've never had to use them that's all :) | 08:13 |
dl9pf | so you want to copy files to it "as root" ? | 08:13 |
gunnarx | well possibly, but that's what fakeroot/pseudo can do right? | 08:14 |
gunnarx | it's not the issue I asked for though. To copy files as any user whatsoever you need to mount it into the VFS right? Unless there are some user space tools that can do the magic? | 08:14 |
dl9pf | yes, this is more or less fakeroot/pseudos job ... lets you write wiles as if you were root | 08:14 |
dl9pf | hmm, guestmount maybe | 08:15 |
* gunnarx goes to google mounting without root | 08:15 | |
gunnarx | Yes, at first look guestmount/guestfs looks promising.... hmm I'm getting the feeling I've played with this before, unsuccessfully :) | 08:22 |
gunnarx | dl9pf, I think guestmount might work but it seems to expect some certain things which would be indicative of a filesystem of an actual virtual machine - you can get error messages like "found no operating system". I don't want it to care about that... | 08:33 |
*** fury has quit IRC | 08:34 | |
*** fury has joined #automotive | 08:39 | |
gunnarx | I didn't find anything obviously solving the issue so I think something like a suid script (or better compiled binary) that clearly restricts what you can mount and where is possibly the safest. This is to avoid general mounts would be quite unsafe. | 08:40 |
gunnarx | Putting the whole operation inside a namespace or VM ... it would isolate it from the host, but again you run into the privilege question - being privileged to start containers is a thing in itself. | 08:40 |
dl9pf | fuse ? | 08:54 |
gunnarx | Yeah, that's what I'm thinking - there ought to be something... but actually in order to copy some files in what you'd want is something that doesn't really mount the image at all, just manipulate it as if it were mounted. | 08:56 |
gunnarx | guestfs uses fuse also btw | 08:56 |
dl9pf | mount will always require root, unless a fixed mountpoint is declared in fstab - | 08:56 |
dl9pf | spin up a qemu VM and script it inside and initrd with access to the image ... not really what I would want to do ... | 08:57 |
gunnarx | I was just saying | 08:57 |
gunnarx | or sorry, did you mean it as a suggestion? I mentioned above.. | 08:58 |
dl9pf | ah, yes. | 08:58 |
gunnarx | ultimately, if you install fuse and allow mounting fuse-implemented file systems, you're still allowing mounting so security wise I would say you end up in the same place... | 08:58 |
dl9pf | the prob is that once the files are created "as root" with pseudo/fakeroot, you need to edit them as root. | 08:58 |
gunnarx | sure | 08:59 |
gunnarx | anyhow, yeah I think it's more clear to me now, what's possible, what's reasonable, and what would be safe. thanks for bouncing some ideas here. | 08:59 |
dl9pf | np | 09:00 |
dl9pf | is there a way to "merge" filesystem images ? | 09:01 |
dl9pf | or have an upper/lower flesystem and then take a new image from the resulting state ? | 09:01 |
gunnarx | will keep looking for a purely user-space solution though (FUSE is not what I mean since it hooks into the kernel and system). Can't see why it wouldn't be possible to have just a program that can copy files into an image. | 09:01 |
gunnarx | dl9pf, do you mean something similar to a union filesystem? | 09:02 |
dl9pf | yes | 09:02 |
dl9pf | your changes go into a dummy filesystem image, -> overlay A&B, image C | 09:02 |
dl9pf | union/aufs/overlayfs | 09:02 |
gunnarx | We have discussed this previously for GENIVI persistence. In my opinion it seems the way to go. | 09:03 |
gunnarx | If you have mount privileges you can do it with unionfs I believe. | 09:03 |
dl9pf | https://lwn.net/Articles/671641/ | 09:03 |
gunnarx | :) the more advanced the features get, there's always something missed | 09:05 |
*** gunnarx has quit IRC | 09:12 | |
*** gunnarx has joined #automotive | 10:10 | |
*** fury has quit IRC | 10:39 | |
*** fury has joined #automotive | 10:44 | |
*** gunnarx has quit IRC | 11:18 | |
*** gunnarx has joined #automotive | 11:59 | |
*** gunnarx has joined #automotive | 11:59 | |
*** jeremiah has joined #automotive | 12:25 | |
*** gan has joined #automotive | 12:30 | |
*** mdurnev has quit IRC | 13:27 | |
*** Olivier[matrix] has quit IRC | 13:51 | |
*** Jakubin has quit IRC | 13:54 | |
*** toscalix has quit IRC | 13:59 | |
*** nisha has quit IRC | 14:02 | |
*** nisha has joined #automotive | 14:11 | |
*** toscalix has joined #automotive | 14:19 | |
*** caiortp has joined #automotive | 14:24 | |
*** Olivier[matrix] has joined #automotive | 14:33 | |
*** gan has quit IRC | 14:44 | |
*** gunnarx has quit IRC | 14:44 | |
*** gunnarx has joined #automotive | 14:44 | |
*** gunnarx has joined #automotive | 14:44 | |
*** AlisonChaiken has quit IRC | 14:53 | |
*** kbroulik has quit IRC | 14:59 | |
*** kooltux has quit IRC | 15:00 | |
*** mvick has joined #automotive | 15:06 | |
*** persia has quit IRC | 15:13 | |
*** persia has joined #automotive | 15:16 | |
*** AlisonChaiken has joined #automotive | 15:23 | |
*** clopez has quit IRC | 15:30 | |
*** waltminer has joined #automotive | 15:32 | |
*** clopez has joined #automotive | 15:36 | |
*** waltminer_ has joined #automotive | 15:46 | |
*** waltminer has quit IRC | 15:49 | |
*** waltminer_ is now known as waltminer | 15:49 | |
*** kooltux` has joined #automotive | 15:54 | |
*** toscalix has quit IRC | 15:59 | |
*** gunnarx has quit IRC | 16:09 | |
*** lil_sprout has quit IRC | 16:17 | |
*** jlrmagnus has joined #automotive | 16:38 | |
*** mpaolino has joined #automotive | 17:01 | |
mpaolino | waltminer, are you connected? | 17:02 |
mpaolino | in the AMM schedule, the HW isolation BoF is scheduled twice | 17:05 |
mpaolino | since in the current schedule, on September 7th you should be in two places at the same time, I guess the filan date is September 8th at 3PM | 17:07 |
mpaolino | let me know! | 17:07 |
*** waltminer has quit IRC | 17:13 | |
*** mpaolino has quit IRC | 17:21 | |
*** waltminer has joined #automotive | 17:25 | |
*** jobol has quit IRC | 18:31 | |
*** waltminer has quit IRC | 19:01 | |
*** gunnarx has joined #automotive | 19:02 | |
*** gunnarx has joined #automotive | 19:02 | |
*** waltminer has joined #automotive | 19:03 | |
*** waltminer_ has joined #automotive | 19:06 | |
*** waltminer has quit IRC | 19:08 | |
*** waltminer_ is now known as waltminer | 19:08 | |
*** leon-anavi has quit IRC | 19:09 | |
*** jlrmagnus has quit IRC | 20:05 | |
*** jlrmagnus has joined #automotive | 20:20 | |
*** jobol has joined #automotive | 20:31 | |
*** jlrmagnus has quit IRC | 20:55 | |
*** caiortp has quit IRC | 20:56 | |
*** jeremiah has quit IRC | 21:00 | |
*** jlrmagnus has joined #automotive | 21:03 | |
*** jlrmagnus has quit IRC | 21:33 | |
*** jlrmagnus has joined #automotive | 22:03 | |
*** clopez has quit IRC | 22:29 | |
*** clopez has joined #automotive | 22:36 | |
*** jlrmagnus has quit IRC | 22:50 | |
*** jlrmagnus has joined #automotive | 23:01 | |
*** gunnarx has quit IRC | 23:09 | |
*** jeremiah has joined #automotive | 23:29 | |
*** jlrmagnus has quit IRC | 23:51 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!