slides/slides10.tex
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 10 Dec 2013 04:15:57 +0000
changeset 152 0c62ec6dc691
parent 146 6f884231ca57
child 153 af8fff37dd1c
permissions -rw-r--r--
added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\documentclass[dvipsnames,14pt,t]{beamer}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\usepackage{proof}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
     3
\usepackage{beamerthemeplaincu}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
\usepackage{mathpartir}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
\usepackage{isabelle}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
\usepackage{isabellesym}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
\usepackage[absolute,overlay]{textpos}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
\usepackage{ifthen}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
\usepackage{tikz}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
\usepackage{courier}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
\usepackage{listings}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
\usetikzlibrary{arrows}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
\usetikzlibrary{positioning}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
\usetikzlibrary{calc}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
\usepackage{graphicx} 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
\usetikzlibrary{shapes}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
\usetikzlibrary{shadows}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    18
\usetikzlibrary{plotmarks}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    19
\setmonofont[Scale=MatchLowercase]{Consolas}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    20
\newfontfamily{\consolas}{Consolas}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    21
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
\isabellestyle{rm}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
\renewcommand{\isastyle}{\rm}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
\renewcommand{\isastyleminor}{\rm}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
\renewcommand{\isastylescript}{\footnotesize\rm\slshape}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
\renewcommand{\isatagproof}{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
\renewcommand{\endisatagproof}{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
\renewcommand{\isamarkupcmt}[1]{#1}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    30
% Isabelle characters
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    31
\renewcommand{\isacharunderscore}{\_}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
\renewcommand{\isacharbar}{\isamath{\mid}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
\renewcommand{\isasymiota}{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
\renewcommand{\isacharbraceleft}{\{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    35
\renewcommand{\isacharbraceright}{\}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
\renewcommand{\isacharless}{$\langle$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
\renewcommand{\isachargreater}{$\rangle$}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
\renewcommand{\isasymsharp}{\isamath{\#}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    39
\renewcommand{\isasymdots}{\isamath{...}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    40
\renewcommand{\isasymbullet}{\act}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    41
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
% beamer stuff 
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    43
\renewcommand{\slidecaption}{APP 09, King's College London, 10 December 2013}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    44
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}% for definitions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    45
\newcommand{\bl}[1]{\textcolor{blue}{#1}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
\begin{document}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
\begin{frame}<1>[t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
\frametitle{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    53
  \begin{tabular}{@ {}c@ {}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    54
  \\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
  \LARGE Access Control and \\[-3mm] 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
  \LARGE Privacy Policies (10)\\[-6mm] 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
  \end{tabular}}\bigskip\bigskip\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    58
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
  %\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
  %\includegraphics[scale=1.3]{pics/barrier.jpg}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
  %\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    63
\normalsize
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    64
  \begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    65
  \begin{tabular}{ll}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    66
  Email:  & christian.urban at kcl.ac.uk\\
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    67
  Office: & S1.27 (1st floor Strand Building)\\
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
  Slides: & KEATS (also homework is there)\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    69
  \end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
  \end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    73
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    74
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    75
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    76
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    77
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    78
\begin{frame}[c]
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    79
\frametitle{\mbox{}\\[20mm]\huge Revision}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    80
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    81
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    82
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    83
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    84
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    85
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    86
\begin{frame}[c]
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    87
\frametitle{1st Lecture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    89
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    90
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    91
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    92
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    93
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    94
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    95
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    96
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    97
\frametitle{\begin{tabular}{c}2nd Lecture:\\ E-Voting\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    98
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
    99
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   100
\item Integrity 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   101
\item Ballot Secrecy
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   102
\item Voter Authentication
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   103
\item Enfranchisement
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   104
\item Availability
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   105
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   106
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   107
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   108
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   109
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   110
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   111
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   112
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   113
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   114
\frametitle{\begin{tabular}{c}2nd Lecture:\\ E-Voting\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   115
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   116
Online Banking vs.~E-Voting
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   117
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   118
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   119
\item online banking: if fraud occurred you try to identify who did what (somebody's account got zero)\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   120
\item e-voting: some parts can be done electronically, but not the actual voting (final year project: online voting)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   121
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   122
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   123
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   124
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   125
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   126
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   127
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   128
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   129
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   130
\tikzset{alt/.code args={<#1>#2#3#4}{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   131
  \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   132
}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   133
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   134
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   135
\begin{frame}[t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   136
\frametitle{\begin{tabular}{c}3rd Lecture:\\ Buffer Overflow Attacks\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   137
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   138
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   139
\item the problem arises from the way C/C++ organises its function calls\\[-8mm]\mbox{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   140
\end{itemize}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   141
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   142
\begin{center}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   143
\begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   144
%\draw[black!10,step=2mm] (0,0) grid (9,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   145
%\draw[black!10,thick,step=10mm] (0,0) grid (9,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   146
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   147
\node at (0.5,4.5) {\small\begin{tabular}{l}main\\[-2mm] prog.\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   148
\draw[line width=0mm, white, alt=<2->{fill=red}{fill=blue}] (0,2.5) rectangle (1,3.8);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   149
\draw[line width=0mm, white, alt=<9->{fill=red}{fill=blue}] (0,0.2) rectangle (1,0.5);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   150
\draw[line width=1mm, alt=<3->{fill=yellow}{fill=blue}] (0,2.0) rectangle (1,2.5);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   151
\draw[line width=1mm, alt=<6->{fill=red}{fill=blue}] (0,1.0) rectangle (1,2.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   152
\draw[line width=1mm, alt=<7->{fill=yellow}{fill=blue}] (0,0.5) rectangle (1,1.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   153
\draw[line width=1mm] (0,0) -- (0,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   154
\draw[line width=1mm] (1,0) -- (1,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   155
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   156
\node at (3.5,3.5) {\small\begin{tabular}{l}fact(n)\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   157
\draw[line width=1mm, alt=<{4-5,8}>{fill=red}{fill=blue}] (3,1.0) rectangle (4,3.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   158
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   159
\onslide<3-4>{\draw[->, line width=1mm,red] (1,2.3) to node [above,sloped,midway] {n=4} (3,3);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   160
\onslide<5>{\draw[<-, line width=1mm,red] (1,2.3) to node [above,sloped,midway] {res=24} (3,1);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   161
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   162
\onslide<7-8>{\draw[->, line width=1mm,red] (1,0.8) to node [above,sloped,midway] {n=3} (3,3);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   163
\onslide<9>{\draw[<-, line width=1mm,red] (1,0.8) to node [above,sloped,midway] {res=6} (3,1);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   164
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   165
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   166
\node at (7.75,3.9) {\small\begin{tabular}{l}stack\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   167
\draw[line width=1mm] (7,3.5) -- (7,0.5) -- (8.5,0.5) -- (8.5,3.5);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   168
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   169
\onslide<3,4,7,8>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   170
\node at (7.75, 0.8) {ret};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   171
\draw[line width=1mm] (7,1.1) -- (8.5,1.1);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   172
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   173
\onslide<3>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   174
\node at (7.75, 1.4) {4};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   175
\draw[line width=1mm] (7,1.7) -- (8.5,1.7);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   176
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   177
\onslide<7>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   178
\node at (7.75, 1.4) {3};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   179
\draw[line width=1mm] (7,1.7) -- (8.5,1.7);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   180
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   181
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   182
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   183
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   184
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   185
\end{tikzpicture}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   186
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   187
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   188
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   189
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   190
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   191
\begin{frame}[t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   192
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   193
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   194
\begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   195
%\draw[black!10,step=2mm] (0,0) grid (9,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   196
%\draw[black!10,thick,step=10mm] (0,0) grid (9,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   197
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   198
\node at (0.5,4.5) {\small\begin{tabular}{l}main\\[-2mm] prog.\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   199
\draw[line width=0mm, white, alt=<2->{fill=red}{fill=blue}] (0,2.5) rectangle (1,3.8);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   200
\draw[line width=1mm, white, fill=blue] (0,1.0) rectangle (1,2.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   201
\draw[line width=1mm, alt=<3->{fill=yellow}{fill=blue}] (0,2.0) rectangle (1,2.5);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   202
\draw[line width=1mm] (0,0) -- (0,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   203
\draw[line width=1mm] (1,0) -- (1,4);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   204
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   205
\node at (3.5,3.5) {\small\begin{tabular}{l}fact(n)\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   206
\draw[line width=0mm, alt=<{4-}>{red, fill=red}{blue, fill=blue}] (3,2.8) rectangle (4,3.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   207
\draw[line width=0mm, alt=<{5-}>{red, fill=red}{blue, fill=blue}] (3,2.8) rectangle (4,2.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   208
\draw[line width=0mm, alt=<{7-}>{red, fill=red}{blue, fill=blue}] (3,2.0) rectangle (4,1.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   209
\draw[line width=1mm] (3,1.0) rectangle (4,3.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   210
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   211
\onslide<3->{\draw[->, line width=1mm,red] (1,2.3) to node [above,sloped,midway] {n=4} (3,3);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   212
\onslide<5->{\draw[<-, line width=2mm,red] (4,2) to node [above,sloped,midway] 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   213
{\begin{tabular}{l}user\\[-1mm] input\end{tabular}} (6,2);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   214
\onslide<8->{\draw[<-, line width=1mm,red] (1,-2) to (3,1);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   215
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   216
\node at (7.75,3.9) {\small\begin{tabular}{l}stack\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   217
\draw[line width=1mm] (7,3.5) -- (7,0.5) -- (8.5,0.5) -- (8.5,3.5);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   218
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   219
\onslide<3->{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   220
\draw[line width=1mm,alt=<6->{fill=red}{fill=white}] (7,0.5) rectangle (8.5,1.1);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   221
\node at (7.75, 0.8) {\alt<6->{@a\#}{ret}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   222
\draw[line width=1mm,alt=<6->{fill=red}{fill=white}] (7,1.1) rectangle (8.5,1.7);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   223
\node at (7.75, 1.4) {\alt<6->{!?w;}4};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   224
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   225
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   226
\onslide<4->{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   227
\draw[line width=1mm,fill=red] (7,1.7) rectangle (8.5,3.0);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   228
\node[white] at (7.75, 2.4) {buffer};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   229
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   230
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   231
\end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   232
\end{center}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   233
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   234
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   235
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   236
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   237
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   238
\mode<presentation>{
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   239
\begin{frame}[t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   240
\frametitle{\begin{tabular}{c}3rd Lecture:\\ Unix Access Control\end{tabular}}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   241
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   242
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   243
\item privileges are specified by file access permissions (``everything is a file'') 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   244
\end{itemize}\medskip
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   245
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   246
\begin{center}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   247
  \begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   248
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   249
  \draw[line width=1mm] (-.3, 0) rectangle (1.5,2);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   250
  \draw (4.7,1) node {Internet};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   251
  \draw (-2.7,1.7) node {\footnotesize Application};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   252
  \draw (0.6,1.7) node {\footnotesize Interface};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   253
  \draw (0.6,-0.4) node {\footnotesize \begin{tabular}{c}unprivileged\\[-1mm] process\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   254
  \draw (-2.7,-0.4) node {\footnotesize \begin{tabular}{c}privileged\\[-1mm] process\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   255
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   256
  \draw[line width=1mm] (-1.8, 0) rectangle (-3.6,2);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   257
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   258
  \draw[white] (1.7,1) node (X) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   259
  \draw[white] (3.7,1) node (Y) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   260
  \draw[red, <->, line width = 2mm] (X) -- (Y);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   261
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   262
  \draw[red, <->, line width = 1mm] (-0.6,1) -- (-1.6,1);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   263
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   264
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   265
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   266
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   267
\item the idea is make the attack surface smaller and 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   268
mitigate the consequences of an attack
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   269
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   270
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   271
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   272
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   273
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   274
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   275
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   276
\frametitle{\begin{tabular}{c}3rd Lecture:\\ Unix Access Control\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   277
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   278
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   279
\item when a file with setuid is executed, the resulting process will assume the 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   280
UID given to the owner of the file
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   281
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   282
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   283
\small\tt
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   284
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   285
\begin{verbatim}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   286
$ ls -ld . * */*
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   287
drwxr-xr-x 1 ping staff  32768 Apr  2 2010 .
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   288
-rw----r-- 1 ping students  31359 Jul 24 2011 manual.txt
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   289
-r--rw--w- 1 bob students   4359 Jul 24 2011 report.txt
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   290
-rwsr--r-x 1 bob students 141359 Jun  1 2013 microedit
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   291
dr--r-xr-x 1 bob staff  32768 Jul 23 2011 src
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   292
-rw-r--r-- 1 bob staff  81359 Feb 28 2012 src/code.c
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   293
-r--rw---- 1 emma students    959 Jan 23 2012 src/code.h
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   294
\end{verbatim}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   295
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   296
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   297
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   298
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   299
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   300
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   301
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   302
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   303
\frametitle{\begin{tabular}{c}4th Lecture:\\ Security Levels\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   304
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   305
Bell-LaPadula access model:
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   306
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   307
 \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   308
  \item \alert{Read Rule}: A principal \bl{$P$} can read an object \bl{$O$} if and only if
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   309
  \bl{$P$}'s security level is at least as high as \bl{$O$}'s.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   310
  \item \alert{Write Rule}: A principal \bl{$P$} can write an object \bl{$O$} if and only if
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   311
  \bl{$O$}'s security level is at least as high as \bl{$P$}'s.\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   312
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   313
  \item Meta-Rule: All principals in a system should have a sufficiently high security level
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   314
  in order to access an object.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   315
  \end{itemize}\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   316
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   317
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   318
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   319
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   320
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   321
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   322
\frametitle{\begin{tabular}{c}4th Lecture:\\ Security Levels\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   323
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   324
Biba (data integrity)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   325
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   326
  \begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   327
  \item Biba: {\bf `no read down'} - {\bf `no write up'}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   328
  \item \alert{Read Rule}: A principal \bl{$P$} can read an object \bl{$O$} if and only if
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   329
  \bl{$P$}'s security level is lower or equal than \bl{$O$}'s.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   330
  \item \alert{Write Rule}: A principal \bl{$P$} can write an object \bl{$O$} if and only if
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   331
  \bl{$O$}'s security level is lower or equal than \bl{$P$}'s.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   332
  \end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   333
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   334
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   335
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   336
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   337
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   338
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   339
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   340
\frametitle{\begin{tabular}{c}4th Lecture:\\ Protocols\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   341
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   342
A mutual authentication protocol
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   343
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   344
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   345
\begin{tabular}{ll}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   346
\bl{$A \rightarrow B$:} & \bl{$N_a$}\\  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   347
\bl{$B \rightarrow A$:} & \bl{$\{N_a, N_b\}_{K_{ab}}$}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   348
\bl{$A \rightarrow B$:} & \bl{$N_b$}\\
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   349
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   350
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   351
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   352
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   353
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   354
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   355
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   356
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   357
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   358
\frametitle{\begin{tabular}{c}5th Lecture:\\ Access Control Logic\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   359
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   360
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   361
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   362
\item formulas
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   363
\item judgements
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   364
\end{itemize}\pause
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   365
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   366
\begin{center}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   367
  \begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   368
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   369
  \draw[line width=1mm] (-.3, 0) rectangle (1.5,2);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   370
  \draw (-2.7,1) node {\begin{tabular}{l}access\\request\\ (\bl{$F$})\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   371
  \draw (4.2,1) node {\begin{tabular}{l}granted/\\not granted\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   372
  \draw (0.6,1.2) node {\footnotesize \begin{tabular}{l}Access\\Control\\Checker\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   373
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   374
  \draw[red, ->, line width = 2mm] (1.7,1) -- (2.7,1); 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   375
  \draw[red,<-, line width = 2mm] (-0.6,1) -- (-1.6,1);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   376
  \draw[red, <-, line width = 3mm] (0.6,2.2) -- (0.6,3.2); 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   377
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   378
  \draw (0.6,4) node {\begin{tabular}{l}\large Access Policy (\bl{$\Gamma$})\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   379
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   380
  \end{tikzpicture}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   381
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   382
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   383
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   384
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   385
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   386
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   387
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   388
\begin{frame}[fragile,t]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   389
\frametitle{\begin{tabular}{c}5th Lecture:\\ Access Control Logic\end{tabular}}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   390
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   391
\begin{center}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   392
\begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   393
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   394
  \draw (0.0,0.0) node {\LARGE \bl{$\Gamma \vdash F$}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   395
  \onslide<1->{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   396
  \draw (-1,-0.3) node (X) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   397
  \draw (-2.0,-2.0) node (Y) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   398
  \draw (0.7,-3) node {\begin{tabular}{l}Gamma\\stands for a collection of formulas\\(``assumptions'')\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   399
  \draw[red, ->, line width = 2mm] (Y) -- (X);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   400
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   401
  \draw (1.2,-0.1) node (X1) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   402
  \draw (2.8,-0.1) node (Y1) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   403
  \draw (4.5,-0.1) node {\begin{tabular}{l}a single formula\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   404
  \draw[red, ->, line width = 2mm] (Y1) -- (X1);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   405
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   406
  \draw (-0.1,0.1) node (X2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   407
  \draw (0.5,1.5) node (Y2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   408
  \draw (1,1.8) node {\begin{tabular}{l}entails sign\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   409
  \draw[red, ->, line width = 2mm] (Y2) -- (X2);}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   410
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   411
  \end{tikzpicture}
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   412
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   413
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   414
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   415
\end{frame}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   416
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   417
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   418
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   419
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   420
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   421
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   422
\frametitle{\begin{tabular}{c}5th Lecture:\\ Inference Rules\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   423
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   424
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   425
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   426
\begin{tikzpicture}[scale=1]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   427
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   428
  \draw (0.0,0.0) node 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   429
  {\Large\bl{\infer{\Gamma \vdash F_1 \wedge F_2}{\Gamma \vdash F_1 & \Gamma \vdash F_2}}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   430
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   431
  \draw (-0.1,-0.7) node (X) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   432
  \draw (-0.1,-1.9) node (Y) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   433
  \draw (-0.2,-2) node {\begin{tabular}{l}conclusion\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   434
  \draw[red, ->, line width = 2mm] (Y) -- (X);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   435
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   436
  \draw (-1,0.6) node (X2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   437
  \draw (0.0,1.6) node (Y2) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   438
  \draw (0,1.8) node {\begin{tabular}{l}premisses\end{tabular}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   439
  \draw[red, ->, line width = 2mm] (Y2) -- (X2);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   440
   \draw (1,0.6) node (X3) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   441
  \draw (0.0,1.6) node (Y3) {};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   442
  \draw[red, ->, line width = 2mm] (Y3) -- (X3);
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   443
  \end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   444
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   445
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   446
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   447
\end{frame}}
152
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   448
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   449
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   450
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   451
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   452
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   453
\frametitle{\begin{tabular}{c}6th Lecture:\\ Privacy\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   454
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   455
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   456
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   457
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   458
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   459
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 146
diff changeset
   460
88
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   461
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   462
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   463
\end{document}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   464
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   465
%%% Local Variables:  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   466
%%% mode: latex
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   467
%%% TeX-master: t
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   468
%%% End: 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   469