tech-kern archive

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

Re: kernel module loading vs securelevel



Hmmm.

OK, I will build an i386 kernel _without_ INSECURE and see if I can reproduce the problem.


On Sat, 16 Oct 2010, Izumi Tsutsui wrote:

Could you rerun your testing after setting sysctl kern.module.verbose?
This should provide extra kernel debug printf() messages...

There are some info during boot (before securelevel is set to 1):

---
:
Mounting all filesystems...
DEBUG: module: plist load returned error 2 for 
`/stand/sun3/5.99.39/modules/mfs/mfs.kmod'
DEBUG: module: plist load returned error 2 for 
`/stand/sun3/5.99.39/modules/kernfs/kernfs.kmod'
DEBUG: module: plist load returned error 2 for 
`/stand/sun3/5.99.39/modules/procfs/procfs.kmod'
DEBUG: module: plist load returned error 2 for 
`/stand/sun3/5.99.39/modules/ptyfs/ptyfs.kmod'
DEBUG: module: cannot unload module `mfs' error=16
DEBUG: module: cannot unload module `kernfs' error=16
DEBUG: module: cannot unload module `procfs' error=16
Clearing temporary files.
DEBUG: module: cannot unload module `ptyfs' error=16
Starting amd.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
:
---

All file systems (mfs, kernfs, procfs, and ptyfs) are
mounted properly, though.

On multi user, there is no particular info:

---
# mount -t tmpfs tmpfs /mnt
mount_tmpfs: tmpfs on /mnt: Operation not supported by device
# shutdown now
Shutdown NOW!

:

Enter pathname of shell or RETURN for /bin/sh:
Terminal type is kterm.
We recommend creating a non-root account and using su(1) for root access.
# mount -t tmpfs tmpfs /mnt
DEBUG: module: plist load returned error 2 for 
`/stand/sun3/5.99.39/modules/tmpfs/tmpfs.kmod'
chariot# df /mnt
Filesystem   1K-blocks       Used      Avail %Cap Mounted on
tmpfs             49480          8      49472   0% /mnt
# DEBUG: module: cannot unload module `tmpfs' error=16

---
Izumi Tsutsui

!DSPAM:4cb9a96b2437545078506!




-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index