mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3784] Error ioctl: interface.c:302 net_if_mac: Cannot assign requested address #2386
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2386
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @svc88 on GitHub (Dec 2, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3784
Bug and expected behavior
Bin as a second letter in the first sector of a mac addressfor example:
firejail --noprofile --net=eno5 --mac=4B:8B:0B:CB:1B:FC xterm
No profile and disabling firejail
firejail --noprofile /path/to/programin a terminal? Nothingwhich <program>orfirejail --listwhile the sandbox is running)? NothingReproduce
Steps to reproduce the behavior:
firejail --noprofile --net=eno5 --mac=4B:8B:0B:CB:1B:FC xtermEnvironment
lsb_release -a,screenfetchorcat /etc/os-release)Ubuntu 18.04.5
firejail --version) exclusive or used git commit (git rev-parse HEAD)firejail version 0.9.64 release
Additional context
This crashes with an error strangely only when using a
Bas a second letter in the first sector of a mac address.Another important thing i noticed separate from the above issue, i tried entering a random invalid MAC by using the letter
Lin the last sector as the last letter and strangely enough it worked. Something is wrong with the validation of the mac address handling it seems?Can you try reproduce please?
debug output
@SkewedZeppelin commented on GitHub (Dec 2, 2020):
That isn't a valid MAC address.
Needs to be HEX
Edit: Apologies, you knew that. I didn't read enough.
I can indeed reproduce this exactly.
@svc88 commented on GitHub (Dec 2, 2020):
Yes, in summary 2 issues i noticed:
Band
@smitsohu commented on GitHub (Dec 6, 2020):
If you go through all possible values, you'll find that even numbers work and odd numbers do not (B in your example equals 11). An odd number in this position signifies a multicast address. It is not possible to assign a multicast address to an interface this way, and most likely it is not what you want anyway.
Good catch! Firejail should return an error here.
@netblue30 commented on GitHub (Dec 7, 2020):
Yes, it is a multicast address. Fixed, thanks for the bug.