Blame elf/tst-audit13mod1.c

Packit Service 01caaf
/* Check for invalid audit version (BZ#24122).
Packit Service 01caaf
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Service 01caaf
   This file is part of the GNU C Library.
Packit Service 01caaf
Packit Service 01caaf
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 01caaf
   modify it under the terms of the GNU Lesser General Public
Packit Service 01caaf
   License as published by the Free Software Foundation; either
Packit Service 01caaf
   version 2.1 of the License, or (at your option) any later version.
Packit Service 01caaf
Packit Service 01caaf
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 01caaf
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 01caaf
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 01caaf
   Lesser General Public License for more details.
Packit Service 01caaf
Packit Service 01caaf
   You should have received a copy of the GNU Lesser General Public
Packit Service 01caaf
   License along with the GNU C Library; if not, see
Packit Service 01caaf
   <http://www.gnu.org/licenses/>.  */
Packit Service 01caaf
Packit Service 01caaf
#include <link.h>
Packit Service 01caaf
#include <stdlib.h>
Packit Service 01caaf
Packit Service 01caaf
unsigned int
Packit Service 01caaf
la_version (unsigned int version)
Packit Service 01caaf
{
Packit Service 01caaf
  /* The audit specification says that a version of 0 or a version
Packit Service 01caaf
     greater than any version supported by the dynamic loader shall
Packit Service 01caaf
     cause the module to be ignored.  */
Packit Service 01caaf
  return 0;
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
void
Packit Service 01caaf
la_activity (uintptr_t *cookie, unsigned int flag)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
char *
Packit Service 01caaf
la_objsearch (const char *name, uintptr_t *cookie, unsigned int flag)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
unsigned int
Packit Service 01caaf
la_objopen (struct link_map *map, Lmid_t lmid, uintptr_t * cookie)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
void
Packit Service 01caaf
la_preinit (uintptr_t * cookie)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
uintptr_t
Packit Service 01caaf
#if __ELF_NATIVE_CLASS == 32
Packit Service 01caaf
la_symbind32 (Elf32_Sym *sym, unsigned int ndx, uintptr_t *refcook,
Packit Service 01caaf
              uintptr_t *defcook, unsigned int *flags, const char *symname)
Packit Service 01caaf
#else
Packit Service 01caaf
la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
Packit Service 01caaf
              uintptr_t *defcook, unsigned int *flags, const char *symname)
Packit Service 01caaf
#endif
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
unsigned int
Packit Service 01caaf
la_objclose (uintptr_t * cookie)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
#include <tst-audit.h>
Packit Service 01caaf
#if (!defined (pltenter) || !defined (pltexit) || !defined (La_regs) \
Packit Service 01caaf
     || !defined (La_retval) || !defined (int_retval))
Packit Service 01caaf
# error "architecture specific code needed in sysdeps/CPU/tst-audit.h"
Packit Service 01caaf
#endif
Packit Service 01caaf
Packit Service 01caaf
ElfW(Addr)
Packit Service 01caaf
pltenter (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook,
Packit Service 01caaf
          uintptr_t *defcook, La_regs *regs, unsigned int *flags,
Packit Service 01caaf
          const char *symname, long int *framesizep)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}
Packit Service 01caaf
Packit Service 01caaf
unsigned int
Packit Service 01caaf
pltexit (ElfW(Sym) *sym, unsigned int ndx, uintptr_t *refcook,
Packit Service 01caaf
         uintptr_t *defcook, const La_regs *inregs, La_retval *outregs,
Packit Service 01caaf
         const char *symname)
Packit Service 01caaf
{
Packit Service 01caaf
  exit (EXIT_FAILURE);
Packit Service 01caaf
}