/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 :-)
This is the 3rd time the device nod/numbering has changed. I'd rather drop this package than fix it for a 3rd time.
OK, I just fixed the remaining ebuilds in sys-apps/gradm to use 1 13 for the mknod.