520
|
1 |
\documentclass{article}
|
|
2 |
\usepackage{../style}
|
|
3 |
\usepackage{array}
|
|
4 |
|
|
5 |
|
|
6 |
\begin{document}
|
|
7 |
\newcolumntype{C}[1]{>{\centering}m{#1}}
|
|
8 |
|
558
|
9 |
\section*{Coursework for 7CCSMSEN}
|
520
|
10 |
|
558
|
11 |
This coursework is worth 10\% and is due on 1 December at 16:00. You
|
|
12 |
are asked to fill in the access control matrix below giving the
|
|
13 |
correct access rights. You have to submit your answers at KEATS. You
|
|
14 |
can submit your answers in a txt-file or as pdf.
|
520
|
15 |
|
|
16 |
|
|
17 |
\subsubsection*{Disclaimer}
|
|
18 |
|
558
|
19 |
It should be understood that the work you submit represents your
|
|
20 |
\textbf{own} effort! You are not supposed to work in groups and have
|
|
21 |
not copied any solution from anyone else.\bigskip
|
520
|
22 |
|
|
23 |
|
|
24 |
\subsection*{Task}
|
|
25 |
|
521
|
26 |
A Unix directory might look as follows:
|
|
27 |
|
|
28 |
\begin{center}
|
|
29 |
\begin{verbatim}
|
|
30 |
$ ls -ld . * */*
|
558
|
31 |
drwxr-xr-x 1 ping staff 32768 Apr 2 2010 .
|
521
|
32 |
-rw----r-- 1 ping students 31359 Jul 24 2011 manual.txt
|
558
|
33 |
-r--rw--w- 1 bob students 4359 Jul 24 2011 report.txt
|
|
34 |
-rwsr--r-x 1 bob students 141359 Jun 1 2013 microedit
|
|
35 |
dr--r-xr-x 1 bob staff 32768 Jul 23 2011 src
|
|
36 |
-rw-r--r-- 1 bob staff 81359 Feb 28 2012 src/code.c
|
521
|
37 |
-r--rw---- 1 emma students 959 Jan 23 2012 src/code.h
|
|
38 |
\end{verbatim}
|
|
39 |
\end{center}
|
|
40 |
|
558
|
41 |
\noindent
|
521
|
42 |
with group memberships assigned as follows:
|
|
43 |
\begin{center}
|
|
44 |
\begin{tabular}{ll}
|
558
|
45 |
Members of group staff: & \texttt{ping}, \texttt{bob}, \texttt{emma}\\
|
|
46 |
Members of group students: & \texttt{emma}\\
|
521
|
47 |
\end{tabular}
|
|
48 |
\end{center}
|
|
49 |
|
558
|
50 |
\noindent
|
|
51 |
The file \texttt{microedit} is a text editor, which allows its users
|
|
52 |
to open, edit and save files. Note carefully that microedit has set
|
|
53 |
its \textbf{setuid bit}. Fill in the access control matrix below
|
|
54 |
that shows for each of the above five files, whether \texttt{ping},
|
|
55 |
\texttt{bob}, or \texttt{emma} are able to read (R) or replace (W) its
|
521
|
56 |
contents using the editor microedit.\bigskip
|
|
57 |
|
|
58 |
\begin{center}
|
558
|
59 |
\def\arraystretch{1.5}
|
521
|
60 |
\begin{tabular}{r|c|c|c|c|c}
|
|
61 |
& manual.txt & report.txt & microedit & src/code.c & src/code.h \\\hline
|
|
62 |
ping & & & & &\\\hline
|
|
63 |
bob & & & & &\\\hline
|
|
64 |
emma & & & & &\\
|
|
65 |
\end{tabular}
|
558
|
66 |
\end{center}\bigskip
|
520
|
67 |
|
558
|
68 |
\noindent
|
|
69 |
For help about how to fill in the access control matrix, see additional hints
|
|
70 |
uploaded to KEATS.
|
520
|
71 |
\end{document}
|
|
72 |
|
|
73 |
%%% Local Variables:
|
|
74 |
%%% mode: latex
|
|
75 |
%%% TeX-master: t
|
|
76 |
%%% End:
|