Great Circle Associates Firewalls
(December 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: runlevel, immutable, freebsd vs. /dev/mem
From: Colin Campbell <sgcccdc @ citec . qld . gov . au>
Date: Thu, 19 Dec 1996 08:15:50 +1000 (EST)
To: apilosov @ cantor . com
Cc: firewalls @ GreatCircle . COM
In-reply-to: <9611188509 . AA850941407 @ smtpgwy . ny . cantor . com> from "apilosov @ cantor . com" at Dec 18, 96 12:31:43 pm

Hi,

>From the BSDI manual:

| BSD/OS has a notion of a security level; see init(8). By default, the
| system goes to a 'secure' mode when multi-user. In that mode, /dev/kmem
| and /dev/mem cannot be written, raw disks cannot be written, and immutable
| files cannot be written - even by the superuser. (See chflags(1) for information
| on flags including the immutable flags - which can only be changed in not-
| secure mode.)
| 
| The modes are:
| 
| -1 - 'Permanently Insecure' - 'Insecure' and even multi-user mode is
|     'insecure'.
|
| 0 - 'Insecure' - In single user mode, root can change flags and read/write
|     any file - multi-user mode automatically moves to 'secure'
|
| 1 - 'Secure' - can not write immutable flags or raw devices or /dev/mem or
|     /dev/kmem
|
| 2 - highly secure - 'Secure' and disk devices not writable through /dev -
|     newfs and floppy writing disabled

Makes for a really secure box but a PITA to administer :-)

Colin

My mailer thinks apilosov @
 cantor .
 com said:
> 
> Question: if hacker attains root, couldn't he just use /dev/mem, /dev/kmem,
> /proc/### interfaces to change the runlevel variable in kernel, and then 
> turn off immutable or whatever else he wants?
> 
> IMHO...all the protection against root actions is rendered useless once you 
> can write to /dev/mem directly, but I have no clue how /dev/mem works in 
> xBSD, so its just IMHO for now :)
> 
> Alex
> 



References:
Indexed By Date Previous: Juniper firewall?
From: Joe Matuscak <matuscak @ rohrer . com>
Next: Re: Definition required
From: jmperez @ sprynet . com
Indexed By Thread Previous: Re: runlevel, immutable, freebsd vs. /dev/mem
From: Darren Reed <avalon @ coombs . anu . edu . au>
Next: Re: runlevel, immutable, freebsd vs. /dev/mem
From: Edwin Kremer <Edwin . Kremer @ cs . ruu . nl>

Google
 
Search Internet Search www.greatcircle.com