-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
modules/avahi: Sync module defaults with upstream #361191
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,19 +175,19 @@ in | |
publish = { | ||
enable = lib.mkOption { | ||
type = lib.types.bool; | ||
default = false; | ||
default = true; | ||
description = "Whether to allow publishing in general."; | ||
}; | ||
|
||
userServices = lib.mkOption { | ||
type = lib.types.bool; | ||
default = false; | ||
default = true; | ||
description = "Whether to publish user services. Will set `addresses=true`."; | ||
}; | ||
Comment on lines
182
to
186
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this reads like it is security relevant https://github.com/avahi/avahi/blob/1dade81cbf4d3e3f49784e44e543cd77046c79df/man/avahi-daemon.conf.5.xml.in#L226-L230 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no default user services. Check |
||
|
||
addresses = lib.mkOption { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This reads like it should only be enabled on publishing servers https://github.com/avahi/avahi/blob/1dade81cbf4d3e3f49784e44e543cd77046c79df/man/avahi-daemon.conf.5.xml.in#L243-L248 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this is also required to reply to mDNS requests. |
||
type = lib.types.bool; | ||
default = false; | ||
default = true; | ||
description = "Whether to register mDNS address records for all local IP addresses."; | ||
}; | ||
|
||
|
@@ -210,14 +210,14 @@ in | |
|
||
domain = lib.mkOption { | ||
type = lib.types.bool; | ||
default = false; | ||
default = true; | ||
description = "Whether to announce the locally used domain name for browsing by other hosts."; | ||
}; | ||
}; | ||
|
||
nssmdns4 = lib.mkOption { | ||
type = lib.types.bool; | ||
default = false; | ||
default = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the only option I have ever enabled on any of my clients. I think all the others are just announcing information into the network you are connecting to for no good reason and especially on public wifi we don't want to announce cpu information or why would we? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I agree that probably nobody cares about CPU information on a public Wi-Fi. However, I don't see where this does any harm. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tracking, mostly. Fingerprinting can involve basically any details of your system, so exposing as little of that as possible is valuable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the use case to publish those information? Why should it be enabled by default if we don't know why we enabled it? Also do we really want to expand the output of avahi-browse -a with services and information that we coulnd't come up with a reason? We probably want to change nssmdns4 to default to yes because that is the most common usecase for avahi and without it, it doesn't do much but I cannot follow why we should change all the other options. |
||
description = '' | ||
Whether to enable the mDNS NSS (Name Service Switch) plug-in for IPv4. | ||
Enabling it allows applications to resolve names in the `.local` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this I only ever enabled on machines like audio or print servers.