mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-29 15:24:12 +00:00
The separation was unnecessary, and caused build problems. Let's go wild and obliterate the library. The files are moved to libshadow. Scripted change: $ find libmisc/ -type f \ | grep '\.[chy]$' \ | xargs mv -t lib; Plus updating the Makefile and other references. While at it, I've sorted the sources lists. Link: <https://github.com/shadow-maint/shadow/pull/792> Reported-by: David Seifert <soap@gentoo.org> Cc: Sam James <sam@gentoo.org> Cc: Christian Bricart <christian@bricart.de> Cc: Michael Vetter <jubalh@iodoru.org> Cc: Robert Förster <Dessa@gmake.de> [ soap tested the Gentoo package ] Tested-by: David Seifert <soap@gentoo.org> Acked-by: David Seifert <soap@gentoo.org> Acked-by: Serge Hallyn <serge@hallyn.com> Acked-by: Iker Pedrosa <ipedrosa@redhat.com> Acked-by: <lslebodn@fedoraproject.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
24 lines
607 B
C
24 lines
607 B
C
/*
|
|
* SPDX-FileCopyrightText: 2013 Eric Biederman
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef _IDMAPPING_H_
|
|
#define _IDMAPPING_H_
|
|
|
|
#include <sys/types.h>
|
|
|
|
struct map_range {
|
|
unsigned long upper; /* first ID inside the namespace */
|
|
unsigned long lower; /* first ID outside the namespace */
|
|
unsigned long count; /* Length of the inside and outside ranges */
|
|
};
|
|
|
|
extern struct map_range *get_map_ranges(int ranges, int argc, char **argv);
|
|
extern void write_mapping(int proc_dir_fd, int ranges,
|
|
const struct map_range *mappings, const char *map_file, uid_t ruid);
|
|
|
|
#endif /* _ID_MAPPING_H_ */
|
|
|