-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixnote2: Could not create AF_NETLINK socket #4013
Comments
Fix: Allow nixnote2 to create AF_NETLINK sockets by adding
You should update, this version is vulnerable to CVE-2021-26910. See #3996 (comment) and #3968 (comment) and #4006 (comment) and #3982 (comment) and [I could not find this one]. Or you set
nixnote2 doesn't have a profile yet. Request one in #1139 or write it yourself. |
@rusty-snake: First of all: I updated firejail to version 0.9.64.4. Thanks also for the links referring to the vulnerability. As for my original problem:
This command is well suited for me as I use fish as my default shell and this makes getting hold of specific entries from history a piece of cake. Thank you again so much for your help. It´s greatly appreciated. Many greetings and keep safe. |
FYI: You can also create a profile for it with this
Or you start writing a profile for it. profile.tempalte with `protocol unix,inet,inet6,netlink` and the commands from default.profile
|
Hi again, thank you for pointing out the two methods of achieving the goal. That´s certainly the professional way of doing it. :) BTW: To this end I downloaded firewarden (quite a while ago now) and created entries like this one (example):
This example should demonstrate how I use firejail (with the help of firewarden) to safely display pictures with lximage-qt. I noticed this one created the same "AF_NETLINK socket" messages. I looked at the contents of the profile and found out there´s an entry Thanks again for your help. |
First of all: Here it would be Netlink adds some more permissions (but IDK exactly for what it can be used), so it's always better to not add it as long as nothing is broken. But how do you know that nothing is? If the program complains about it, it misses something it wants. |
Please do note that (There's also a case for using something like eBPF to filter AF_NETLINK traffic in firejail, but I'd guess that it'd be a monstrous task to implement.) |
Hi all and thanks a lot for your replies.
Good point. Well, the message I get is
I see. Well, perhaps it´s better not to allow it. The thing is: Those repeated "Could not create AF_NETLINK socket"-messages don´t really bother me much. It´s only when I run the command Would there be any argument aginst ignoring those messages and just running e.g. Thanks for your opinions on the matter. |
The worst thing that could happen is that the application doesn't expect that AF_NETLINK is disabled and crashes. Although I guess application functionality might be limited in some way... Netlink is usually used for stuff like modifying routing tables, accessing the kernel audit log, etc. that "normal" application shouldn't be doing, anyways, so I'd be suprised if any functionality would be broken (my best guess is that some library is trying to use Netlink to detect whenever the internet connection is lost and try to reconnect or something like that). Technically, you can use Netlink as a generic IPC interface between user-space applications, but D-Bus is much more popular for that (and is used by Qt by default and can be filtered by firejail). |
Thanks for the information. Well, nothing has crashed. It´s just those terminal-messages that I hadn´t been able to interpret. BTW: adding --noprofile to the firejail command eliminates those messages. I guess that´s to be expected. Thank you again for explaining the matter in such detail. I always like to learn something new. Many greetings. |
ENVIRONMENT:
Hi altogether,
I have a question as far as terminal output (when running firejail) is concerned:
Whenever I run the command
firejail nixnote2
the programme works alright and is sandboxed without any difficulties.Yet taking a look at the terminal output I realized that as long as nixnote2 is running I get repeated entries of
"Could not create AF_NETLINK socket".
This message gets written to the terminal incessantly (4 entries in about 10 secs) until I quit the programme.
Any idea what´s going on?
Thanks a lot in advance.
Many greetings.
Rosika
P.S.:
Running
firejail --noprofile nixnote2
doesn´t produce those logs!example output:
The text was updated successfully, but these errors were encountered: