public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] nss: remove obsolete code
@ 2020-08-20 12:42 Thorsten Kukuk
  2020-08-26  8:12 ` Thorsten Kukuk
  2020-08-26  9:15 ` Andreas Schwab
  0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Kukuk @ 2020-08-20 12:42 UTC (permalink / raw)
  To: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]


Hi,

glibc still ships with the /etc/default/nss configuration file
and the defines for it, but the code reading and using it got
completly removed. So the config file and the defines should be
removed, too.

Ok to commit?

  Thorsten
-- 
Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg)

[-- Attachment #2: 0001-Remove-obsolete-default-nss-code.patch --]
[-- Type: text/x-patch, Size: 2920 bytes --]

From d2b96c651900fec532fd2ecb0d755b4adb458b77 Mon Sep 17 00:00:00 2001
From: Thorsten Kukuk <kukuk@suse.com>
Date: Thu, 20 Aug 2020 14:36:52 +0200
Subject: [PATCH 1/1] Remove obsolete default/nss code

All code reading /etc/default/nss and using the internal
defines got removed, so the config file should be removed, too.
---
 nis/libnsl.h |  6 ------
 nis/nss      | 37 -------------------------------------
 2 files changed, 43 deletions(-)
 delete mode 100644 nis/nss

diff --git a/nis/libnsl.h b/nis/libnsl.h
index 64ca262579..d9235ef604 100644
--- a/nis/libnsl.h
+++ b/nis/libnsl.h
@@ -17,12 +17,6 @@
 
 #include <rpcsvc/nis.h>
 
-#define NSS_FLAG_NETID_AUTHORITATIVE	1
-#define NSS_FLAG_SERVICES_AUTHORITATIVE	2
-#define NSS_FLAG_SETENT_BATCH_READ	4
-#define NSS_FLAG_ADJUNCT_AS_SHADOW	8
-
-
 /* Set up everything for a call to __do_niscall3.  */
 extern nis_error __prepare_niscall (const_nis_name name, directory_obj **dirp,
 				    dir_binding *bptrp, unsigned int flags);
diff --git a/nis/nss b/nis/nss
deleted file mode 100644
index 0ac6774a1f..0000000000
--- a/nis/nss
+++ /dev/null
@@ -1,37 +0,0 @@
-# /etc/default/nss
-# This file can theoretically contain a bunch of customization variables
-# for Name Service Switch in the GNU C library.  For now there are only
-# four variables:
-#
-# NETID_AUTHORITATIVE
-#   If set to TRUE, the initgroups() function will accept the information
-#   from the netid.byname NIS map as authoritative.  This can speed up the
-#   function significantly if the group.byname map is large.  The content
-#   of the netid.byname map is used AS IS.  The system administrator has
-#   to make sure it is correctly generated.
-#NETID_AUTHORITATIVE=TRUE
-#
-# SERVICES_AUTHORITATIVE
-#   If set to TRUE, the getservbyname{,_r}() function will assume
-#   services.byservicename NIS map exists and is authoritative, particularly
-#   that it contains both keys with /proto and without /proto for both
-#   primary service names and service aliases.  The system administrator
-#   has to make sure it is correctly generated.
-#SERVICES_AUTHORITATIVE=TRUE
-#
-# SETENT_BATCH_READ
-#  If set to TRUE, various setXXent() functions will read the entire
-#  database at once and then hand out the requests one by one from
-#  memory with every getXXent() call.  Otherwise each getXXent() call
-#  might result into a network communication with the server to get
-#  the next entry.
-#SETENT_BATCH_READ=TRUE
-#
-# ADJUNCT_AS_SHADOW
-#  If set to TRUE, the passwd routines in the NIS NSS module will not
-#  use the passwd.adjunct.byname tables to fill in the password data
-#  in the passwd structure.  This is a security problem if the NIS
-#  server cannot be trusted to send the passwd.adjuct table only to
-#  privileged clients.  Instead the passwd.adjunct.byname table is
-#  used to synthesize the shadow.byname table if it does not exist.
-#ADJUNCT_AS_SHADOW=TRUE
-- 
2.26.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nss: remove obsolete code
  2020-08-20 12:42 [PATCH] nss: remove obsolete code Thorsten Kukuk
@ 2020-08-26  8:12 ` Thorsten Kukuk
  2020-08-26  9:15 ` Andreas Schwab
  1 sibling, 0 replies; 3+ messages in thread
From: Thorsten Kukuk @ 2020-08-26  8:12 UTC (permalink / raw)
  To: libc-alpha


Hi,

Since I haven't seen any reaction, I would like to commit this.

  Thorsten

On Thu, Aug 20, Thorsten Kukuk wrote:

> 
> Hi,
> 
> glibc still ships with the /etc/default/nss configuration file
> and the defines for it, but the code reading and using it got
> completly removed. So the config file and the defines should be
> removed, too.
> 
> Ok to commit?
> 
>   Thorsten
> -- 
> Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS
> SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
> Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg)

