diff options
| author | Holger Dengler <dengler@linutronix.de> | 2018-01-15 16:35:01 +0100 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-01-15 16:53:17 +0100 |
| commit | 4666d19e5b7efa763c25e54c3a90d9ef38f9b234 (patch) | |
| tree | aec1f5859ac14c8182cf5e84864c0eac84476acc /security/advanced | |
| parent | 4d5f8223acb7ab90af7fc4b8aa1c391838c1af21 (diff) | |
security: change code fontsize to scriptsize
Fontsize "scriptsize" is a good alternative between default fontsize
and "tiny".
Signed-off-by: Holger Dengler <dengler@linutronix.de>
Diffstat (limited to 'security/advanced')
| -rw-r--r-- | security/advanced/frm_exploit_mitigation.tex | 8 | ||||
| -rw-r--r-- | security/advanced/frm_process_thread.tex | 10 |
2 files changed, 14 insertions, 4 deletions
diff --git a/security/advanced/frm_exploit_mitigation.tex b/security/advanced/frm_exploit_mitigation.tex index 559b60e..09a3744 100644 --- a/security/advanced/frm_exploit_mitigation.tex +++ b/security/advanced/frm_exploit_mitigation.tex @@ -27,7 +27,7 @@ \begin{frame}[fragile] \frametitle{Stack: Code Example I} \begin{beamerboxesrounded}[shadow=true]{Bad copy to stack local buffer} -\begin{tiny} +\begin{scriptsize} \begin{verbatim} #include <string.h> @@ -40,7 +40,7 @@ int main (int argc, char **argv) { foo(argv[1]); } \end{verbatim} -\end{tiny} +\end{scriptsize} \end{beamerboxesrounded} \end{frame} @@ -48,7 +48,7 @@ int main (int argc, char **argv) { \begin{frame}[fragile] \frametitle{Stack: Code Example II} \begin{beamerboxesrounded}[shadow=true]{Manipulation of return address} -\begin{tiny} +\begin{scriptsize} \begin{verbatim} #include <stdio.h> #include <string.h> @@ -74,7 +74,7 @@ void main(void) } \end{verbatim} -\end{tiny} +\end{scriptsize} \end{beamerboxesrounded} \end{frame} diff --git a/security/advanced/frm_process_thread.tex b/security/advanced/frm_process_thread.tex index 1c2123a..67954e0 100644 --- a/security/advanced/frm_process_thread.tex +++ b/security/advanced/frm_process_thread.tex @@ -198,30 +198,40 @@ char *envp[] = { \begin{itemize} \item Requirements \begin{itemize} + \begin{scriptsize} \item communicate between Processes (e.g. Child to Parent) \item private communication channel + \end{scriptsize} \end{itemize} \item Solution Statement \begin{enumerate} + \begin{scriptsize} \item open an anonymous pipe \item duplicate process with fork() \item Parent and Child choose a communication role \begin{itemize} + \begin{scriptsize} \item Sender: close the read-FD and send data to write-FD \item Listener: close the write-FD and listen on read-FD + \end{scriptsize} \end{itemize} + \end{scriptsize} \end{enumerate} \item Note: \begin{itemize} + \begin{scriptsize} \item pipe-syscall opens two file-descriptors \\ (one for read from, and one for write to the pipe) \item after fork-syscall, both processes has access to pipe file-descriptors \item pipe communication is unidirectional + \end{scriptsize} \end{itemize} \item Result \begin{itemize} + \begin{scriptsize} \item private communication between Parent and Child \item decoupled, buffered communication through pipe + \end{scriptsize} \end{itemize} \item other IPC mechanisms (e.g. POSIX IPC) are also possible \end{itemize} |
