[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH: hurd x6]
From: |
Damien Zammit |
Subject: |
Re: [PATCH: hurd x6] |
Date: |
Mon, 8 Mar 2021 13:30:14 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 7/3/21 9:25 pm, Samuel Thibault wrote:
> Damien Zammit, le dim. 07 mars 2021 17:39:04 +1100, a ecrit:
>> [PATCH 3/6] libnetfs: Hacks to allow pci to run with no cred
>>
>> This is still needed to bypass the cred uid=0.
>> I tried to call fsys_getroot, but it failed/hung when running it
>> at the point where I needed the root port.
>
> Where is that point?
As soon as fsys_startup returns in pcifs_startup,
it returns a realnode == MACH_PORT_NULL.
Ideally, I need to call fsys_getroot right then and
return from pcifs_startup with an actual protid to the pci root.
But if I do this, it hangs. (I think it doesn't have a auth or proc server
available).
>> Can we live with this patch for now?
>
> No, !dircred can come from various cases, like the passed port name
> being bogus or for an improper class etc. Basically you'd give to
> anybody malignant enough root access to all libnetfs translators.
Ok, this is a problem that I don't know how to solve.
Damien
- [PATCH: hurd x6], Damien Zammit, 2021/03/07
- [PATCH 2/6] pci-arbiter: Introduce machdev into this server, Damien Zammit, 2021/03/07
- [PATCH 3/6] libnetfs: Hacks to allow pci to run with no cred, Damien Zammit, 2021/03/07
- [PATCH 4/6] rumpdisk: Don't pretend to be the arbiter anymore, Damien Zammit, 2021/03/07
- [PATCH 1/6] pci-arbiter: Fix brokenness, Damien Zammit, 2021/03/07
- [PATCH 6/6] pci-arbiter: Close correctly, Damien Zammit, 2021/03/07
- [PATCH 5/6] machdev,pci,rump: fix shutdown dosync, Damien Zammit, 2021/03/07
- Re: [PATCH: hurd x6], Samuel Thibault, 2021/03/07
- Re: [PATCH: hurd x6],
Damien Zammit <=