priv: Introduce prison_priv_check()
authorMichael Neumann <mneumann@ntecs.de>
Thu, 25 Jun 2009 19:29:52 +0000 (21:29 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Thu, 25 Jun 2009 19:29:52 +0000 (21:29 +0200)
commitcd554aa41e2b63bb34083837cc51d7ef9404f9d5
tree1d04ff876d7589342d418adfd0b07807148cb35d
parent3d6d8152830abc76435ecf121790d2cf1e6a2375
priv: Introduce prison_priv_check()

One day the PRISON_ROOT flag, which when passed to priv_check_cred()
allows the privilege in a jail, will be gone and all privileges allowed
in a jail are centrally maintained in the prison_priv_check() function
instead of spreading it over all the calls.
sys/kern/kern_jail.c
sys/kern/kern_prot.c
sys/sys/jail.h