Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: CVS commit: src/tests/kernel
> >> Log Message:
> >> Add new tests attach_pid0 and attach_pid1 to t_ptrace
> >>
> >> attach_pid0 asserts that it is not valid to attach PID 0 as it is a special
> >> kernel process.
> >>
> >> assert_pid1 asserts that non-root user cannot attach to PID 1 as it is the
> >> /dev/init process. This tests is skipped if run as root.
> >
> > also, root can't attach to pid1 if securelevel is >= 0.
>
> To adjust securelevel this test would need to be modified to run under
> rump ... We wouldn't want the test to manipulate securelevel of the
> running system.
s/wouldn't want/*can't* by design have/.
i don't know that running under rump is useful here. i certainly
would not trust ptrace tests in a rump to cover it properly. this
test should just be skipped if securelevel >= 0. fact is that
very few systems run with securelevel these days, so it's a small
portion of systems that won't have it.
.mrg.
Home |
Main Index |
Thread Index |
Old Index