Changeset 699
- Timestamp:
- 11/11/06 10:20:15 (2 years ago)
- Files:
-
- nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/src/Socket.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp
r655 r699 1220 1220 // set caps 1221 1221 cap_t caps = cap_init(); 1222 cap_value_t capList[ 4] =1222 cap_value_t capList[6] = 1223 1223 { 1224 1224 CAP_SYS_CHROOT, // chroot() 1225 1225 CAP_NET_BIND_SERVICE, // bind() ports < 1024 1226 1226 CAP_SETUID, // setuid() 1227 CAP_SETGID // setgid() 1227 CAP_SETGID, // setgid() 1228 CAP_NET_RAW, // pcap 1229 CAP_NET_ADMIN // route 1228 1230 }; 1229 1231 1230 unsigned num_caps = 4;1232 unsigned num_caps = 6; 1231 1233 1232 1234 cap_set_flag(caps, CAP_EFFECTIVE, num_caps, capList, CAP_SET); nepenthes/trunk/nepenthes-core/src/Socket.cpp
r593 r699 31 31 #include <sstream> 32 32 33 #ifdef WIN3234 33 #include <time.h> 35 #else 36 #include <sys/types.h> 37 #include <sys/socket.h> 38 #include <netinet/in.h> 39 #include <arpa/inet.h> 40 #endif 34 35 #include <sys/types.h> 36 #include <sys/socket.h> 37 #include <netinet/in.h> 38 #include <arpa/inet.h> 41 39 42 40 #include "Socket.hpp"
