From: David Riley <d.riley@proxmox.com>
To: Stefan Hanreich <s.hanreich@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH pve-network v5 7/7] fix #7520: config: prune orphaned and relocate moved VNet ACLs
Date: Thu, 16 Jul 2026 09:11:45 +0200 [thread overview]
Message-ID: <0823c315-bf27-4c39-a4bd-9fbd0eca6742@proxmox.com> (raw)
In-Reply-To: <9722561d-b631-402e-b69b-dde095bb206e@proxmox.com>
comment inline
On 7/15/26 5:00 PM, Stefan Hanreich wrote:
> On 7/7/26 2:06 PM, David Riley wrote:
>> [snip]
>>
>> ---
>> src/PVE/Network/SDN.pm | 115 +++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 115 insertions(+)
>>
>> diff --git a/src/PVE/Network/SDN.pm b/src/PVE/Network/SDN.pm
>> index 33a3cf3..5da425e 100644
>> --- a/src/PVE/Network/SDN.pm
>> +++ b/src/PVE/Network/SDN.pm
>> @@ -10,6 +10,7 @@ use LWP::UserAgent;
>> use Net::SSLeay;
>> use UUID;
>>
>> +use PVE::AccessControl;
>> use PVE::Cluster qw(cfs_read_file cfs_write_file cfs_lock_file);
>> use PVE::INotify;
>> use PVE::RESTEnvironment qw(log_warn);
>> @@ -238,11 +239,125 @@ sub compile_running_cfg {
>> }
>>
>> sub commit_config {
>> + my $old_cfg = cfs_read_file($RUNNING_CFG_FILENAME);
> nit: there is already running_config() for accessing the running_config.
> suppose we shoudl adjust it in compile_running_cfg as well while we're at it
Ah missed that. I'll adapt this in v6.
I'll also replace it in the compile_running_cfg in a separate commit to
keep the code tidy.
>
>> my $cfg = compile_running_cfg();
>>
>> + cleanup_access_control($old_cfg, $cfg);
>> +
>> cfs_write_file($RUNNING_CFG_FILENAME, $cfg);
>> }
>>
>> [snip]
>>
>
>
>
>
next prev parent reply other threads:[~2026-07-16 7:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 12:03 [PATCH access-control/network v5 0/7] fix #7520: sdn: prune orphaned ACLs and handle VNet migrations David Riley
2026-07-07 12:03 ` [PATCH pve-access-control v5 1/7] permission: add acl tree node parent lookup without node creation David Riley
2026-07-15 14:59 ` Stefan Hanreich
2026-07-16 7:31 ` David Riley
2026-07-07 12:03 ` [PATCH pve-access-control v5 2/7] fix #7520: sdn: add pruning SDN resources ACLs David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 3/7] test: add sdn acl pruning tests David Riley
2026-07-16 7:32 ` Daniel Kral
2026-07-16 8:05 ` David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 4/7] permission: add helper to check for active permissions David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 5/7] fix #7520: sdn: add VNet ACL migration David Riley
2026-07-15 14:59 ` Stefan Hanreich
2026-07-16 7:25 ` David Riley
2026-07-07 12:04 ` [PATCH pve-access-control v5 6/7] test: add sdn acl migration tests David Riley
2026-07-07 12:04 ` [PATCH pve-network v5 7/7] fix #7520: config: prune orphaned and relocate moved VNet ACLs David Riley
2026-07-15 15:00 ` Stefan Hanreich
2026-07-16 7:11 ` David Riley [this message]
2026-07-15 15:11 ` [PATCH access-control/network v5 0/7] fix #7520: sdn: prune orphaned ACLs and handle VNet migrations Stefan Hanreich
2026-07-16 10:47 ` superseded: " David Riley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0823c315-bf27-4c39-a4bd-9fbd0eca6742@proxmox.com \
--to=d.riley@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=s.hanreich@proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox