Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133700 - /dev/grsec has wrong minor number after install
Summary: /dev/grsec has wrong minor number after install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High trivial
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 09:09 UTC by Michal Prihoda
Modified: 2007-04-29 15:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Prihoda 2006-05-18 09:09:14 UTC
/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 solar (RETIRED) gentoo-dev 2006-05-18 09:12:12 UTC
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 Christian Heim (RETIRED) gentoo-dev 2007-04-29 15:24:20 UTC
OK, I just fixed the remaining ebuilds in sys-apps/gradm to use 1 13 for the mknod.