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