003 File Manager
Current Path:
/usr/src/contrib/capsicum-test
usr
/
src
/
contrib
/
capsicum-test
/
📁
..
📄
.gitignore
(235 B)
📄
CONTRIBUTING.md
(880 B)
📄
GNUmakefile
(2.22 KB)
📄
LICENSE
(1.4 KB)
📄
README.md
(2.7 KB)
📄
capability-fd-pair.cc
(5.52 KB)
📄
capability-fd.cc
(42.15 KB)
📄
capmode.cc
(19.24 KB)
📄
capsicum-freebsd.h
(1.97 KB)
📄
capsicum-linux.h
(1.17 KB)
📄
capsicum-rights.h
(2.86 KB)
📄
capsicum-test-main.cc
(4.23 KB)
📄
capsicum-test.cc
(2.63 KB)
📄
capsicum-test.h
(9.9 KB)
📄
capsicum.h
(4.49 KB)
📄
fcntl.cc
(14.48 KB)
📄
fexecve.cc
(6.08 KB)
📄
ioctl.cc
(6.93 KB)
📄
linux.cc
(48.75 KB)
📄
makefile
(1.59 KB)
📄
mini-me.c
(1.04 KB)
📄
mqueue.cc
(3.24 KB)
📄
openat.cc
(14.52 KB)
📄
overhead.cc
(1.28 KB)
📄
procdesc.cc
(26.95 KB)
📄
rename.cc
(1.59 KB)
📄
sctp.cc
(7.14 KB)
📄
select.cc
(4 KB)
📄
showrights
(4.81 KB)
📄
smoketest.c
(4.86 KB)
📄
socket.cc
(10.56 KB)
📄
syscalls.h
(8.36 KB)
📄
sysctl.cc
(403 B)
📄
waittest.c
(1 KB)
Editing: capsicum-linux.h
#ifndef __CAPSICUM_LINUX_H__ #define __CAPSICUM_LINUX_H__ #ifdef __linux__ /************************************************************ * Linux Capsicum Functionality. ************************************************************/ #include <errno.h> #include <sys/procdesc.h> #include <sys/capsicum.h> #define HAVE_CAP_RIGHTS_LIMIT #define HAVE_CAP_RIGHTS_GET #define HAVE_CAP_FCNTLS_LIMIT #define HAVE_CAP_IOCTLS_LIMIT #define HAVE_PROC_FDINFO #define HAVE_PDWAIT4 #define CAP_FROM_ACCEPT // TODO(drysdale): uncomment if/when Linux propagates rights on sctp_peeloff. // Linux does not generate a capability from sctp_peeloff(cap_fd,...). // #define CAP_FROM_PEELOFF // TODO(drysdale): uncomment if/when Linux allows intermediate .. path segments // for openat()-like operations. // #define HAVE_OPENAT_INTERMEDIATE_DOTDOT // Failure to open file due to path traversal generates EPERM #ifdef ENOTBENEATH #define E_NO_TRAVERSE_CAPABILITY ENOTBENEATH #define E_NO_TRAVERSE_O_BENEATH ENOTBENEATH #else #define E_NO_TRAVERSE_CAPABILITY EPERM #define E_NO_TRAVERSE_O_BENEATH EPERM #endif // Too many links #define E_TOO_MANY_LINKS ELOOP #endif /* __linux__ */ #endif /*__CAPSICUM_LINUX_H__*/
Upload File
Create Folder