hywax / lxc-idmapper

LXC unprivileged mapper
https://hywax.space/projects/lxc-id-mapper
MIT License
7 stars 1 forks source link

[BUG] <title>host id and client id are flipped #42

Open AlkaizerLord opened 3 weeks ago

AlkaizerLord commented 3 weeks ago

Version

No response

Describe the problem

The weblink you provided to test out is flipping the host id and the client id

On my proxmox host I have video id 44 and render id 104

on my lxc I have video id 44 and render id 106

when providing these inputs I get this output

lxc.idmap: u 0 100000 44 lxc.idmap: g 0 100000 44 lxc.idmap: u 44 44 1 lxc.idmap: g 44 44 1 lxc.idmap: u 45 100045 60 lxc.idmap: g 45 100045 60 lxc.idmap: u 104 106 1 lxc.idmap: g 104 106 1 lxc.idmap: u 105 100105 65431 lxc.idmap: g 105 100105 65431

This is incorrect and the output should have 104 and 106 flipped as the client id should be the first column of numbers and the host ids should be the second column of numbers like this

lxc.idmap: u 0 100000 44 lxc.idmap: u 44 44 1 lxc.idmap: u 45 100045 60 lxc.idmap: u 104 106 1 lxc.idmap: u 105 100105 65429 lxc.idmap: g 0 100000 44 lxc.idmap: g 44 44 1 lxc.idmap: g 45 100045 61 lxc.idmap: g 106 104 1 lxc.idmap: g 107 100107 65429

the subuid and the subgid are also showing the client id when they should be the host id

Additional info

No response

hywax-assistant commented 3 weeks ago

👋 @AlkaizerLord Thanks for opening your first issue here! To help make it easier for us to investigate your issue, please follow the contributing guidelines.

If you like this project, please ⭐ star our repo.