mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
Include testsudoers_pwutil.h for testsudoers_pwutil.c prototypes.
This commit is contained in:
@@ -1281,8 +1281,8 @@ cvtsudoers.o: $(srcdir)/cvtsudoers.c $(devdir)/def_data.h $(devdir)/gram.h \
|
||||
$(srcdir)/parse.h $(srcdir)/redblack.h $(srcdir)/strlist.h \
|
||||
$(srcdir)/sudo_nss.h $(srcdir)/sudoers.h \
|
||||
$(srcdir)/sudoers_debug.h $(srcdir)/sudoers_version.h \
|
||||
$(srcdir)/tsgetgrpw.h $(top_builddir)/config.h \
|
||||
$(top_builddir)/pathnames.h
|
||||
$(srcdir)/testsudoers_pwutil.h $(srcdir)/tsgetgrpw.h \
|
||||
$(top_builddir)/config.h $(top_builddir)/pathnames.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(HARDENING_CFLAGS) $(srcdir)/cvtsudoers.c
|
||||
cvtsudoers.i: $(srcdir)/cvtsudoers.c $(devdir)/def_data.h $(devdir)/gram.h \
|
||||
$(incdir)/compat/getopt.h $(incdir)/compat/stdbool.h \
|
||||
@@ -1295,8 +1295,8 @@ cvtsudoers.i: $(srcdir)/cvtsudoers.c $(devdir)/def_data.h $(devdir)/gram.h \
|
||||
$(srcdir)/parse.h $(srcdir)/redblack.h $(srcdir)/strlist.h \
|
||||
$(srcdir)/sudo_nss.h $(srcdir)/sudoers.h \
|
||||
$(srcdir)/sudoers_debug.h $(srcdir)/sudoers_version.h \
|
||||
$(srcdir)/tsgetgrpw.h $(top_builddir)/config.h \
|
||||
$(top_builddir)/pathnames.h
|
||||
$(srcdir)/testsudoers_pwutil.h $(srcdir)/tsgetgrpw.h \
|
||||
$(top_builddir)/config.h $(top_builddir)/pathnames.h
|
||||
$(CC) -E -o $@ $(CPPFLAGS) $<
|
||||
cvtsudoers.plog: cvtsudoers.i
|
||||
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/cvtsudoers.c --i-file $< --output-file $@
|
||||
@@ -3075,8 +3075,9 @@ testsudoers.o: $(srcdir)/testsudoers.c $(devdir)/def_data.h $(devdir)/gram.h \
|
||||
$(incdir)/sudo_util.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/interfaces.h $(srcdir)/logging.h $(srcdir)/parse.h \
|
||||
$(srcdir)/sudo_nss.h $(srcdir)/sudoers.h \
|
||||
$(srcdir)/sudoers_debug.h $(srcdir)/tsgetgrpw.h \
|
||||
$(top_builddir)/config.h $(top_builddir)/pathnames.h
|
||||
$(srcdir)/sudoers_debug.h $(srcdir)/testsudoers_pwutil.h \
|
||||
$(srcdir)/tsgetgrpw.h $(top_builddir)/config.h \
|
||||
$(top_builddir)/pathnames.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(HARDENING_CFLAGS) $(srcdir)/testsudoers.c
|
||||
testsudoers.i: $(srcdir)/testsudoers.c $(devdir)/def_data.h $(devdir)/gram.h \
|
||||
$(incdir)/compat/stdbool.h $(incdir)/sudo_compat.h \
|
||||
@@ -3087,8 +3088,9 @@ testsudoers.i: $(srcdir)/testsudoers.c $(devdir)/def_data.h $(devdir)/gram.h \
|
||||
$(incdir)/sudo_util.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/interfaces.h $(srcdir)/logging.h $(srcdir)/parse.h \
|
||||
$(srcdir)/sudo_nss.h $(srcdir)/sudoers.h \
|
||||
$(srcdir)/sudoers_debug.h $(srcdir)/tsgetgrpw.h \
|
||||
$(top_builddir)/config.h $(top_builddir)/pathnames.h
|
||||
$(srcdir)/sudoers_debug.h $(srcdir)/testsudoers_pwutil.h \
|
||||
$(srcdir)/tsgetgrpw.h $(top_builddir)/config.h \
|
||||
$(top_builddir)/pathnames.h
|
||||
$(CC) -E -o $@ $(CPPFLAGS) $<
|
||||
testsudoers.plog: testsudoers.i
|
||||
rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $(srcdir)/testsudoers.c --i-file $< --output-file $@
|
||||
|
@@ -49,6 +49,7 @@
|
||||
#include "sudo_lbuf.h"
|
||||
#include "redblack.h"
|
||||
#include "cvtsudoers.h"
|
||||
#include "testsudoers_pwutil.h"
|
||||
#include "tsgetgrpw.h"
|
||||
#include <gram.h>
|
||||
|
||||
|
@@ -107,12 +107,6 @@ struct cache_item *cvtsudoers_make_gritem(gid_t gid, const char *name);
|
||||
struct cache_item *cvtsudoers_make_gidlist_item(const struct passwd *pw, char * const *unused1, unsigned int type);
|
||||
struct cache_item *cvtsudoers_make_grlist_item(const struct passwd *pw, char * const *unused1);
|
||||
|
||||
/* testsudoers_pwutil.c */
|
||||
struct cache_item *testsudoers_make_gritem(gid_t gid, const char *group);
|
||||
struct cache_item *testsudoers_make_grlist_item(const struct passwd *pw, char * const *groups);
|
||||
struct cache_item *testsudoers_make_gidlist_item(const struct passwd *pw, char * const *gids, unsigned int type);
|
||||
struct cache_item *testsudoers_make_pwitem(uid_t uid, const char *user);
|
||||
|
||||
/* stubs.c */
|
||||
void get_hostname(void);
|
||||
|
||||
|
@@ -41,6 +41,7 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "testsudoers_pwutil.h"
|
||||
#include "tsgetgrpw.h"
|
||||
#include "sudoers.h"
|
||||
#include "interfaces.h"
|
||||
@@ -72,12 +73,6 @@ static void cb_privilege(struct privilege *priv, int host_match);
|
||||
static void cb_cmndspec(struct cmndspec *cs, int date_match, int runas_match, int cmnd_match);
|
||||
static int testsudoers_query(const struct sudo_nss *nss, struct passwd *pw);
|
||||
|
||||
/* testsudoers_pwutil.c */
|
||||
extern struct cache_item *testsudoers_make_gritem(gid_t gid, const char *group);
|
||||
extern struct cache_item *testsudoers_make_grlist_item(const struct passwd *pw, char * const *groups);
|
||||
extern struct cache_item *testsudoers_make_gidlist_item(const struct passwd *pw, char * const *gids, unsigned int type);
|
||||
extern struct cache_item *testsudoers_make_pwitem(uid_t uid, const char *user);
|
||||
|
||||
/* gram.y */
|
||||
extern int (*trace_print)(const char *msg);
|
||||
|
||||
|
Reference in New Issue
Block a user