From: Blaisorblade <bla...@ya...> - 2005-09-29 19:22:11
|
On Thursday 29 September 2005 10:10, Robin Lee Powell wrote: > If hosts is *not* being used as the root fs, is it possible to make > chown work in it? It doesn't work right now, but there are two ways to solve it. > If so, does it require running the UML as root? 1) If UML is running as root, we can chown the file on the host, yes. Better yet, to my surprise, this is already implemented. BUT: I don't recommend running UML as root - and especially not as setuid (somebody did it once, to allow UML to mlock() memory with a patch). 2) A better solution is to make UML own all files in the underlying host mount and use separate metadata from the host one. This is HUMFS. It's available from the incrementals page, even if it's a bit experimental. This is a separate thing from hostfs, which is kept for simple host access. With HUMFS you are using a real FS, with even a mkfs utility (included in latest uml_utilities release? I think yes). The code was under development, and worked quite well, but it included a rewrite of hostfs to share code with humfs, and this didn't work quite well. So, when merging UML in 2.6.9, all this code was left out, and it hasn't been merged because there has been no work to finish it. And development moved away to other stuff - the code is still available in the incrementals page, and resurrecting and merging it is on my TODO list. > Example: > mooix:~# chown 31013 /var/lib/mooix/system/sessionmanager/sessions/item1/ > chown: changing ownership of > `/var/lib/mooix/system/sessionmanager/sessions/item1/': Operation not > permitted > -Robin -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it |