Hi,
Here is the details to my system:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.119-7.5.0-00057-g86497e203ba0 #1-Torizon SMP PREEMPT Mon Jun 30 14:11:55 UTC 2025
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/7f1184bf220a/0
Distro name: NAME="Torizon OS Upstream"
Distro version: VERSION_ID=7.5.0-build.30
Distro variant: VARIANT="Docker"
Hostname: colibri-imx7-emmc-07311078
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Colibri iMX7D 1GB (eMMC) on Colibri Evaluation Board V3
Toradex version: 0039 V1.1B
Serial number: 07311078
Processor arch: armv7l
------------------------------------------------------------
I am writing C# code to access the CAN bus and thus control/interrogate the controller in our product. My development environment is VS code with the Torizon extension
The first thing the C# application does is check if it has NET_ADMIN privileges. This is needed to configure the CAN bus. This privilege is granted to the container/application using the docker-compose directive:
cap_add:
- NET_ADMIN
and when I build and execute my container the application reports that It has this privilege.
However, when I debug the container the application reports It does not have this privilege and the application aborts.
The debug container definition in the docker-compose.yml file also has the above cap_add statement.
How do I run the application in the debugger with this privileges?
Regards
Lloyd