Re: pthreads, C and guacamole [Was: Reduce attack surface - Tomcat and guacamole...]

2020-04-26 Thread Steve Williams
Hi Nick, Thanks very much for at validating my thought processes. I have managed to get guacamole compiled using a contemporary version of FreeRDP (with the pthread_mutexattr_setpshare commented out). It runs perfectly using ssh connections.  The RDP sessions which I am interested in are qui

Re: pthreads, C and guacamole [Was: Reduce attack surface - Tomcat and guacamole...]

2020-04-25 Thread Nick Permyakov
Hi Steve, You're talking about https://github.com/apache/guacamole-server/blob/master/src/libguac/pool.c , I presume? In that case you're right unless - the malloc and pthread_* functions are redefined to mean something weird, or - the physical page containing malloc'ed pool is later made shared b

pthreads, C and guacamole [Was: Reduce attack surface - Tomcat and guacamole...]

2020-04-17 Thread Steve Williams
Hi, I am looking into guacamole's use of   pthread_mutexattr_setpshare. (an aside, if I comment out the 4 lines of code invoking pthread_mutexattr_setpshare, it compiles with gcc on OpenBSD 6.6 (GENERIC.MP) ) I am an experienced C programmer, but I've never looked in threading in C before so