Bug 133700 - /dev/grsec has wrong minor number after install
Bug#: 133700 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: hardened@gentoo.org Reported By: michal@prihoda.net
Component: Hardened
URL: 
Summary: /dev/grsec has wrong minor number after install
Keywords:  
Status Whiteboard: 
Opened: 2006-05-18 09:09 0000
Description:   Opened: 2006-05-18 09:09 0000
/dev/grsec gets created in gradm-*.ebuild with major 1 and minor 12:

mknod -m 0622 "${ROOT}"/dev/grsec c 1 12

but in packages Makefile it says:

$(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13

Which causes after gradm install (with hardened-sources-2.4.32-r2):

# ls -l /dev/grsec
crw--w--w- 1 root root 1, 12 May 18 18:14 /dev/grsec
# gradm -P
Could not open /dev/grsec.
open: No such device or address

And works, when changed to right number:
# rm /dev/grsec
# mknod /dev/grsec c 1 13
# chmod 0622 /dev/grsec 
# gradm -P
Setting up grsecurity RBAC password
Password: 

Guess the number has been changed, thought you should know :-)

------- Comment #1 From solar 2006-05-18 09:12:12 0000 -------
This is the 3rd time the device nod/numbering has changed.
I'd rather drop this package than fix it for a 3rd time.

------- Comment #2 From Christian Heim (RETIRED) 2007-04-29 15:24:20 0000 -------
OK, I just fixed the remaining ebuilds in sys-apps/gradm to use 1 13 for the
mknod.