tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Removal of some KAUTH_GENERIC_ISSUSER (pass 1)



On Sat, Apr 11, 2009 at 7:40 PM, Izumi Tsutsui 
<tsutsui%ceres.dti.ne.jp@localhost> wrote:

>> Could you give an example for other ports that may use it? it might be
>> that some are miscategorized (perhaps as KAUTH_MACHDEP_UNMANAGEDMEM) or
>> missing.
>
> sys/arch/prep/pnpbus/nvram_pnpbus.c
> sys/arch/sparc/sparc/openprom.c
> sys/arch/sun3/dev/mem.c
> sys/dev/ofw/openfirmio.c
> etc?

Hm, these look like they're subject to the permissions on the device
file. We'll tackle adding kauth(9) calls there some other time.

> I'm not sure if they should have the same semantics with
> i386/isa/cmos.c, though..

Nothing prevents us from adding several KAUTH_MACHDEP_FOO actions to
handle different semantics. :) Would you say it's sensible to add
KAUTH_MACHDEP_CMOS for the cmos.c case and KAUTH_MACHDEP_NVRAM (perhaps
with read/write granularity) in the future for different
cases/semantics?

-e.


Home | Main Index | Thread Index | Old Index