View Issue Details

IDProjectCategoryView StatusLast Update
0008361Kali LinuxGeneral Bugpublic2023-06-28 06:20
ReporterMike-Ki-ASD Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2023.2 
Summary0008361: Permission Issues in NetworkManager (only in the Hyper-V Version)
Description

I encountered a bug in the Hyper-V version of Kali Linux where I was unable to change network connections using NetworkManager. To address this issue, I made some modifications to the polkit-1 configuration files, which resolved the problem. However, I would like to report this bug to ensure that it is addressed and resolved in future releases.

Steps To Reproduce
  1. Install the Hyper-V version of Kali Linux.
  2. Attempt to change network connections using NetworkManager.
  3. Observe that the necessary permissions or options are not available.
  4. Apply the following workaround to fix the issue:
    4.1. Run the command: sudo cp /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.NetworkManager.pkla /etc/polkit-1/localauthority/
    4.2 Run the command: sudo vim /etc/polkit-1/localauthority/ and modify the following entries:
    Change ResultAny=no to ResultAny=yes.
    Change ResultInactive=no to ResultInactive=yes.
  5. Verify that after applying the workaround, the network connections can be successfully changed using NetworkManager.
Additional Information

Expected Results:
The kali user should be able to change network connections using NetworkManager in the Hyper-V version of Kali Linux without the need for manual modifications to the polkit-1 configuration files.

Actual Results:
The necessary permissions or options to change network connections are not available by default in the Hyper-V version of Kali Linux. A workaround involving modifications to the polkit-1 configuration files is required to resolve the issue.

Attached Files

Activities

Mike-Ki-ASD

Mike-Ki-ASD

2023-06-15 16:47

reporter   ~0018185

I used the command nm-connection-editor to open the NetworkManager connection editor. And the gear wheel marked in the screenshot for editing the connection was grayed out and could not be clicked.

nm.png (47,346 bytes)   
nm.png (47,346 bytes)   
arnaudr

arnaudr

2023-06-28 06:20

manager   ~0018202

Hello, and sorry for the late reply! Why do you need to modify the network connections? In the Hyper-V VM, there's only a ethernet card I believe (no wifi), so there's not much to configure, right?

I did a bit research, it seems that this default configuration is actually what we want. In Hyper-V, you're connected with the VM over xrdp, ie. over the network. If you can modify network settings, it becomes very easy to shoot yourself in the foot. You can easily disable the network, thus closing the xrdp link, and then you can't interact with the VM anymore. I didn't test that myself, but it's my understanding.

Issue History

Date Modified Username Field Change
2023-06-15 16:37 Mike-Ki-ASD New Issue
2023-06-15 16:47 Mike-Ki-ASD File Added: nm.png
2023-06-15 16:47 Mike-Ki-ASD Note Added: 0018185
2023-06-28 06:20 arnaudr Note Added: 0018202