> >From d2b96c651900fec532fd2ecb0d755b4adb458b77 Mon Sep 17 00:00:00 2001
> From: Thorsten Kukuk <kukuk@suse.com>
> Date: Thu, 20 Aug 2020 14:36:52 +0200
> Subject: [PATCH 1/1] Remove obsolete default/nss code
> 
> All code reading /etc/default/nss and using the internal
> defines got removed, so the config file should be removed, too.
> ---
>  nis/libnsl.h |  6 ------
>  nis/nss      | 37 -------------------------------------
>  2 files changed, 43 deletions(-)
>  delete mode 100644 nis/nss
> 
> diff --git a/nis/libnsl.h b/nis/libnsl.h
> index 64ca262579..d9235ef604 100644
> --- a/nis/libnsl.h
> +++ b/nis/libnsl.h
> @@ -17,12 +17,6 @@
>  
>  #include <rpcsvc/nis.h>
>  
> -#define NSS_FLAG_NETID_AUTHORITATIVE	1
> -#define NSS_FLAG_SERVICES_AUTHORITATIVE	2
> -#define NSS_FLAG_SETENT_BATCH_READ	4
> -#define NSS_FLAG_ADJUNCT_AS_SHADOW	8
> -
> -
>  /* Set up everything for a call to __do_niscall3.  */
>  extern nis_error __prepare_niscall (const_nis_name name, directory_obj **dirp,
>  				    dir_binding *bptrp, unsigned int flags);
> diff --git a/nis/nss b/nis/nss
> deleted file mode 100644
> index 0ac6774a1f..0000000000
> --- a/nis/nss
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -# /etc/default/nss
> -# This file can theoretically contain a bunch of customization variables
> -# for Name Service Switch in the GNU C library.  For now there are only
> -# four variables:
> -#
> -# NETID_AUTHORITATIVE
> -#   If set to TRUE, the initgroups() function will accept the information
> -#   from the netid.byname NIS map as authoritative.  This can speed up the
> -#   function significantly if the group.byname map is large.  The content
> -#   of the netid.byname map is used AS IS.  The system administrator has
> -#   to make sure it is correctly generated.
> -#NETID_AUTHORITATIVE=TRUE
> -#
> -# SERVICES_AUTHORITATIVE
> -#   If set to TRUE, the getservbyname{,_r}() function will assume
> -#   services.byservicename NIS map exists and is authoritative, particularly
> -#   that it contains both keys with /proto and without /proto for both
> -#   primary service names and service aliases.  The system administrator
> -#   has to make sure it is correctly generated.
> -#SERVICES_AUTHORITATIVE=TRUE
> -#
> -# SETENT_BATCH_READ
> -#  If set to TRUE, various setXXent() functions will read the entire
> -#  database at once and then hand out the requests one by one from
> -#  memory with every getXXent() call.  Otherwise each getXXent() call
> -#  might result into a network communication with the server to get
> -#  the next entry.
> -#SETENT_BATCH_READ=TRUE
> -#
> -# ADJUNCT_AS_SHADOW
> -#  If set to TRUE, the passwd routines in the NIS NSS module will not
> -#  use the passwd.adjunct.byname tables to fill in the password data
> -#  in the passwd structure.  This is a security problem if the NIS
> -#  server cannot be trusted to send the passwd.adjuct table only to
> -#  privileged clients.  Instead the passwd.adjunct.byname table is
> -#  used to synthesize the shadow.byname table if it does not exist.
> -#ADJUNCT_AS_SHADOW=TRUE
> -- 
> 2.26.2
> 


-- 
Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nss: remove obsolete code
  2020-08-20 12:42 [PATCH] nss: remove obsolete code Thorsten Kukuk
  2020-08-26  8:12 ` Thorsten Kukuk
@ 2020-08-26  9:15 ` Andreas Schwab
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2020-08-26  9:15 UTC (permalink / raw)
  To: Thorsten Kukuk; +Cc: libc-alpha

On Aug 20 2020, Thorsten Kukuk wrote:

> Hi,
>
> glibc still ships with the /etc/default/nss configuration file
> and the defines for it, but the code reading and using it got
> completly removed. So the config file and the defines should be
> removed, too.
>
> Ok to commit?

Ok.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-26  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 12:42 [PATCH] nss: remove obsolete code Thorsten Kukuk
2020-08-26  8:12 ` Thorsten Kukuk
2020-08-26  9:15 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).