hws/hw05.tex
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Fri, 10 Oct 2014 12:39:11 +0100
changeset 234 17e0efbec5d0
parent 155 c70342f08326
child 239 0db764174afb
permissions -rw-r--r--
added a more sophisticated formatstring program
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
97
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\documentclass{article}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\usepackage{charter}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
\usepackage{hyperref}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
\usepackage{amssymb}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
\begin{document}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
\section*{Homework 5}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
\begin{enumerate}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
\item Access control is about deciding whether a principal that
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
issues a request should be trusted on this request. Explain
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
how such decision problems can be solved by using logic.
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
\item The informal meaning of the formula $P\;\textit{controls}\;F$ is 
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
`$P$ is entitled to do $F$'. Give a definition for this formula in terms 
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
of $\textit{says}$. 
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    18
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    19
\item Explain what is meant by a {\it derived} inference rule.
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    20
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    21
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
\item Give a justification for the derived rule
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
\begin{center}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
\begin{tabular}{c}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
$\Gamma \vdash P\;\textit{controls}\;F$ \hspace{4mm} $\Gamma \vdash P\;\textit{says}\;F$\\\hline
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
$\Gamma \vdash F$
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
\end{tabular}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
\end{center}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
155
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    30
%\item Give a justification for the derived rule
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    31
%\begin{center}
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    32
%\begin{tabular}{c}
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    33
%$\Gamma \vdash P\;\mapsto\;Q$ \hspace{4mm} $\Gamma \vdash P\;\textit{says}\;F$\\\hline
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    34
%$\Gamma \vdash Q\;\textit{says}\;F$
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    35
%\end{tabular}
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    36
%\end{center}
97
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
155
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    38
%\item Model formally the situation that a customer has bought a ticket and requests to see a
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    39
%movie. For this suppose three principals, {\it Ticket}, {\it Customer} and {\it Cinema},
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    40
%and suppose an authorization 
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    41
%\begin{center}
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    42
%$\textit{Permitted}(\textit{Customer}, \textit{sees\_movie})$.
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    43
%\end{center}
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    44
%Using access-control logic, give formulas for a {\it Customer}'s access
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    45
%request, an access-control policy of the {\it Cinema}, a trust assumption
c70342f08326 deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 97
diff changeset
    46
%and a ticket rule.
97
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
\item Assume $\Gamma$ is a set consisting of the three formulas:
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
\begin{center}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
\begin{tabular}{l}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
\\
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
$(\textit{Admin}\;\textit{says}\;\textit{del\_file})\;\Rightarrow\;\textit{del\_file}$\\
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    53
$\textit{Admin}\;\textit{says}\;((\textit{Alice}\;\textit{says}\;\textit{del\_file})
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    54
\Rightarrow \textit{del\_file})$\\
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
$\textit{Alice}\;\textit{says}\;\textit{del\_file}$\\
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
\\
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
\end{tabular}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    58
\end{center}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
Give a proof of the judgement
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
\begin{center}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
$\Gamma \vdash \textit{del\_file}$
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    63
\end{center}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    64
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    65
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    66
\end{enumerate}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
\end{document}
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    69
%%% Local Variables: 
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
%%% mode: latex
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
%%% TeX-master: t
efcac3016613 added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
%%% End: