Commit Graph

61 Commits

Author SHA1 Message Date
Oleksii Shevchuk 54a42a1aa5 Build xprintidle 2017-03-16 18:23:22 +02:00
Oleksii Shevchuk 025e2dba35 After dance around environment set "_" to something neutral 2017-03-15 07:13:14 +02:00
Oleksii Shevchuk e4bbfd5630 Fix python precompilation 2017-03-15 00:06:46 +02:00
Oleksii Shevchuk 6350ad9ab4 Reduce images size 2017-03-14 23:31:20 +02:00
Oleksii Shevchuk 427defea99 psutil already have boot_time function, no need in separate module 2017-03-13 23:19:43 +02:00
Oleksii Shevchuk 0a94a0daf6 Invert logging info 2017-03-11 18:08:14 +02:00
Oleksii Shevchuk 9ffbfdea61 Reduce travis log 2017-03-11 09:16:43 +02:00
Oleksii Shevchuk e74aad2adc Add travis 2017-03-11 09:16:43 +02:00
Oleksii Shevchuk 722369239c Handle case when pupy starts from memfd 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk a66ff19f48 Add initial memexec support for linux (interactive mode doesn't work for now) 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 4f1a508dd0 Fix migration (linux client) /w memfd 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 29d7e1ad5b Properly set sys.executable from /proc/self/exe 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk ce50ea3230 Add workaround to make possible to close memfds after dlopen 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fec8025de7 Add memfd sealing 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk f1bc5450c6 Request maximal amount of open files (because of memfd) and disable coredumps 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk bc62899b4f Prevent GC collection of modules and config 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 177fab2498 Reduce virtual size 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fc585d60a6 Values are hardcoded 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk c005cf86de Fix invoking from non-shell 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 45ac2bf02e "Securely" pass environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk fc7d0253ec Reduce size by building shared openssl, removing dbus from client and so on 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk e6b227f36c Fix typo 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 1a02ac6150 Try to become root if possible 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 7309acdf19 Set non-dumpable property 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 86b1c20484 Fix build/work in lin32 environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 93497d75c8 Make DEFAULT_SAFE_PATH also "configurable" 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk a31537968c Setup "safe" environment 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 6bbee454ac Add memfd support (optional) for dlopen 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 6e38e209d5 Fix RTLD_NEXT in pthreads wokraround 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 8c35337379 Use pyuv instead of asyncoro 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 190fd92d09 Bump versions, fix build script 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 4207218055 Bump zlib version 2017-03-08 19:41:15 +02:00
Oleksii Shevchuk 480bc18df4 Add more deps to bundle builder 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 891d7aed05 Build scandir to the bundle 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 45ad9ccff6 Build python libraries from environments to zip bundles. Experemental 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk f84b41056c Bump versions 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 45d31a5dea Make compat sched calls static inline 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 6ef4ebd431 Avoid redifinition 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk e58c910493 Copy compatible headers after bootstrap 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 2ef3cc7cf8 Move make psutils clients built-in (Linux, Windows) 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 3d7d76bbef Add python-ptrace to standard package 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk cfbdc87758 ZSH doesn't support writing to UID 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 04b3eb0f2c Create buildenv script for linux client 2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 8bfae8bb50 Rework pupy basic configuration
Improve compression:
[+] LMZA everywhere (uniformed)
[+] Config space 40690 -> 8192
[+] Compress payload libraries (libpython)
[+] Compress serialized objects (resources, bootloader, config)
[-] Windows build (Makefile) was removed

Improve cryptography/credentials default configuration
[+] Remove default secrets
[-] Android still there
[+] Add uniformed class to search proper credentials
[+] Generate all credentials on first launch
[+] Improve SSL -> CA/Client/Server + roles

Client default configuration
[+] Add stubbed site.py (to preserve pupy from search files on target device)

TODO:
[?] Test all that stuff?
[?] Rewrite all transport configs to honor roles
2017-03-08 19:41:14 +02:00
Oleksii Shevchuk 8dc9232450 Use LZMA instead of ZLib for resources 2017-03-08 19:40:25 +02:00
Oleksii Shevchuk 338763187c Add _sqlite3.so 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 5175b72ca9 Add dbus/gir support to linux client build 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk d21a1c7e6e Add more nice flags to linux client linker 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 19059fc101 Scripts unification for linux and windows build 2016-10-30 23:23:07 +02:00
Oleksii Shevchuk 755d24b2e7 Fix build for windows 2016-10-30 23:23:07 +02:00