[OpenWrt-Devel] [PATCH procd v3 00/17] ujail fs jail rework/fixes/improvements

Etienne CHAMPETIER champetier.etienne at gmail.com
Fri Nov 27 11:26:59 EST 2015


same as v2 serie, just using include guard instead of pragma once

Etienne CHAMPETIER (17):
  ujail: don't add non existant library_path
  ujail: don't pass unused arg in clone call
  ujail: stop using extern in elf.h
  ujail: use more const in elf.*
  ujail: put #include guard macro in all *.h
  ujail: add <stdio.h> to log.h
  ujail: add <stdio.h> and <syslog.h> to seccomp.h
  ujail: remove "#include log.h" from elf.h
  ujail: search libs in /lib before /lib64
  ujail: use PATH_MAX for path related buffers
  ujail: add init_library_search()
  ujail: fixup code style: "func()" -> "func(void)"
  ujail: remove some debug/dev hack
  ujail: DT_STRTAB uses d_ptr in d_un union (not d_val)
  ujail: rework fs jail part
  ujail: automatically add script (#!) interpreter
  ujail: add ELF interpreter (DT_INTERP) to the jail

 CMakeLists.txt      |   2 +-
 jail/capabilities.h |   4 ++
 jail/elf.c          | 154 +++++++++++++++++---------------------------
 jail/elf.h          |  14 ++--
 jail/fs.c           | 181 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 jail/fs.h           |  21 ++++++
 jail/jail.c         | 118 +++++++++++-----------------------
 jail/jail.h         |  18 ++++++
 jail/log.h          |   4 ++
 jail/preload.c      |   2 -
 jail/seccomp.c      |   2 -
 jail/seccomp.h      |   7 ++
 12 files changed, 337 insertions(+), 190 deletions(-)
 create mode 100644 jail/fs.c
 create mode 100644 jail/fs.h
 create mode 100644 jail/jail.h

-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list