Skip to content
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

Add username in nnrpd's process title #264

Open
Julien-Elie opened this issue Apr 14, 2023 · 0 comments
Open

Add username in nnrpd's process title #264

Julien-Elie opened this issue Apr 14, 2023 · 0 comments
Labels
C: nnrpd Related to nnrpd enhancement New feature or request P: low Low priority
Milestone

Comments

@Julien-Elie
Copy link
Contributor

The username (when set) could be added at the beginning of ps output:

  nnrpd: accepting connections
  nnrpd: julien 176-143-2-105.abo.bbox.fr GROUP
  nnrpd: <all> 1.2.3.4 LIST

For instance in nnrpd/nnrpd.c:

setproctitle("%s %s %s", PERMuser[0] != '\0' ? PERMuser : "-", Client.host, av[0]);

The goal is to have a way for possible auth filters to find out how many active connections a given user has. See #23.

For privacy concerns, this feature should be configurable with a readers.conf option (like addprocesstitleuser which would enable that behaviour when set to true in an access group).

@Julien-Elie Julien-Elie added enhancement New feature or request C: nnrpd Related to nnrpd P: low Low priority labels Apr 14, 2023
@Julien-Elie Julien-Elie added this to the 2.7.2 milestone Apr 14, 2023
@Julien-Elie Julien-Elie modified the milestones: 2.7.2, 2.7.3 Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: nnrpd Related to nnrpd enhancement New feature or request P: low Low priority
Development

No branches or pull requests

1 participant