[pve-devel] [PATCH container v5 24/32] add LXC::Namespaces module
Fiona Ebner
f.ebner at proxmox.com
Tue Mar 25 14:06:56 CET 2025
Am 24.03.25 um 13:38 schrieb Wolfgang Bumiller:
> On Fri, Mar 21, 2025 at 02:48:44PM +0100, Fiona Ebner wrote:
>> diff --git a/src/PVE/LXC/Namespaces.pm b/src/PVE/LXC/Namespaces.pm
>> new file mode 100644
>> index 0000000..e4b1e5f
>> --- /dev/null
>> +++ b/src/PVE/LXC/Namespaces.pm
>> @@ -0,0 +1,60 @@
>> +package PVE::LXC::Namespaces;
>> +
>> +use strict;
>> +use warnings;
>> +
>> +use Fcntl qw(O_WRONLY);
>> +use Socket;
>> +
>> +use PVE::Tools;
>> +
>> +use constant {CLONE_NEWNS => 0x00020000,
>> + CLONE_NEWUSER => 0x10000000};
>
> nit: ^ those can be imported from `PVE::Tools`.
Will do so in v6.
More information about the pve-devel
mailing list