Dirty COW Attack Lab
Task 1: Modify a Dummy Read-Only File
1. create a dummy file
we can see that if we try to write to this file as a normal user, we will fail, because the file is only readable to normal users.
we can see that if we try to write to this file as a normal user, we will fail, because the file is only readable to normal users.
simple_module.c
1 | /* simple_module.c */ |
Exercise 1: Consider the following grammar G, which you have seen in the previous assignment:
1 | E -> TX |
1. Please construct the SLR parsing table for G. Is the grammar SLR(1)?
| (Non-Terminal) | FIRST Set | FOLLOW Set |
|---|---|---|
| E | {(,a, b} | {$, )} |
| T | {(,a, b} | {$, ), +} |
| X | {ε, +} | {$, )} |
| F | {(,a, b} | {$, (,), +, a, b} |
| Y | {ε, (,a, b} | {$, ), +} |
| P | {(,a, b} | {$, (,), *, +, a, b} |
| Z | {ε, *} | {$, (,), +, a, b} |