[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#602776: libc: missing syscall stubs for jail_set, jail_get, jail_remove



Package: libc0.1
Version: 2.11.2-6
Severity: normal
File: libc

libc0.1 in its current version on squeeze doesn't export the jail-related syscalls jail_set, jail_get and jail_remove.
Manual calling via syscall() works.

Steps to reproduce:

$ cat test.c
#include <sys/param.h>
#include <sys/jail.h>

int main(void) {
  int ret = jail_remove(42);
  return 0;
}
$ gcc -o test test.c
/tmp/ccOCb7Qf.o: In function `main':
test.c:(.text+0xe): undefined reference to `jail_remove'
collect2: ld returned 1 exit status
$ cat test2.c
#define _GNU_SOURCE
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/syscall.h>
#include <unistd.h>

int main(void) {
  int ret = syscall(SYS_jail_remove, 42);
  return 0;
}
$ gcc -o test2 test2.c
$


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc0.1 depends on:
ii  libc-bin                      2.11.2-6   Embedded GNU C Library: Binaries
ii  libgcc1                       1:4.4.5-4  GCC support library

libc0.1 recommends no packages.

Versions of packages libc0.1 suggests:
ii  debconf [debconf-2.0]  1.5.36            Debian configuration management sy
pn  glibc-doc              <none>            (no description available)
ii  locales                2.11.2-6+squeeze1 Embedded GNU C Library: National L

-- debconf information:
  glibc/restart-services:
  glibc/disable-screensaver:
  glibc/restart-failed:
  glibc/upgrade: true



Reply to: